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
11108755
Commit
11108755
authored
Jun 05, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 优惠券切换清空数据
parent
238711a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
coupons.js
src/pages/coupons/coupons.js
+4
-2
No files found.
src/pages/coupons/coupons.js
View file @
11108755
...
...
@@ -42,14 +42,16 @@ wxService.page({
// 点击切换
clickTab
:
function
(
e
)
{
const
{
current
}
=
e
.
target
.
dataset
console
.
log
(
'点击切换'
,
current
,
this
.
data
.
currentTab
)
if
(
this
.
data
.
currentTab
==
current
)
{
return
false
;
}
else
{
this
.
setData
({
currentTab
:
current
currentTab
:
current
,
couponList
:
[],
// 清空数据
invalidCouponList
:
[],
})
}
// 可使用
if
(
current
==
0
){
this
.
getCouponList
(
1
,
10
,
1
)
...
...
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