diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 4b682f3..3ae1f84 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -819,6 +819,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"), diff --git a/pages/coupon/detail/index.ttml b/pages/coupon/detail/index.ttml index 6b3d374..b1163f7 100644 --- a/pages/coupon/detail/index.ttml +++ b/pages/coupon/detail/index.ttml @@ -140,8 +140,14 @@ 购买须知 - 有效期 + 使用期 • {{validStartDate}}至{{validEndDate}} + + + 售卖期 + • {{soldStartTime}}至{{soldEndTime}} + + 可用时间 • 商家营业时间内到店使用 • 周末不支持使用 diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index e65edcd..3344e63 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -387,8 +387,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) { diff --git a/pages/order/detail/index.ttml b/pages/order/detail/index.ttml index 43d32be..85ffcd5 100644 --- a/pages/order/detail/index.ttml +++ b/pages/order/detail/index.ttml @@ -255,35 +255,106 @@ - - + + 礼券: + + + + + + {{item.title}} + 面额:{{item.priceStr}}元 + + + + + + + + + + + + + + - 签收 - - 去评价 - - 对本订单有疑问或纠纷,请点击下方联系抖音官方客服 - - - 抖音官方客服 + 签收 + + 去评价 + + 对本订单有疑问或纠纷,请点击下方联系抖音官方客服 + + + 抖音官方客服 + - - - - 是否确认收到商品? - 签收后将完成订单 - - 确认签收 - 取消 + + + 是否确认收到商品? + 签收后将完成订单 + + 确认签收 + 取消 + - - \ No newline at end of file + \ No newline at end of file