京东物流

main
fanfan 7 months ago
parent 5015da73cc
commit c5c6436c39
  1. 6
      pages.json
  2. 30
      pages/order/detail.vue
  3. 48
      pages/order/index.vue

@ -887,6 +887,12 @@
"style": {
"navigationBarTitleText": "订单评价"
}
},
{
"path": "express/webView",
"style": {
"navigationBarTitleText": "订单跟踪"
}
}
]
},

@ -298,7 +298,7 @@
v-if="order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_type == DeliveryTypeEnum.EXTRACT.value">
核销码
</view>
<view class="buyAgain" @click="handleTargetExpress(order.order_id)"
<view class="buyAgain" @click="handleTargetExpress(order.order_id,order)"
v-if="order.delivery_status == DeliveryStatusEnum.DELIVERED.value&&order.delivery_type == DeliveryTypeEnum.EXPRESS.value">
查看物流
</view>
@ -560,12 +560,28 @@
shopId
})
},
containsLetterMix(str, mix) {
return new RegExp(mix.split('').join('\\w*')).test(str)
},
//
//
handleTargetExpress() {
this.$navTo('pages/order/express/index', {
orderId: this.orderId
})
handleTargetExpress(orderId, item) {
if (item.delivery) {
let url =item.delivery[0].express_no
if (this.containsLetterMix(url, 'jd.com')&&item.delivery.length>0) {
uni.navigateTo({
url: '/pages/order/express/webView?src=' + encodeURIComponent(url) //urlh5pageB
})
} else {
this.$navTo('pages/order/express/index', {
orderId
})
}
} else {
this.$navTo('pages/order/express/index', {
orderId
})
}
},
//
@ -581,7 +597,7 @@
})
},
//
onInvoicing(orderId,order) {
onInvoicing(orderId, order) {
uni.setStorageSync("orderInfor", order);
uni.navigateTo({
url: '/pages/invoice/edit?orderId=' + orderId

@ -83,7 +83,7 @@
@click="onPay(item.order_id)">立即支付</view>
<view class="n"
v-if="item.delivery_type == DeliveryTypeEnum.EXPRESS.value&&item.delivery_status == DeliveryStatusEnum.DELIVERED.value"
@click="onLogistics(item.order_id)">查看物流
@click="onLogistics(item.order_id,item)">查看物流
</view>
<view class="n n-1"
v-if="item.delivery_type == DeliveryTypeEnum.EXPRESS.value&&item.delivery_status == DeliveryStatusEnum.DELIVERED.value && item.receipt_status == ReceiptStatusEnum.NOT_RECEIVED.value"
@ -97,7 +97,7 @@
<!-- <view class="n"
v-if="item.pay_status == PayStatusEnum.SUCCESS.value && item.delivery_status == DeliveryStatusEnum.NOT_DELIVERED.value"
@click="onAdress(order.goods_id)">修改地址</view> -->
<!-- <view class="n n-1" @click="onInvoicing(item.order_id,item)">评价</view> -->
<!-- <view class="n n-1" @click="handleTargetComment(item.order_id,item)">评价</view> -->
</view>
</view>
</view>
@ -411,6 +411,7 @@
app.showQRCodePopup = true
})
},
//
handleTargetComment(orderId) {
this.$navTo('pages/order/comment/index', {
@ -436,11 +437,28 @@
orderId
})
},
containsLetterMix(str, mix) {
return new RegExp(mix.split('').join('\\w*')).test(str)
},
//
//
onLogistics(orderId) {
this.$navTo('pages/order/express/index', {
orderId
})
onLogistics(orderId, item) {
if (item.delivery) {
let url = item.delivery.express_no
if (this.containsLetterMix(url, 'jd.com')) {
uni.navigateTo({
url: '/pages/order/express/webView?src=' + encodeURIComponent(url) //urlh5pageB
})
} else {
this.$navTo('pages/order/express/index', {
orderId
})
}
} else {
this.$navTo('pages/order/express/index', {
orderId
})
}
},
//
onPay(orderId) {
@ -471,12 +489,6 @@
goodsId
})
},
//
handleTargetComment(orderId) {
this.$navTo('pages/order/comment/index', {
orderId
})
}
},
@ -685,7 +697,7 @@
display: flex;
align-items: flex-start;
overflow: hidden;
margin-bottom: 30rpx;
margin-bottom: 15rpx;
.pic {
width: 162rpx;
@ -752,13 +764,15 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx 0;
margin-top: 15rpx;
padding: 20rpx 0;
overflow: hidden;
border-top: 2rpx dashed #F2F2F2;
.a {
font-size: 28rpx;
font-weight: 400;
color: #A59E9E;
color: #666;
}
.b {
@ -775,9 +789,9 @@
border-radius: 56rpx;
opacity: 1;
border: 1px solid #DFDFDF;
margin-left: 6rpx;
margin-left: 15rpx;
text-align: center;
font-size: 24rpx;
font-size: 26rpx;
font-weight: 400;
color: #1E1E1E;

Loading…
Cancel
Save