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
04e364cb
authored
May 20, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提取子页面提交按钮样式、增加复制成功提示
parent
a0621ab2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
129 additions
and
37 deletions
app/base/BaseStyle.js
app/containers/common/ProductModel.js
app/containers/common/SubSuccPage.js
app/base/BaseStyle.js
View file @
04e364cb
...
...
@@ -141,10 +141,6 @@ export const list_common_item = {
width
:
pxSize
(
20
),
height
:
pxSize
(
22
)
},
reco_text
:
{
fontSize
:
14
,
marginVertical
:
10
},
reco_btn_text
:
{
fontSize
:
second_text_size
,
color
:
first_text_color
,
...
...
@@ -258,8 +254,9 @@ export const list_common_item = {
detail_top_icon
:
{},
detail_sub_inner
:
{
marginTop
:
10
,
maxHeight
:
pxSize
(
160
),
//
maxHeight: pxSize(160),
// flex: 1
height
:
'auto'
},
detail_scroll
:
{
// flex: 1
...
...
@@ -316,4 +313,78 @@ export const list_common_item = {
height
:
pxSize
(
68
),
marginRight
:
20
},
// 二级页面-两个提交按钮
sub_box
:
{
width
:
Width
(),
backgroundColor
:
foundation_color
,
flexDirection
:
'row'
,
shadowColor
:
'#E5E5E5'
,
shadowOffset
:
{
width
:
1
,
height
:
2
},
shadowOpacity
:
1
,
elevation
:
10
,
height
:
80
},
sub_two_btn
:
{
width
:
Width
(),
flexDirection
:
'row'
,
alignItems
:
'center'
,
paddingHorizontal
:
30
,
paddingVertical
:
14
},
lef_btn
:
{
backgroundColor
:
'#4F4F4F'
,
width
:
'66%'
,
borderTopLeftRadius
:
10
,
borderBottomLeftRadius
:
10
,
height
:
50
},
lef_tip
:
{
color
:
title_text_color
,
lineHeight
:
48
,
paddingLeft
:
20
,
fontSize
:
16
,
fontFamily
:
font_family_regular
},
rig_btn
:
{
backgroundColor
:
promary_color
,
width
:
'34%'
,
borderTopRightRadius
:
10
,
borderBottomRightRadius
:
10
,
height
:
50
},
rig_tip
:
{
color
:
title_text_color
,
lineHeight
:
48
,
textAlign
:
'center'
,
fontSize
:
16
,
fontFamily
:
font_family_medium
},
// 二级页面顶部搜索
ser_cont
:
{
width
:
Width
(),
backgroundColor
:
promary_color
,
position
:
'relative'
,
height
:
60
,
justifyContent
:
'center'
,
paddingHorizontal
:
16
},
ser_img_box
:
{
position
:
'absolute'
,
left
:
24
,
top
:
20
,
width
:
pxSize
(
22
),
height
:
pxSize
(
22
)
},
ser_text_input
:
{
backgroundColor
:
'#F5F5F5'
,
height
:
38
,
lineHeight
:
36
,
paddingLeft
:
34
,
borderRadius
:
10
,
fontSize
:
14
,
fontFamily
:
font_family_regular
},
}
\ No newline at end of file
app/containers/common/ProductModel.js
View file @
04e364cb
...
...
@@ -23,7 +23,8 @@ import {
dis_sub_color
,
safe_view
,
font_family_medium
,
font_family_light
font_family_light
,
list_common_item
}
from
'../../base/BaseStyle'
;
import
{
FooterBtnStyle
}
from
'../common/CellTextStyle'
;
...
...
@@ -261,8 +262,8 @@ class ProductModel extends Component {
renderFooterBtnItem
()
{
// let { selectShowPopup } = this.state
return
(
<
View
style
=
{
styles
.
sub_box
}
>
<
FooterBtnStyle
<
View
style
=
{
list_common_item
.
sub_box
}
>
{
/*
<FooterBtnStyle
style={styles.sub_btn_left}
activeOpacity={.8}
title={'共计已选:666'}
...
...
@@ -275,7 +276,23 @@ class ProductModel extends Component {
title={'选好了'}
textStyle= {[styles.sub_btn_tit, styles.sub_btn_rig_text]}
onPress={() => this.handleCloseSubmit()}
/
>
/> */
}
<
View
style
=
{
list_common_item
.
sub_two_btn
}
>
<
TouchableOpacity
activeOpacity
=
{.
8
}
style
=
{
list_common_item
.
lef_btn
}
onPress
=
{()
=>
this
.
handleCloseSelected
()}
>
<
Text
style
=
{
list_common_item
.
lef_tip
}
>
{
'共计已选:666'
}
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
activeOpacity
=
{.
8
}
style
=
{
list_common_item
.
rig_btn
}
onPress
=
{()
=>
this
.
handleCloseSubmit
()}
>
<
Text
style
=
{
list_common_item
.
rig_tip
}
>
{
'选好了'
}
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
)
}
...
...
@@ -474,34 +491,34 @@ const styles = StyleSheet.create({
minWidth
:
pxSize
(
20
),
textAlign
:
'center'
},
sub_box
:
{
width
:
Width
(),
backgroundColor
:
dis_sub_color
,
flexDirection
:
'row'
,
shadowColor
:
'#E5E5E5'
,
shadowOffset
:
{
width
:
0
,
height
:
-
1
},
shadowOpacity
:
.
3
,
shadowRadius
:
2
,
elevation
:
3
},
sub_btn_left
:
{
width
:
'50%'
,
backgroundColor
:
'#EEECEC'
},
sub_btn_tit
:
{
fontSize
:
18
},
sub_btn_left_text
:
{
color
:
third_text_color
},
sub_btn_rig
:
{
width
:
'50%'
,
backgroundColor
:
promary_color
},
sub_btn_rig_text
:
{},
//
sub_box: {
//
width: Width(),
//
backgroundColor: dis_sub_color,
//
flexDirection: 'row',
//
shadowColor: '#E5E5E5',
//
shadowOffset: {
//
width: 0,
//
height: -1
//
},
//
shadowOpacity: .3,
//
shadowRadius: 2,
//
elevation: 3
//
},
//
sub_btn_left: {
//
width: '50%',
//
backgroundColor: '#EEECEC'
//
},
//
sub_btn_tit: {
//
fontSize: 18
//
},
//
sub_btn_left_text: {
//
color: third_text_color
//
},
//
sub_btn_rig: {
//
width: '50%',
//
backgroundColor: promary_color
//
},
//
sub_btn_rig_text: {},
})
export
default
ProductModel
;
\ No newline at end of file
app/containers/common/SubSuccPage.js
View file @
04e364cb
...
...
@@ -21,6 +21,7 @@ import {
font_family_regular
}
from
'../../base/BaseStyle'
;
import
StatusBarView
from
'./StatusBarView'
;
import
{
show
}
from
'../../utils/Utils'
;
class
SubSuccPage
extends
Component
{
constructor
(
props
)
{
...
...
@@ -47,6 +48,7 @@ class SubSuccPage extends Component {
// 获取复制的值
let
str
=
await
Clipboard
.
getString
()
console
.
warn
(
str
)
show
(
'复制成功'
)
// 返回首页
let
{
navigation
}
=
this
.
props
setTimeout
(()
=>
{
...
...
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