Commit edf880c1 by 谢中龙

超值卡判断失效逻辑

parent 4251d06c
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
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.8.2", "libVersion": "2.8.2",
"appid": "wxac09792264c49b5c", "appid": "wx700028bf32a3be66",
"projectname": "7-11", "projectname": "7-11",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
......
...@@ -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);
......
...@@ -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}}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment