页面路径:/pages/goods/order_details/index.vue
查找函数:goOrderConfirm()替换如下代码
goOrderConfirm: function() {
let that = this;
orderAgain(that.orderInfo.order_id).then(res => {
let deliveryType = 1;
let orderInfo = that.orderInfo
if(orderInfo.shipping_type==1 && orderInfo.store_id>0){
deliveryType = 3
}else{
deliveryType = orderInfo.shipping_type
}
return uni.navigateTo({
url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cateId + '&store_id=' + that.orderInfo.store_id + '&delivery_type=' + deliveryType
});
}).catch(err => {
return that.$util.Tips({
title: err
});
});
},
修改完后记得打包上传