Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
62e093f2
authored
Jun 12, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
默认记住用户登录名、密码;首页【业务模块】、【历史订单】修改右上角退出按钮;【业务模块】取消【返回登录页】菜单
parent
b1e53680
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
64 deletions
app/containers/common/HeadBackItem.js
app/containers/historicalOrder/module/FilterModel.js
app/containers/home/HomePage.js
app/containers/login/LoginPage.js
app/containers/quickOrder/QuickOrderPage.js
app/images/exit_icon.png
app/reducers/module/login.js
app/containers/common/HeadBackItem.js
View file @
62e093f2
...
@@ -15,15 +15,29 @@ import {
...
@@ -15,15 +15,29 @@ import {
Width
,
Width
,
icon_style
icon_style
}
from
'../../base/BaseStyle'
;
}
from
'../../base/BaseStyle'
;
import
{
connect
}
from
"react-redux"
;
import
{
exitLoginStatus
}
from
'../../action/LoginAction'
;
import
{
show
}
from
'../../utils/Utils'
;
class
HeadBackItem
extends
Component
{
class
HeadBackItem
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
}
this
.
state
=
{
isRightExit
:
false
}
}
componentWillReceiveProps
(
nextProps
)
{
let
{
isRightExit
}
=
this
.
state
if
(
isRightExit
!=
nextProps
.
nextProps
)
{
this
.
setState
({
isRightExit
:
nextProps
.
nextProps
})
}
}
}
goBack
()
{
goBack
()
{
let
{
callback
,
navigation
}
=
this
.
props
let
{
callback
,
navigation
}
=
this
.
props
if
(
callback
&&
callback
instanceof
Function
)
{
if
(
callback
&&
callback
instanceof
Function
)
{
callback
()
callback
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -34,23 +48,51 @@ class HeadBackItem extends Component {
...
@@ -34,23 +48,51 @@ class HeadBackItem extends Component {
}
}
}
}
goLogin
()
{
let
{
navigation
}
=
this
.
props
this
.
props
.
exitLoginStatus
()
show
(
'退出登录'
)
setTimeout
(()
=>
{
navigation
.
navigate
(
'LoginPage'
)
},
300
)
}
render
()
{
render
()
{
let
{
title
}
=
this
.
props
let
{
title
}
=
this
.
props
let
{
isRightExit
}
=
this
.
state
return
(
return
(
<
View
style
=
{
styles
.
header_style
}
>
<
View
style
=
{
styles
.
header_style
}
>
<
TouchableOpacity
{
activeOpacity
=
{.
8
}
!
isRightExit
?
style
=
{
styles
.
head_img_box
}
<
TouchableOpacity
onPress
=
{()
=>
this
.
goBack
()}
activeOpacity
=
{.
8
}
>
style
=
{
styles
.
head_img_box
}
<
View
style
=
{
styles
.
back_style
}
>
onPress
=
{()
=>
this
.
goBack
()}
<
Image
source
=
{
require
(
'../../images/arrow_icon.png'
)}
style
=
{
icon_style
}
/
>
>
<
/View
>
<
View
style
=
{
styles
.
back_style
}
>
<
Text
style
=
{
styles
.
back_tip
}
>
返回
<
/Text
>
<
Image
source
=
{
require
(
'../../images/arrow_icon.png'
)}
style
=
{
icon_style
}
/
>
<
/TouchableOpacity
>
<
/View
>
<
Text
style
=
{
styles
.
title_style
}
numberOfLines
=
{
1
}
ellipsizeMode
=
{
'tail'
}
>
{
title
}
<
/Text
>
<
Text
style
=
{
styles
.
back_tip
}
>
返回
<
/Text
>
<
/TouchableOpacity
>
:
null
}
<
Text
style
=
{[
styles
.
title_style
,
isRightExit
?
styles
.
title_no_marg
:
''
]}
numberOfLines
=
{
1
}
ellipsizeMode
=
{
'tail'
}
>
{
title
}
<
/Text
>
{
isRightExit
?
<
TouchableOpacity
activeOpacity
=
{.
8
}
style
=
{
styles
.
head_rig_box
}
onPress
=
{()
=>
this
.
goLogin
()}
>
<
View
style
=
{
styles
.
back_rig_style
}
>
<
Image
source
=
{
require
(
'../../images/exit_icon.png'
)}
style
=
{
icon_style
}
/
>
<
/View
>
<
/TouchableOpacity
>
:
null
}
<
/View
>
<
/View
>
);
);
}
}
}
}
...
@@ -86,8 +128,29 @@ const styles = StyleSheet.create({
...
@@ -86,8 +128,29 @@ const styles = StyleSheet.create({
textAlign
:
'center'
,
textAlign
:
'center'
,
fontSize
:
18
,
fontSize
:
18
,
color
:
title_text_color
,
color
:
title_text_color
,
fontFamily
:
font_family_regular
fontFamily
:
font_family_regular
,
},
title_no_marg
:
{
marginLeft
:
14
,
marginRight
:
0
},
head_rig_box
:
{
paddingRight
:
20
},
back_rig_style
:
{
width
:
pxSize
(
20
),
height
:
pxSize
(
20
)
}
}
})
})
export
default
HeadBackItem
;
const
mapStateToProps
=
(
state
)
=>
({
\ No newline at end of file
loginState
:
state
.
login
.
loginState
})
const
mapDispatchToProps
=
(
dispatch
)
=>
({
exitLoginStatus
:
()
=>
{
dispatch
(
exitLoginStatus
())
}
})
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
HeadBackItem
)
\ No newline at end of file
app/containers/historicalOrder/module/FilterModel.js
View file @
62e093f2
...
@@ -16,11 +16,8 @@ import {
...
@@ -16,11 +16,8 @@ import {
Width
,
Width
,
pxHeight
,
pxHeight
,
foundation_color
,
foundation_color
,
promary_text_color
,
font_family_semibold
,
font_family_regular
,
font_family_regular
,
first_text_color
,
first_text_color
,
btn_sub_color
,
second_text_size
,
second_text_size
,
title_text_color
,
title_text_color
,
icon_style
,
icon_style
,
...
...
app/containers/home/HomePage.js
View file @
62e093f2
...
@@ -96,6 +96,7 @@ class HomePage extends Component {
...
@@ -96,6 +96,7 @@ class HomePage extends Component {
modSeleIcon
:
require
(
'../../images/tab_mod_sel.png'
),
modSeleIcon
:
require
(
'../../images/tab_mod_sel.png'
),
hisDefauIcon
:
require
(
'../../images/tab_his_def.png'
),
hisDefauIcon
:
require
(
'../../images/tab_his_def.png'
),
hisSeleIcon
:
require
(
'../../images/tab_his_sel.png'
),
hisSeleIcon
:
require
(
'../../images/tab_his_sel.png'
),
isRightExit
:
true
}
}
}
}
...
@@ -135,7 +136,7 @@ class HomePage extends Component {
...
@@ -135,7 +136,7 @@ class HomePage extends Component {
}
}
})
})
}
}
tempModuleList
.
push
(
backLoginInfo
)
//
tempModuleList.push(backLoginInfo)
}
else
if
(
item
.
function_code
==
'MOBILE_HISTORICAL_ORDER'
)
{
}
else
if
(
item
.
function_code
==
'MOBILE_HISTORICAL_ORDER'
)
{
tempTabIconNames
.
push
(
hisDefauIcon
)
tempTabIconNames
.
push
(
hisDefauIcon
)
...
@@ -163,7 +164,8 @@ class HomePage extends Component {
...
@@ -163,7 +164,8 @@ class HomePage extends Component {
render
()
{
render
()
{
let
{
navigation
}
=
this
.
props
let
{
navigation
}
=
this
.
props
let
{
tabNames
,
tabIconNames
,
tabSelIconNames
,
initialPage
,
tabCodes
}
=
this
.
state
let
{
tabNames
,
tabIconNames
,
tabSelIconNames
,
initialPage
,
tabCodes
,
isRightExit
}
=
this
.
state
return
(
return
(
<
View
style
=
{
styles
.
home_container
}
>
<
View
style
=
{
styles
.
home_container
}
>
<
StatusBarView
<
StatusBarView
...
@@ -172,7 +174,7 @@ class HomePage extends Component {
...
@@ -172,7 +174,7 @@ class HomePage extends Component {
barStyle
=
'light-content'
barStyle
=
'light-content'
/>
/>
<
SafeAreaView
style
=
{
safe_view
}
>
<
SafeAreaView
style
=
{
safe_view
}
>
<
HeadBackItem
title
=
{
'骨科智慧仓'
}
navigation
=
{
navigation
}
/
>
<
HeadBackItem
title
=
{
'骨科智慧仓'
}
navigation
=
{
navigation
}
isRightExit
=
{
isRightExit
}
/
>
<
ScrollableTabView
<
ScrollableTabView
style
=
{
styles
.
bom_tab_box
}
style
=
{
styles
.
bom_tab_box
}
...
...
app/containers/login/LoginPage.js
View file @
62e093f2
...
@@ -69,9 +69,6 @@ class LoginPage extends Component{
...
@@ -69,9 +69,6 @@ class LoginPage extends Component{
break
;
break
;
case
LOGIN_NO
:
case
LOGIN_NO
:
this
.
changeSubTit
();
this
.
changeSubTit
();
this
.
setState
({
password
:
''
})
break
break
case
LOGIN_SUCCESS
:
case
LOGIN_SUCCESS
:
this
.
changeSubTit
();
this
.
changeSubTit
();
...
...
app/containers/quickOrder/QuickOrderPage.js
View file @
62e093f2
...
@@ -69,51 +69,38 @@ class EquipConsuPage extends Component {
...
@@ -69,51 +69,38 @@ class EquipConsuPage extends Component {
{
{
"id"
:
"0"
,
"id"
:
"0"
,
title
:
'销售员'
,
title
:
'销售员'
,
name
:
'蔡妍'
,
name
:
''
,
value
:
'caiyan'
,
value
:
''
isPicker
:
false
,
select
:
false
,
isEditable
:
false
// 不可编辑
},
},
{
{
"id"
:
"1"
,
"id"
:
"1"
,
title
:
'组织'
,
title
:
'组织'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"2"
,
"id"
:
"2"
,
title
:
'客户名称'
,
title
:
'客户名称'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"3"
,
"id"
:
"3"
,
title
:
'收单地点'
,
title
:
'收单地点'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"4"
,
"id"
:
"4"
,
title
:
'收货地点'
,
title
:
'收货地点'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"5"
,
"id"
:
"5"
,
title
:
'主治医生'
,
title
:
'主治医生'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
,
isPicker
:
true
,
select
:
false
,
showInput
:
false
,
showInput
:
false
,
inputValue
:
''
inputValue
:
''
},
},
...
@@ -121,17 +108,13 @@ class EquipConsuPage extends Component {
...
@@ -121,17 +108,13 @@ class EquipConsuPage extends Component {
"id"
:
"6"
,
"id"
:
"6"
,
title
:
'手术类型'
,
title
:
'手术类型'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"7"
,
"id"
:
"7"
,
title
:
'配台模版'
,
title
:
'配台模版'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"8"
,
"id"
:
"8"
,
...
@@ -139,32 +122,24 @@ class EquipConsuPage extends Component {
...
@@ -139,32 +122,24 @@ class EquipConsuPage extends Component {
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
,
dateValue
:
new
Date
(),
dateValue
:
new
Date
(),
isPicker
:
true
,
select
:
false
,
showDatePicker
:
true
showDatePicker
:
true
},
},
{
{
"id"
:
"9"
,
"id"
:
"9"
,
title
:
'订单类型'
,
title
:
'订单类型'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
isPicker
:
true
,
select
:
false
},
},
{
{
"id"
:
"10"
,
"id"
:
"10"
,
title
:
'备注'
,
title
:
'备注'
,
value
:
''
,
value
:
''
,
isPicker
:
false
,
select
:
false
,
isRemark
:
true
// 备注
isRemark
:
true
// 备注
},
},
{
{
"id"
:
"11"
,
"id"
:
"11"
,
title
:
'还有什么要安排的,可录音备注哟!'
,
title
:
'还有什么要安排的,可录音备注哟!'
,
value
:
''
,
value
:
''
,
isPicker
:
false
,
select
:
false
,
isRecode
:
true
// 录音
isRecode
:
true
// 录音
}
}
],
],
...
@@ -217,7 +192,7 @@ class EquipConsuPage extends Component {
...
@@ -217,7 +192,7 @@ class EquipConsuPage extends Component {
hasPermission
:
undefined
,
//录音 授权状态
hasPermission
:
undefined
,
//录音 授权状态
// audioPath: AudioUtils.DocumentDirectoryPath + `/quickAudio${Math.floor(Math.random() * (1000))+1}.aac`, // 文件路径
// audioPath: AudioUtils.DocumentDirectoryPath + `/quickAudio${Math.floor(Math.random() * (1000))+1}.aac`, // 文件路径
audioPath
:
AudioUtils
.
DocumentDirectoryPath
+
`/quick_audio_
${
new
Date
().
getTime
()}
.aac`
,
// 文件路径
audioPath
:
AudioUtils
.
DocumentDirectoryPath
+
`/quick_audio_
${
new
Date
().
getTime
()}
.aac`
,
// 文件路径
recording
:
false
,
//是否录音
//
recording: false, //是否录音
stop
:
false
,
//录音是否停止
stop
:
false
,
//录音是否停止
currentTime
:
0
,
//录音时长
currentTime
:
0
,
//录音时长
localCustomersOption
:
[],
// 当前医院信息:客户名称、收单地点、收货地点、主治医生
localCustomersOption
:
[],
// 当前医院信息:客户名称、收单地点、收货地点、主治医生
...
...
app/images/exit_icon.png
0 → 100644
View file @
62e093f2
860 Bytes
app/reducers/module/login.js
View file @
62e093f2
...
@@ -42,7 +42,7 @@ export default login = (state = defaultState, action) => {
...
@@ -42,7 +42,7 @@ export default login = (state = defaultState, action) => {
token
:
null
,
token
:
null
,
loginState
:
LOGIN_NO
,
loginState
:
LOGIN_NO
,
userInfo
:{},
userInfo
:{},
password
:
''
//
password: ''
});
});
case
AUTO_LOGIN_SUCCESS
:
case
AUTO_LOGIN_SUCCESS
:
return
Object
.
assign
({},
state
,
{
return
Object
.
assign
({},
state
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment