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;

View File

@ -44,7 +44,7 @@
<!--待收货-->
<view class="logistics-all" data-item='{{goods}}' data-logistics-num="{{goods.logisticsNum}}" catchtap="viewLogisticsDetails" wx:if='{{goods.status==3 && (!goods.afterSalesStatus||goods.afterSalesStatus==66||goods.afterSalesStatus==64)}}'>
<view class="logistics-all" data-item='{{goods}}' data-order-number="{{goods.orderNumber}}" data-logistics="{{refundLogistics}}" data-logistics-name="{{goods.orderRefundName}}" data-logistics-num="{{goods.logisticsNum}}" catchtap="viewLogisticsDetails" wx:if='{{goods.status==3 && (!goods.afterSalesStatus||goods.afterSalesStatus==66||goods.afterSalesStatus==64)}}'>
<view class="logistics display_J_B">
<view class="logistics-l display_J_S display_A_C">
<image src="/icon/express_icon.png"></image>
@ -206,6 +206,7 @@
<view class="b-btn display_J_E display_A_C" wx:if="{{goods.status>2&&goods.status<6}}">
<view class="btn" wx:if="{{goods.status==5||goods.status==4}}" catchtap="del">删除订单</view>
<view class="btn" wx:if="{{goods.status==3}}" data-item='{{goods}}' data-logistics="{{goods.logistics}}" data-order-number="{{goods.orderNumber}}" data-logistics-name="{{goods.logisticsName}}" catchtap="viewLogisticsDetails">物流查询</view>
<view class="btn btn-red" catchtap="apply" data-id='{{goods.id}}' data-num='{{goods.orderNumber}}' data-s='{{goods.status}}' data-sq='2' wx:if="{{goods.status==3}}">全部换货</view>
<view class="btn btn-red" catchtap="confirm" wx:if="{{goods.status==3}}">确认收货</view>
<view class="btn btn-red" catchtap="rate" wx:if="{{goods.status==4}}">评价</view>
</view>