Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
高淑倩
7-Eleven
Commits
c895812f
Commit
c895812f
authored
Mar 15, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传代码
parent
9ae4544b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
couponWriteOff.js
src/shoppingGuid/page/pages/couponWriteOff/couponWriteOff.js
+16
-1
No files found.
src/shoppingGuid/page/pages/couponWriteOff/couponWriteOff.js
View file @
c895812f
...
@@ -123,7 +123,7 @@ wxService.page({
...
@@ -123,7 +123,7 @@ wxService.page({
wxService
.
post
(
`/coupon/coupon/checkAndInvalid`
,
param
).
then
(
res
=>
{
wxService
.
post
(
`/coupon/coupon/checkAndInvalid`
,
param
).
then
(
res
=>
{
wx
.
hideLoading
();
wx
.
hideLoading
();
if
(
res
){
if
(
res
){
if
(
res
.
data
.
result
==
0
)
{
if
(
res
.
data
.
result
==
0
||
res
.
data
.
data
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
'核销成功'
,
title
:
'核销成功'
,
icon
:
'success'
,
icon
:
'success'
,
...
@@ -138,6 +138,21 @@ wxService.page({
...
@@ -138,6 +138,21 @@ wxService.page({
}
}
});
});
}
}
else
{
wx
.
showToast
({
title
:
'核销失败,请确定券未被核销'
,
icon
:
'none'
,
duration
:
2000
,
mask
:
true
,
success
:
function
()
{
setTimeout
(()
=>
{
wx
.
navigateBack
({
delta
:
1
});
},
1500
);
}
});
}
}
}
});
});
}
}
...
...
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