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 @@
...
@@ -119,7 +119,8 @@
orderPage
:
false
,
orderPage
:
false
,
popStoreList
:[],
popStoreList
:[],
qrCode
:
''
,
qrCode
:
''
,
loginStatus
:
uni
.
getStorageSync
(
'loginStatus'
)
==
'login'
?
true
:
false
loginStatus
:
uni
.
getStorageSync
(
'loginStatus'
)
==
'login'
?
true
:
false
,
submitStatus
:
true
};
};
},
},
filters
:{
filters
:{
...
@@ -153,6 +154,10 @@
...
@@ -153,6 +154,10 @@
this
.
$refs
.
loginPop
.
open
();
this
.
$refs
.
loginPop
.
open
();
return
return
}
}
if
(
!
this
.
submitStatus
)
return
;
this
.
submitStatus
=
false
;
let
that
=
this
;
let
that
=
this
;
if
(
!
this
.
code
){
if
(
!
this
.
code
){
uni
.
showToast
({
uni
.
showToast
({
...
@@ -187,9 +192,11 @@
...
@@ -187,9 +192,11 @@
this
.
onExchangeCoupon
(
this
.
qrCode
,
this
.
storeId
)
this
.
onExchangeCoupon
(
this
.
qrCode
,
this
.
storeId
)
}
else
{
}
else
{
this
.
$refs
.
popupStoreList
.
open
();
this
.
$refs
.
popupStoreList
.
open
();
this
.
submitStatus
=
true
;
}
}
}
else
{
}
else
{
this
.
submitStatus
=
true
;
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
res
.
data
.
msg
title
:
res
.
data
.
msg
...
@@ -198,7 +205,7 @@
...
@@ -198,7 +205,7 @@
})
})
},
},
onStoreChage
(
val
){
onStoreChage
(
val
){
console
.
log
(
val
,
90909
)
let
info
=
this
.
popStoreList
.
find
(
item
=>
item
.
id
===
val
)
let
info
=
this
.
popStoreList
.
find
(
item
=>
item
.
id
===
val
)
if
(
info
.
status
==
1
){
if
(
info
.
status
==
1
){
this
.
$refs
.
popupStoreList
.
close
();
this
.
$refs
.
popupStoreList
.
close
();
...
@@ -228,6 +235,7 @@
...
@@ -228,6 +235,7 @@
icon
:
"success"
,
icon
:
"success"
,
title
:
"核验成功"
,
title
:
"核验成功"
,
success
:
()
=>
{
success
:
()
=>
{
this
.
submitStatus
=
true
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
that
.
orderPage
){
if
(
that
.
orderPage
){
that
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
that
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
...
@@ -248,6 +256,7 @@
...
@@ -248,6 +256,7 @@
}
}
})
})
}
else
{
}
else
{
this
.
submitStatus
=
true
;
uni
.
showToast
({
uni
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
title
:
res
.
data
.
msg
,
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