|
@@ -31,7 +31,7 @@
|
|
|
去支付
|
|
去支付
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
-<!-- <view @click="setAddress" class="w-33 flex-direction align-items-center"
|
|
|
|
|
|
|
+ <!-- <view @click="setAddress" class="w-33 flex-direction align-items-center"
|
|
|
v-show="infoData.order_status == 1 || infoData.order_status == 2">
|
|
v-show="infoData.order_status == 1 || infoData.order_status == 2">
|
|
|
<image class="mb-4 icon" src="@/static/img/order/xgdd.png" mode=""></image>
|
|
<image class="mb-4 icon" src="@/static/img/order/xgdd.png" mode=""></image>
|
|
|
<view class="fs-24 fc-3">
|
|
<view class="fs-24 fc-3">
|
|
@@ -62,6 +62,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="p-24-24-0 box-border-box">
|
|
|
|
|
+ <view class="p-24 box-border-box bgc-f b-rad-20">
|
|
|
|
|
+ <view class="fs-28 fc-3 fw-600 mb-16">
|
|
|
|
|
+ 取件码
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="b-rad-12 p-24 box-border-box bgc-F3F4F6 align-items-center flex-wrap-wrap">
|
|
|
|
|
+ <view class="item-code text-align-center" v-for="(item,index) in infoData.pickup_code">
|
|
|
|
|
+ {{item}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
<scroll-view :scroll-y="true" class="scroll-view-css p-24 box-border-box" @scrolltolower="scrolltolower">
|
|
<scroll-view :scroll-y="true" class="scroll-view-css p-24 box-border-box" @scrolltolower="scrolltolower">
|
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
<view class="bgc-f b-rad-20 p-24 box-border-box mb-20">
|
|
|
<view class="w-420 fc-3 fs-32 fw-600 text-overflow-ellipsis-one mb-24">
|
|
<view class="w-420 fc-3 fs-32 fw-600 text-overflow-ellipsis-one mb-24">
|
|
@@ -278,7 +290,7 @@
|
|
|
},
|
|
},
|
|
|
getExpressPay(id) {
|
|
getExpressPay(id) {
|
|
|
// 代取支付
|
|
// 代取支付
|
|
|
- if (!this.isAJAX) {
|
|
|
|
|
|
|
+ if (this.isAJAX) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.isAJAX = true;
|
|
this.isAJAX = true;
|
|
@@ -311,22 +323,34 @@
|
|
|
},
|
|
},
|
|
|
cancelOrder() {
|
|
cancelOrder() {
|
|
|
// 代取取消订单
|
|
// 代取取消订单
|
|
|
- if (!this.isAJAX) {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- this.isAJAX = true;
|
|
|
|
|
- expressOrderCancel({
|
|
|
|
|
- order_id: this.infoData.id
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- if (res.code == 1) {
|
|
|
|
|
- tools.success(res.msg)
|
|
|
|
|
- this.expressOrderInfo(this.infoData.id)
|
|
|
|
|
- this.isAJAX = false;
|
|
|
|
|
- } else {
|
|
|
|
|
- tools.error(res.msg)
|
|
|
|
|
- this.isAJAX = false;
|
|
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '是否取消订单?',
|
|
|
|
|
+ confirmText: '确定',
|
|
|
|
|
+ confirmColor: '#FB3D03',
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ if (res.confirm === true) {
|
|
|
|
|
+ if (this.isAJAX) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isAJAX = true;
|
|
|
|
|
+ expressOrderCancel({
|
|
|
|
|
+ order_id: this.infoData.id
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.code == 1) {
|
|
|
|
|
+ tools.success(res.msg)
|
|
|
|
|
+ setTimeout(() =>{
|
|
|
|
|
+ this.expressOrderInfo(this.infoData.id)
|
|
|
|
|
+ }, 1500)
|
|
|
|
|
+ this.isAJAX = false;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ tools.error(res.msg)
|
|
|
|
|
+ this.isAJAX = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
openGoods() {
|
|
openGoods() {
|
|
|
this.goodsShow = !this.goodsShow
|
|
this.goodsShow = !this.goodsShow
|
|
@@ -382,6 +406,10 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
|
+ .item-code{
|
|
|
|
|
+ min-width: 30%;
|
|
|
|
|
+ padding: 8rpx
|
|
|
|
|
+ }
|
|
|
.bg-img {
|
|
.bg-img {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
left: 0;
|
|
left: 0;
|