This commit is contained in:
quantulr
2024-06-07 16:43:09 +08:00
parent ee30f0cc3f
commit 99c82fb2a2
12 changed files with 223 additions and 9 deletions

View File

@ -12,6 +12,7 @@ Page({
ticker: '--:--',
leftoverDay: "",
shops: false,//商铺进入
refundLogistics: null
},
//商品详情
@ -77,6 +78,16 @@ Page({
numAll: numAll,
logistics: goods.logistics ? JSON.parse(goods.logistics) : null
})
// 用户已提交退货物流信息
if (goods.afterSalesStatus == 64) {
this.setData({
refundLogistics: JSON.stringify([{
id: Date.now(),
goods: [],
logisticsNumber: goods.orderRefundNumber
}])
})
}
if (goods.status == 1) {
this.setData({
setIntervalTime: setInterval((t) => {
@ -113,7 +124,7 @@ Page({
// 获取发货时间
let orderDeliverTime = goods.orderDeliverTime
console.log("=======")
let orderDeliverTimeMillisecond = (new Date(orderDeliverTime.replace(/-/g, '/'))).getTime() + 15 * 24 * 60 * 60 * 1000; //得到毫秒数
let orderDeliverTimeMillisecond = (new Date(orderDeliverTime.replace(/-/g, '/'))).getTime() + 15 * 24 * 60 * 60 * 1000; // 得到毫秒数
// 获取现在的毫秒值
console.log(orderDeliverTimeMillisecond)
let nowTime = new Date().getTime()
@ -158,6 +169,7 @@ Page({
wx.navigateTo({
url: '/pages/my/applyAfter_sales/applyAfter_sales?id=' + id + '&num=' + num + '&sq=' + sq + "&packageId=" + packageId,
})
},
countDown() {
let leftoverDayI = this.data.leftoverDayI;