Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
pseer
gxpt_wechat
Commits
0cc12cb3
Commit
0cc12cb3
authored
Oct 10, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
b811d8ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
couponCheck.vue
pages/couponCheck/couponCheck.vue
+11
-2
No files found.
pages/couponCheck/couponCheck.vue
View file @
0cc12cb3
...
...
@@ -119,7 +119,8 @@
orderPage
:
false
,
popStoreList
:[],
qrCode
:
''
,
loginStatus
:
uni
.
getStorageSync
(
'loginStatus'
)
==
'login'
?
true
:
false
loginStatus
:
uni
.
getStorageSync
(
'loginStatus'
)
==
'login'
?
true
:
false
,
submitStatus
:
true
};
},
filters
:{
...
...
@@ -153,6 +154,10 @@
this
.
$refs
.
loginPop
.
open
();
return
}
if
(
!
this
.
submitStatus
)
return
;
this
.
submitStatus
=
false
;
let
that
=
this
;
if
(
!
this
.
code
){
uni
.
showToast
({
...
...
@@ -187,9 +192,11 @@
this
.
onExchangeCoupon
(
this
.
qrCode
,
this
.
storeId
)
}
else
{
this
.
$refs
.
popupStoreList
.
open
();
this
.
submitStatus
=
true
;
}
}
else
{
this
.
submitStatus
=
true
;
uni
.
showToast
({
icon
:
"none"
,
title
:
res
.
data
.
msg
...
...
@@ -198,7 +205,7 @@
})
},
onStoreChage
(
val
){
console
.
log
(
val
,
90909
)
let
info
=
this
.
popStoreList
.
find
(
item
=>
item
.
id
===
val
)
if
(
info
.
status
==
1
){
this
.
$refs
.
popupStoreList
.
close
();
...
...
@@ -228,6 +235,7 @@
icon
:
"success"
,
title
:
"核验成功"
,
success
:
()
=>
{
this
.
submitStatus
=
true
;
setTimeout
(()
=>
{
if
(
that
.
orderPage
){
that
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
...
...
@@ -248,6 +256,7 @@
}
})
}
else
{
this
.
submitStatus
=
true
;
uni
.
showToast
({
icon
:
"none"
,
title
:
res
.
data
.
msg
,
...
...
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