Browse Source

upload

soldDate
HolyKnightIX 1 year ago
parent
commit
bbc4553764
5 changed files with 26 additions and 9 deletions
  1. +5
    -7
      ext.json
  2. +2
    -0
      pages/coupon/detail/index.js
  3. +7
    -1
      pages/coupon/detail/index.ttml
  4. +6
    -1
      pages/order/detail/index.js
  5. +6
    -0
      pages/order/detail/index.ttml

+ 5
- 7
ext.json View File

@@ -1,23 +1,21 @@
{
"ext": {
"attr": {
"configUrl": "https://c.malls.iformall.com/C/api"
"configUrl": "https://ctest.malls.iformall.com/C/api"
},
"name": "吾悦广场",
"weappId": "tt48a23e1fd79d648801"
"name": "富茂券券集团版",
"weappId": "tt620e14b3fd30264101"
},
"window": {
"backgroundTextStyle": "light",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "Mini Program",
"navigationBarBackgroundColor": "#fff"
},
"extAppid": "tt48a23e1fd79d648801",
"extAppid": "tt620e14b3fd30264101",
"extEnable": true,
"directCommit": false,
"networkTimeout": {
"request": 30000,
"downloadFile": 10000
},
"requiredPrivateInfos": ["chooseLocation", "getLocation"]
}
}

+ 2
- 0
pages/coupon/detail/index.js View File

@@ -789,6 +789,8 @@ Page({
}
if (res.data.validType == 1) {
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"),
validEndDate: util.formatTime(res.data.validEndDate, "yyyy-MM-dd"),
pickStartDate: util.formatTime(res.data.pickStartDate, "yyyy-MM-dd"),


+ 7
- 1
pages/coupon/detail/index.ttml View File

@@ -140,8 +140,14 @@

<view class='notes'>
<view class="notesH">购买须知</view>
<view class="timeText">有效期</view>
<view class="timeText">使用期</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="Hchild">• 商家营业时间内到店使用</view>
<view class="Hchild" tt:if="{{data.can_no_use_date.weekend}}">• 周末不支持使用</view>


+ 6
- 1
pages/order/detail/index.js View File

@@ -281,8 +281,13 @@ Page({
let tempData = res.data.orders[0]
tempData.deliveryInfo = tempData.deliveryInfo ? JSON.parse(tempData.deliveryInfo) : ""
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.couponOrderIdS = tempData.couponOrderId ? tempData.couponOrderId.slice(0, 4) + `******` + tempData.couponOrderId.slice(14) : ''

if (tempData.productAttrs && tempData.skuAttrs) {


+ 6
- 0
pages/order/detail/index.ttml View File

@@ -183,6 +183,12 @@
<view class="notesH">购买须知</view>
<view class="timeText">有效期</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="Hchild">• 商家营业时间内到店使用</view>
<view class="Hchild" tt:if="{{order.can_no_use_date.weekend}}">• 周末不支持使用</view>


Loading…
Cancel
Save