Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄天晨
bh_face_counter
Commits
f2cfe15c
Commit
f2cfe15c
authored
Sep 14, 2021
by
Confettis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面优化
parent
e1fb7741
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
1 deletions
+60
-1
OrderDetailMini.js
src/components/OrderDetailMini.js
+27
-0
TipsModal.js
src/components/TipsModal.js
+33
-1
No files found.
src/components/OrderDetailMini.js
View file @
f2cfe15c
...
@@ -4,7 +4,9 @@ import {FlatList, Image, Modal, ScrollView, Text, View} from 'react-native';
...
@@ -4,7 +4,9 @@ import {FlatList, Image, Modal, ScrollView, Text, View} from 'react-native';
import
{
font
}
from
'../utils/common'
;
import
{
font
}
from
'../utils/common'
;
import
NP
from
'../utils/np'
;
import
NP
from
'../utils/np'
;
import
{
scaleSize
,
setSpText
}
from
'../utils/screen'
;
import
{
scaleSize
,
setSpText
}
from
'../utils/screen'
;
import
Speech
from
'../utils/Speech'
;
import
ModalStyles
from
'./Modal/styles'
;
import
ModalStyles
from
'./Modal/styles'
;
import
Touch
from
'./Touch'
;
const
mStyles
=
{
const
mStyles
=
{
...
ModalStyles
,
...
ModalStyles
,
...
@@ -119,6 +121,11 @@ class OrderDetailMini extends Component {
...
@@ -119,6 +121,11 @@ class OrderDetailMini extends Component {
<
/View
>
<
/View
>
);
);
onNoBuy
=
async
()
=>
{
const
{
data
}
=
await
this
.
props
.
dispatch
({
type
:
'store/noBuyGoGoGo'
});
Speech
.
speak
(
data
.
msg
);
};
render
()
{
render
()
{
const
{
goodsArr
,
faceType
,
...
props
}
=
this
.
props
;
const
{
goodsArr
,
faceType
,
...
props
}
=
this
.
props
;
let
totalPrice
=
0
;
// 总价
let
totalPrice
=
0
;
// 总价
...
@@ -213,6 +220,24 @@ class OrderDetailMini extends Component {
...
@@ -213,6 +220,24 @@ class OrderDetailMini extends Component {
style
=
{
styles
.
emptyImg
}
style
=
{
styles
.
emptyImg
}
/
>
/
>
<
/View
>
<
/View
>
<
Touch
onPress
=
{()
=>
this
.
onNoBuy
()}
>
<
View
style
=
{{
backgroundColor
:
faceType
===
'wxpay'
?
'#24af41'
:
'#09a1e8'
,
width
:
scaleSize
(
600
),
height
:
scaleSize
(
100
),
display
:
'flex'
,
justifyContent
:
'center'
,
alignContent
:
'center'
,
alignItems
:
'center'
,
borderRadius
:
20
,
}}
>
<
Text
style
=
{{
color
:
'#fff'
,
fontSize
:
scaleSize
(
44
)}}
>
无购物出店
<
/Text
>
<
/View
>
<
/Touch
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
)}
)}
...
@@ -383,6 +408,8 @@ const styles = {
...
@@ -383,6 +408,8 @@ const styles = {
height
:
scaleSize
(
1150
),
height
:
scaleSize
(
1150
),
resizeMode
:
'contain'
,
resizeMode
:
'contain'
,
},
},
guardModal_button_nobuy
:
{},
callText
:
{},
};
};
export
default
OrderDetailMini
;
export
default
OrderDetailMini
;
src/components/TipsModal.js
View file @
f2cfe15c
...
@@ -57,6 +57,10 @@ class TipsModal extends Component {
...
@@ -57,6 +57,10 @@ class TipsModal extends Component {
...
styles
.
reset
,
...
styles
.
reset
,
color
:
'#1b7dc7'
,
color
:
'#1b7dc7'
,
};
};
styles
.
tryAngin
=
{
...
styles
.
tryAngin
,
backgroundColor
:
'#1b7dc7'
,
};
}
}
return
(
return
(
<
Modal
styles
=
{
mStyles
}
{...
props
}
>
<
Modal
styles
=
{
mStyles
}
{...
props
}
>
...
@@ -82,6 +86,7 @@ class TipsModal extends Component {
...
@@ -82,6 +86,7 @@ class TipsModal extends Component {
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
{
qrCode
&&
(
{
qrCode
&&
(
<
View
style
=
{
styles
.
qrcode
}
>
<
View
style
=
{
styles
.
qrcode
}
>
<
Text
>
<
QRCode
<
QRCode
logoSize
=
{
scaleSize
(
80
)}
logoSize
=
{
scaleSize
(
80
)}
// logoBackgroundColor="#fc4000"
// logoBackgroundColor="#fc4000"
...
@@ -89,6 +94,7 @@ class TipsModal extends Component {
...
@@ -89,6 +94,7 @@ class TipsModal extends Component {
size
=
{
scaleSize
(
360
)}
size
=
{
scaleSize
(
360
)}
value
=
{
qrCode
}
value
=
{
qrCode
}
/
>
/
>
<
/Text
>
<
/View
>
<
/View
>
)}
)}
<
Text
<
Text
...
@@ -97,6 +103,15 @@ class TipsModal extends Component {
...
@@ -97,6 +103,15 @@ class TipsModal extends Component {
style
=
{
styles
.
tip
}
>
style
=
{
styles
.
tip
}
>
{
tip
}
{
tip
}
<
/Text
>
<
/Text
>
<
Touch
onPress
=
{()
=>
console
.
log
(
'1'
)}
>
<
View
style
=
{
styles
.
tryAngin
}
>
<
Image
source
=
{
require
(
'../assets/shualian.png'
)}
style
=
{
styles
.
tryImg
}
/
>
<
Text
style
=
{
styles
.
tryText
}
>
重新刷脸
<
/Text
>
<
/View
>
<
/Touch
>
<
/View
>
<
/View
>
{
!
qrCode
&&
flags
&&
(
{
!
qrCode
&&
flags
&&
(
<
View
style
=
{
styles
.
footer
}
>
<
View
style
=
{
styles
.
footer
}
>
...
@@ -135,7 +150,7 @@ const styles = {
...
@@ -135,7 +150,7 @@ const styles = {
position
:
'absolute'
,
position
:
'absolute'
,
},
},
modal
:
{
modal
:
{
height
:
'
4
0%'
,
height
:
'
5
0%'
,
width
:
'80%'
,
width
:
'80%'
,
marginLeft
:
'10%'
,
marginLeft
:
'10%'
,
marginTop
:
'40%'
,
marginTop
:
'40%'
,
...
@@ -237,6 +252,23 @@ const styles = {
...
@@ -237,6 +252,23 @@ const styles = {
fontSize
:
setSpText
(
45
),
fontSize
:
setSpText
(
45
),
color
:
'#2BA245'
,
color
:
'#2BA245'
,
},
},
tryAngin
:
{
backgroundColor
:
'#24af41'
,
width
:
scaleSize
(
370
),
height
:
scaleSize
(
100
),
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
alignContent
:
'center'
,
alignItems
:
'center'
,
borderRadius
:
20
,
},
tryText
:
{
color
:
'#fff'
,
fontSize
:
scaleSize
(
38
)},
tryImg
:
{
width
:
scaleSize
(
38
),
height
:
scaleSize
(
38
),
marginRight
:
10
,
},
};
};
export
default
TipsModal
;
export
default
TipsModal
;
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