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
102e2650
Commit
102e2650
authored
Mar 13, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
2f862a5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
myValueCard.wxml
src/subPackage/page/pages/myValueCard/myValueCard.wxml
+1
-1
myValueCardInfo.js
src/subPackage/page/pages/myValueCardInfo/myValueCardInfo.js
+18
-3
No files found.
src/subPackage/page/pages/myValueCard/myValueCard.wxml
View file @
102e2650
...
...
@@ -11,7 +11,7 @@
<view class='card-status'>已过期</view>
</view>
</view>
<view class='card-top-info' bindtap='onTap
ShowMoreInfo
' data-item="{{item}}" data-index="{{idx}}">
<view class='card-top-info' bindtap='onTap
ToInfoPage
' data-item="{{item}}" data-index="{{idx}}">
<image class='bg-image {{item.isOpen ? "expand" : "unexpand"}}'
src='{{item.backGroundUrl}}'
mode='widthFix'></image>
...
...
src/subPackage/page/pages/myValueCardInfo/myValueCardInfo.js
View file @
102e2650
...
...
@@ -72,6 +72,7 @@ wxService.page({
no
:
obj
.
supValCardCode
},()
=>
{
this
.
generatorBarCode
();
this
.
startTimer
();
});
}
});
...
...
@@ -89,9 +90,9 @@ wxService.page({
no
:
this
.
data
.
no
,
},()
=>
{
this
.
generatorBarCode
();
wx
.
showToast
({
title
:
'刷新成功!'
,
});
//
wx.showToast({
//
title: '刷新成功!',
//
});
})
}
else
{
...
...
@@ -104,6 +105,20 @@ wxService.page({
});
},
//开始定时任务 每10s调用一下
startTimer
()
{
this
.
timer
=
setInterval
(()
=>
{
this
.
onTapRefreshNo
();
},
10000
);
},
//
onUnload
()
{
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
);
}
},
//生成条形码
generatorBarCode
()
{
if
(
this
.
data
.
no
)
{
...
...
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