Fix:【商城小程序】待收货和待评价订单详情页增加物流信息显示(蓝湖效果图已更新)
This commit is contained in:
@@ -253,7 +253,7 @@ export default {
|
|||||||
passkeyborad
|
passkeyborad
|
||||||
},
|
},
|
||||||
computed: mapGetters(["userInfo"]),
|
computed: mapGetters(["userInfo"]),
|
||||||
onShow: function () {
|
onShow() {
|
||||||
this.type = this.type || parseInt(this.$yroute.query.type) || 0;
|
this.type = this.type || parseInt(this.$yroute.query.type) || 0;
|
||||||
this.changeType(this.type);
|
this.changeType(this.type);
|
||||||
this.getOrderData();
|
this.getOrderData();
|
||||||
@@ -262,7 +262,7 @@ export default {
|
|||||||
this.addressId = res.id
|
this.addressId = res.id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide() {
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.limit = 20;
|
this.limit = 20;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view class="reject-reason" v-if="orderInfo._status._type==-3 && orderInfo.refundRejectReason">驳回原因:{{ orderInfo.refundRejectReason }}</view> -->
|
<!-- <view class="reject-reason" v-if="orderInfo._status._type==-3 && orderInfo.refundRejectReason">驳回原因:{{ orderInfo.refundRejectReason }}</view> -->
|
||||||
<view class="v12-radius-20 v12-white v12-pa-3 v12-mt-4" v-if="orderInfo._status._type == 3 || (orderInfo._status._type == 2 && orderInfo.isTickets!==1)">
|
<view @click="goLogistics(orderInfo)" class="v12-radius-20 v12-white v12-pa-3 v12-mt-4" v-if="orderInfo._status._type == 3 || (orderInfo._status._type == 2 && orderInfo.isTickets!==1)">
|
||||||
<view >
|
<view >
|
||||||
<text class="v12-secondary-dark-text v12-font-28">{{ orderInfo.deliveryName }}:{{ orderInfo.deliveryId }}</text>
|
<text class="v12-secondary-dark-text v12-font-28">{{ orderInfo.deliveryName }}:{{ orderInfo.deliveryId }}</text>
|
||||||
<text class="v12-font-22 v12-px-2 v12-py-1 v12-ml-1 v12-primary-text v12-primary-border v12-radius-40" @click="copyClipboard(orderInfo.orderId)">
|
<text class="v12-font-22 v12-px-2 v12-py-1 v12-ml-1 v12-primary-text v12-primary-border v12-radius-40" @click="copyClipboard(orderInfo.orderId)">
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
<view class="v12-align-center v12-mr-2">
|
<view class="v12-align-center v12-mr-2">
|
||||||
<image class="logo" :src="webUrl+'/orderIcon/car.png'" mode="" style="margin-right:0; width: 32rpx; height:32rpx"/>
|
<image class="logo" :src="webUrl+'/orderIcon/car.png'" mode="" style="margin-right:0; width: 32rpx; height:32rpx"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-28">{{ orderInfo.deliverySn }}</view>
|
<view class="v12-font-28">{{ logistics.reason }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<uni-icons type="right" size="20" color="#707070"></uni-icons>
|
<uni-icons type="right" size="20" color="#707070"></uni-icons>
|
||||||
@@ -421,7 +421,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import passkeyborad from '@/components/yzc-paykeyboard/yzc-paykeyboard'
|
import passkeyborad from '@/components/yzc-paykeyboard/yzc-paykeyboard'
|
||||||
import OrderGoods from "@/components/OrderGoods";
|
import OrderGoods from "@/components/OrderGoods";
|
||||||
import {orderDetail, orderDelay, aginConfirm} from "@/api/order";
|
import {orderDetail, orderDelay, aginConfirm, express} from "@/api/order";
|
||||||
import Payment from "@/components/Payment";
|
import Payment from "@/components/Payment";
|
||||||
import DataFormat from "@/components/DataFormat";
|
import DataFormat from "@/components/DataFormat";
|
||||||
import {copyClipboard} from "@/utils";
|
import {copyClipboard} from "@/utils";
|
||||||
@@ -476,7 +476,8 @@ export default {
|
|||||||
mapShow: false,
|
mapShow: false,
|
||||||
payPassword: null,
|
payPassword: null,
|
||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
pageKeyId: Object.freeze('userOrderInfo')
|
pageKeyId: Object.freeze('userOrderInfo'),
|
||||||
|
logistics: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -492,9 +493,37 @@ export default {
|
|||||||
// inject: ["app"],
|
// inject: ["app"],
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.id = this.$yroute.query.id;
|
this.id = this.$yroute.query.id;
|
||||||
|
this.getExpressInfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copyClipboard,
|
copyClipboard,
|
||||||
|
getExpressInfo() {
|
||||||
|
let params = {
|
||||||
|
orderCode: this.orderInfo.id,
|
||||||
|
shipperCode: this.orderInfo.deliverySn,
|
||||||
|
logisticCode: this.orderInfo.deliveryId
|
||||||
|
};
|
||||||
|
express(params)
|
||||||
|
.then(res => {
|
||||||
|
this.logistics = res.data
|
||||||
|
})
|
||||||
|
.catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title:
|
||||||
|
err.msg || err.response.data.msg || err.response.data.message,
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
goLogistics(order) {
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: "/pages/order/Logistics/index",
|
||||||
|
query: {
|
||||||
|
id: order.orderId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
buyAgin() {
|
buyAgin() {
|
||||||
const params = {
|
const params = {
|
||||||
orderId: this.orderInfo.orderId
|
orderId: this.orderInfo.orderId
|
||||||
|
|||||||
Reference in New Issue
Block a user