| @@ -1,23 +1,21 @@ | |||||
| { | { | ||||
| "ext": { | "ext": { | ||||
| "attr": { | "attr": { | ||||
| "configUrl": "https://c.malls.iformall.com/C/api" | |||||
| "configUrl": "https://ctest.malls.iformall.com/C/api" | |||||
| }, | }, | ||||
| "name": "吾悦广场", | |||||
| "weappId": "tt48a23e1fd79d648801" | |||||
| "name": "富茂券券集团版", | |||||
| "weappId": "tt620e14b3fd30264101" | |||||
| }, | }, | ||||
| "window": { | "window": { | ||||
| "backgroundTextStyle": "light", | "backgroundTextStyle": "light", | ||||
| "navigationBarTextStyle": "black", | "navigationBarTextStyle": "black", | ||||
| "navigationBarTitleText": "Mini Program", | |||||
| "navigationBarBackgroundColor": "#fff" | "navigationBarBackgroundColor": "#fff" | ||||
| }, | }, | ||||
| "extAppid": "tt48a23e1fd79d648801", | |||||
| "extAppid": "tt620e14b3fd30264101", | |||||
| "extEnable": true, | "extEnable": true, | ||||
| "directCommit": false, | "directCommit": false, | ||||
| "networkTimeout": { | "networkTimeout": { | ||||
| "request": 30000, | "request": 30000, | ||||
| "downloadFile": 10000 | "downloadFile": 10000 | ||||
| }, | |||||
| "requiredPrivateInfos": ["chooseLocation", "getLocation"] | |||||
| } | |||||
| } | } | ||||
| @@ -789,6 +789,8 @@ Page({ | |||||
| } | } | ||||
| if (res.data.validType == 1) { | if (res.data.validType == 1) { | ||||
| that.setData({ | that.setData({ | ||||
| soldStartTime: util.formatTime(res.data.soldStartTime, "yyyy-MM-dd") || null, | |||||
| soldEndTime: util.formatTime(res.data.soldEndTime, "yyyy-MM-dd") || null, | |||||
| validStartDate: util.formatTime(res.data.validStartDate, "yyyy-MM-dd"), | validStartDate: util.formatTime(res.data.validStartDate, "yyyy-MM-dd"), | ||||
| validEndDate: util.formatTime(res.data.validEndDate, "yyyy-MM-dd"), | validEndDate: util.formatTime(res.data.validEndDate, "yyyy-MM-dd"), | ||||
| pickStartDate: util.formatTime(res.data.pickStartDate, "yyyy-MM-dd"), | pickStartDate: util.formatTime(res.data.pickStartDate, "yyyy-MM-dd"), | ||||
| @@ -140,8 +140,14 @@ | |||||
| <view class='notes'> | <view class='notes'> | ||||
| <view class="notesH">购买须知</view> | <view class="notesH">购买须知</view> | ||||
| <view class="timeText">有效期</view> | |||||
| <view class="timeText">使用期</view> | |||||
| <view class="Hchild">• {{validStartDate}}至{{validEndDate}}</view> | <view class="Hchild">• {{validStartDate}}至{{validEndDate}}</view> | ||||
| <view tt:if="{{soldStartTime && soldEndTime}}"> | |||||
| <view class="timeText">售卖期</view> | |||||
| <view class="Hchild">• {{soldStartTime}}至{{soldEndTime}}</view> | |||||
| </view> | |||||
| <view class="timeText">可用时间</view> | <view class="timeText">可用时间</view> | ||||
| <view class="Hchild">• 商家营业时间内到店使用</view> | <view class="Hchild">• 商家营业时间内到店使用</view> | ||||
| <view class="Hchild" tt:if="{{data.can_no_use_date.weekend}}">• 周末不支持使用</view> | <view class="Hchild" tt:if="{{data.can_no_use_date.weekend}}">• 周末不支持使用</view> | ||||
| @@ -281,8 +281,13 @@ Page({ | |||||
| let tempData = res.data.orders[0] | let tempData = res.data.orders[0] | ||||
| tempData.deliveryInfo = tempData.deliveryInfo ? JSON.parse(tempData.deliveryInfo) : "" | tempData.deliveryInfo = tempData.deliveryInfo ? JSON.parse(tempData.deliveryInfo) : "" | ||||
| tempData.itemGroup = tempData.itemGroup ? JSON.parse(tempData.itemGroup) : "" | tempData.itemGroup = tempData.itemGroup ? JSON.parse(tempData.itemGroup) : "" | ||||
| tempData.validStartDate = util.formatTime(tempData.validStartDate, "yyyy-MM-dd") | |||||
| tempData.soldStartTime = util.formatTime(tempData.soldStartTime, "yyyy-MM-dd") || null, | |||||
| tempData.soldEndTime = util.formatTime(tempData.soldEndTime, "yyyy-MM-dd") || null, | |||||
| tempData.validStartDate = util.formatTime(tempData.validStartDate, "yyyy-MM-dd") | |||||
| tempData.validEndDate = util.formatTime(tempData.validEndDate, "yyyy-MM-dd") | tempData.validEndDate = util.formatTime(tempData.validEndDate, "yyyy-MM-dd") | ||||
| tempData.couponOrderIdS = tempData.couponOrderId ? tempData.couponOrderId.slice(0, 4) + `******` + tempData.couponOrderId.slice(14) : '' | tempData.couponOrderIdS = tempData.couponOrderId ? tempData.couponOrderId.slice(0, 4) + `******` + tempData.couponOrderId.slice(14) : '' | ||||
| if (tempData.productAttrs && tempData.skuAttrs) { | if (tempData.productAttrs && tempData.skuAttrs) { | ||||
| @@ -183,6 +183,12 @@ | |||||
| <view class="notesH">购买须知</view> | <view class="notesH">购买须知</view> | ||||
| <view class="timeText">有效期</view> | <view class="timeText">有效期</view> | ||||
| <view class="Hchild">• {{order.validStartDate}}至{{order.validEndDate}}</view> | <view class="Hchild">• {{order.validStartDate}}至{{order.validEndDate}}</view> | ||||
| <view tt:if="{{order.soldStartTime && order.soldEndTime}}"> | |||||
| <view class="timeText">售卖期</view> | |||||
| <view class="Hchild">• {{order.soldStartTime}}至{{order.soldEndTime}}</view> | |||||
| </view> | |||||
| <view class="timeText">可用时间</view> | <view class="timeText">可用时间</view> | ||||
| <view class="Hchild">• 商家营业时间内到店使用</view> | <view class="Hchild">• 商家营业时间内到店使用</view> | ||||
| <view class="Hchild" tt:if="{{order.can_no_use_date.weekend}}">• 周末不支持使用</view> | <view class="Hchild" tt:if="{{order.can_no_use_date.weekend}}">• 周末不支持使用</view> | ||||