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
edf880c1
Commit
edf880c1
authored
Apr 10, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超值卡判断失效逻辑
parent
4251d06c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
index.js
src/config/index.js
+2
-2
project.config.json
src/project.config.json
+1
-1
myValueCard.js
src/subPackage/page/pages/myValueCard/myValueCard.js
+1
-0
myValueCard.wxml
src/subPackage/page/pages/myValueCard/myValueCard.wxml
+2
-2
No files found.
src/config/index.js
View file @
edf880c1
const
PROJECT_ENV
=
'
test
'
// 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const
PROJECT_ENV
=
'
prod
'
// 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const
needMock
=
''
//
const
needMock
=
''
//
const
brandId
=
1002
;
//1002 测试 2711 生产
const
brandId
=
2711
;
//1002 测试 2711 生产
// appid_dev_wx wxc3b64b09b1d3dfc2
// appid_dev_wx wxc3b64b09b1d3dfc2
// appid_test_wx wxac09792264c49b5c
// appid_test_wx wxac09792264c49b5c
// appid_pre_711 wx358b56af62edbde1
// appid_pre_711 wx358b56af62edbde1
...
...
src/project.config.json
View file @
edf880c1
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"appid"
:
"wx
700028bf32a3be66
"
,
"projectname"
:
"7-11"
,
"projectname"
:
"7-11"
,
"debugOptions"
:
{
"debugOptions"
:
{
"hidedInDevtools"
:
[]
"hidedInDevtools"
:
[]
...
...
src/subPackage/page/pages/myValueCard/myValueCard.js
View file @
edf880c1
...
@@ -116,6 +116,7 @@ wxService.page({
...
@@ -116,6 +116,7 @@ wxService.page({
item
.
startTime
=
item
.
startTime
.
substring
(
0
,
10
);
item
.
startTime
=
item
.
startTime
.
substring
(
0
,
10
);
item
.
endTime
=
item
.
endTime
.
substring
(
0
,
10
);
item
.
endTime
=
item
.
endTime
.
substring
(
0
,
10
);
item
.
useResidueDays
=
item
.
useResidueDays
?
item
.
useResidueDays
:
0
;
item
.
useResidueDays
=
item
.
useResidueDays
?
item
.
useResidueDays
:
0
;
item
.
validstatus
=
item
.
validstatus
?
item
.
validstatus
:
0
;
});
});
this
.
data
.
myCardsList
=
this
.
data
.
myCardsList
.
concat
(
data
);
this
.
data
.
myCardsList
=
this
.
data
.
myCardsList
.
concat
(
data
);
...
...
src/subPackage/page/pages/myValueCard/myValueCard.wxml
View file @
edf880c1
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
wx:for-index="idx"
wx:for-index="idx"
wx:key="*this">
wx:key="*this">
<!-- 失效的时候 -->
<!-- 失效的时候 -->
<view class='invalide' wx:if="{{item.
useResidueDays <= 0
}}">
<view class='invalide' wx:if="{{item.
validstatus == 1
}}">
<view class='status-bar'>
<view class='status-bar'>
<view class='card-status'>已
过期
</view>
<view class='card-status'>已
失效
</view>
</view>
</view>
</view>
</view>
<view class='card-top-info' bindtap='onTapToInfoPage' data-item="{{item}}" data-index="{{idx}}">
<view class='card-top-info' bindtap='onTapToInfoPage' data-item="{{item}}" data-index="{{idx}}">
...
...
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