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
74f182b7
Commit
74f182b7
authored
May 27, 2022
by
黄日华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
息屏导购图兼容问题
增加云值守付款后续操作
parent
c906b971
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
115 additions
and
7 deletions
+115
-7
paied.png
src/assets/paied.png
+0
-0
store.js
src/models/store.js
+3
-0
CounterMixins.js
src/pages/CounterMixins.js
+105
-3
HomePage.js
src/pages/HomePage.js
+1
-1
VerticalPage.js
src/pages/VerticalPage.js
+2
-3
store.js
src/services/store.js
+4
-0
No files found.
src/assets/paied.png
0 → 100644
View file @
74f182b7
13 KB
src/models/store.js
View file @
74f182b7
...
...
@@ -117,6 +117,9 @@ export default {
return
data
.
data
;
}
},
*
open
(
action
,
{
call
})
{
return
yield
call
(
api
.
open
,
action
);
},
*
wxdoor
(
action
,
{
call
})
{
const
{
data
}
=
yield
call
(
api
.
wxdoor
,
action
);
if
(
data
.
code
===
1
)
{
...
...
src/pages/CounterMixins.js
View file @
74f182b7
...
...
@@ -48,6 +48,7 @@ const CounterMixins = ComposeComponent => {
static
displayName
=
'CounterMixins'
;
state
=
{
stype
:
'guard'
,
goodsArr
:
[],
preventRevert
:
false
,
modalS
:
false
,
...
...
@@ -65,6 +66,7 @@ const CounterMixins = ComposeComponent => {
receipt
:
{},
printer
:
[],
receiptTime
:
5
,
cloudFinishModal
:
false
,
};
componentWillMount
=
async
()
=>
{
...
...
@@ -79,8 +81,9 @@ const CounterMixins = ComposeComponent => {
adType
:
data
.
data
.
type
,
});
}
const
stype
=
await
AsyncStorage
.
getItem
(
'STYPE'
);
const
qrHost
=
await
AsyncStorage
.
getItem
(
'QRHOST'
);
await
this
.
setState
({
qrHost
});
await
this
.
setState
({
qrHost
,
stype
});
};
componentDidMount
=
async
()
=>
{
...
...
@@ -419,7 +422,10 @@ const CounterMixins = ComposeComponent => {
Speech
.
speak
(
msg
);
this
.
storeSetting
(
this
.
state
.
goodsArr
);
this
.
onLucky
();
const
{
stype
}
=
this
.
state
;
if
(
stype
!==
'guard'
)
{
this
.
clearList
();
}
};
storeSetting
=
async
printer
=>
{
...
...
@@ -429,8 +435,8 @@ const CounterMixins = ComposeComponent => {
group
,
});
if
(
data
.
code
===
1
)
{
this
.
setState
({
receipt
:
data
.
data
.
receipt
,
printer
});
if
(
data
.
data
.
receipt
.
enable
)
{
this
.
setState
({
receipt
:
data
.
data
.
receipt
||
{}
,
printer
});
if
(
data
.
data
.
receipt
&&
data
.
data
.
receipt
.
enable
)
{
if
(
data
.
data
.
receipt
.
confirm
)
{
await
this
.
setState
({
visible
:
true
,
...
...
@@ -484,6 +490,7 @@ const CounterMixins = ComposeComponent => {
type
:
'lucky/getLucky'
,
orderId
:
this
.
orderId
,
});
const
{
stype
}
=
this
.
state
;
if
(
codeLucky
===
1
)
{
this
.
setState
({
luckyVisible
:
true
,
...
...
@@ -493,7 +500,18 @@ const CounterMixins = ComposeComponent => {
this
.
setState
({
luckyVisible
:
false
,
});
if
(
stype
===
'guard'
)
{
this
.
setState
({
cloudFinishModal
:
true
,
});
}
},
10000
);
}
else
{
if
(
stype
===
'guard'
)
{
this
.
setState
({
cloudFinishModal
:
true
,
});
}
}
};
...
...
@@ -911,6 +929,40 @@ const CounterMixins = ComposeComponent => {
this
.
setState
({
luckyVisible
:
false
,
});
const
{
stype
}
=
this
.
state
;
if
(
stype
===
'guard'
)
{
this
.
setState
({
cloudFinishModal
:
true
,
});
}
};
onCloseCloudFinish
=
()
=>
{
this
.
setState
({
cloudFinishModal
:
false
,
});
this
.
clearList
();
};
onOpen
=
async
()
=>
{
const
{
data
}
=
await
this
.
props
.
dispatch
({
type
:
'store/open'
,
});
if
(
data
.
code
===
1
)
{
this
.
setState
({
cloudFinishModal
:
false
,
});
Speech
.
speak
(
data
.
msg
||
'门已经打开,谢谢惠顾'
);
}
else
{
Toast
.
info
(
data
.
msg
||
'开门失败,请联系客服处理'
,
2
);
Speech
.
speak
(
data
.
msg
||
'开门失败,请联系客服处理'
);
setTimeout
(()
=>
{
this
.
setState
({
cloudFinishModal
:
false
,
});
},
10000
);
}
this
.
clearList
();
};
onReceiveLucky
=
async
()
=>
{
...
...
@@ -923,6 +975,7 @@ const CounterMixins = ComposeComponent => {
render
=
()
=>
{
let
{
cloudFinishModal
,
voiceModal
,
voiceTitle
,
title
,
...
...
@@ -1016,6 +1069,55 @@ const CounterMixins = ComposeComponent => {
<
Image
source
=
{
require
(
'../assets/voice.gif'
)}
/
>
<
/View
>
<
/Modal
>
<
Modal
visible
=
{
cloudFinishModal
}
transparent
>
<
View
style
=
{{
alignItems
:
'center'
}}
>
<
Image
style
=
{{
width
:
100
,
height
:
100
,
marginLeft
:
'5%'
,
resizeMode
:
'contain'
,
alignSelf
:
'flex-start'
,
}}
source
=
{
require
(
'../assets/paied.png'
)}
/
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
,
marginTop
:
-
30
,
}}
>
<
Text
style
=
{{
color
:
'#000000'
,
fontSize
:
26
}}
>
云值守店
<
/Text
>
<
/View
>
<
Touch
onPress
=
{()
=>
this
.
onCloseCloudFinish
()}
style
=
{{
width
:
'90%'
,
height
:
70
,
borderRadius
:
5
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
'#FC4001'
,
marginTop
:
40
,
}}
>
<
Text
style
=
{{
color
:
'#ffffff'
,
fontSize
:
22
}}
>
在逛一逛
<
/Text
>
<
/Touch
>
<
Touch
onPress
=
{()
=>
this
.
onOpen
()}
style
=
{{
width
:
'90%'
,
height
:
70
,
borderRadius
:
5
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
'#E3DDDD'
,
marginTop
:
40
,
marginBottom
:
20
,
}}
>
<
Text
style
=
{{
color
:
'#000000'
,
fontSize
:
22
}}
>
开门离店
<
/Text
>
<
/Touch
>
<
/View
>
<
/Modal
>
<
ComposeComponent
{...
this
.
props
}
{...
this
.
state
}
...
...
src/pages/HomePage.js
View file @
74f182b7
...
...
@@ -105,7 +105,7 @@ class HomePage extends React.Component {
flex
:
0.25
,
textAlign
:
'right'
,
}}
>
单价
单价
:
<
/Text
>
<
Text
style
=
{{
...
...
src/pages/VerticalPage.js
View file @
74f182b7
...
...
@@ -1699,7 +1699,7 @@ const styles = {
display
:
'flex'
,
width
:
'100%'
,
height
:
'100%'
,
backgroundColor
:
'#0
00000
'
,
backgroundColor
:
'#0
C0C0C
'
,
},
guardModal_image
:
{
height
:
'70%'
,
...
...
@@ -1709,8 +1709,7 @@ const styles = {
alignItems
:
'center'
,
},
Imageee
:
{
height
:
'65%'
,
width
:
'80%'
,
minHeight
:
'65%'
,
},
guardModal_button
:
{
height
:
'30%'
,
...
...
src/services/store.js
View file @
74f182b7
...
...
@@ -35,6 +35,10 @@ export function door({userId}) {
return
axios
.
post
(
'/store/door'
,
qs
.
stringify
({
userId
}));
}
export
function
open
()
{
return
axios
.
post
(
'/store/openDoor'
);
}
export
function
wxdoor
({
userId
,
openid
,
...
...
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