|
@@ -29,7 +29,7 @@
|
|
|
<!-- <form @submit="formSubmit" class="formId" report-submit="true">
|
|
|
<button form-type="submit"></button>
|
|
|
</form> -->
|
|
|
- <van-cell :title="item.itemName" :label="(item.expiryDate&&(item.expiryDate.substr(0,10)=='2099-01-01'))?'过期时间:'+item.expiryDate:''" v-for="item in customerBundleItemList" :key="item.id" :id='item.id' is-link @click="subscribeMessage">
|
|
|
+ <van-cell :title="item.itemName" :label="item.expiryDateStr" v-for="item in customerBundleItemList" :key="item.id" :id='item.id' is-link @click="subscribeMessage">
|
|
|
<div class="package-qr">
|
|
|
<span>剩余{{item.remainTimes}}次</span>
|
|
|
<van-icon class="icon-qr" size="1.5em" name="qr" color="#ff5500" />
|
|
@@ -204,7 +204,12 @@ export default {
|
|
|
_this.bundle = res.data.bundle || {icon2: null, name: '', tag: null, price: 0};
|
|
|
_this.coupon = res.data.coupon;
|
|
|
_this.orderBundle = res.data.orderBundle;
|
|
|
- _this.customerBundleItemList = res.data.customerBundleItemList;
|
|
|
+ res.data.customerBundleItemList.map(item => {
|
|
|
+ if(item.expiryDate && (item.expiryDate.substr(0,10) != '2099-01-01')){
|
|
|
+ item.expiryDateStr = '过期时间:' + item.expiryDate
|
|
|
+ }
|
|
|
+ })
|
|
|
+ _this.customerBundleItemList = res.data.customerBundleItemList
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
title: res.message,
|