This commit is contained in:
Gdpao
2020-09-02 14:05:08 +08:00
parent 3ecaac3190
commit 7d066ca67d
4 changed files with 173 additions and 12 deletions

View File

@@ -49,6 +49,10 @@
<view class="title">收货地址</view>
<view class="value u-line-1">{{ info.extend_order_common.reciver_info.address }}</view>
</view>
<view>
<view class="title">派送方式</view>
<view class="value u-line-1">{{ cur == 0 ? "快递" : cur == 1 ? "骑手" : "自提" }}</view>
</view>
</view>
</view>
<!-- 待处理之后的 -->
@@ -74,6 +78,7 @@
<view class="methods">
<view :class="{ active: cur == 0 }" @click="pushstyleA">快递</view>
<view :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view>
<view :class="{ active: cur == 2 }" @click="pushstyleC">自提</view>
</view>
<view v-if="cur != 2 && (pushid || selctcar)">
<view class="title">{{cur == 0 ? '快递单号':'骑手信息'}}</view>
@@ -122,7 +127,7 @@
title="请选择公司"
confirm-text="下一步"
></u-picker>
<u-popup v-model="showExpress" mode="center" border-radius="10" class="delivery-popup">
<u-popup v-model="showExpress" :mask-close-able="false" mode="center" border-radius="10" class="delivery-popup">
<view class="title">填写快递单号</view>
<view class="input-info"><input type="text" style="color: #333; line-height: 1;" placeholder="请输入快递单号" v-model="pushid" /></view>
<view class="btn" @click="saveDelivery">确认</view>
@@ -151,7 +156,7 @@ export default {
data() {
return {
status: 1, // 订单状态
cur: 2,
cur: null,
showDelivery: false, // 填写骑手信息
showExpress: false, // 填写快递单号
showRefunds: false, // 平台退货处理
@@ -252,6 +257,10 @@ export default {
this.cur = 1;
this.show = true;
},
// 选择骑手
pushstyleC() {
this.cur = 2;
},
// 获取物流公司列表
getcompanyinfo() {
let that = this;
@@ -357,8 +366,8 @@ export default {
},
// 绑定配送方式
confirmpushstyle() {
console.log(this.cur);
if (this.cur != 0 && this.cur != 1) {
// console.log(this.cur);
if (this.cur < 0) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
@@ -373,7 +382,7 @@ export default {
})
return;
}
console.log(this.pushid);
// console.log(this.pushid);
this.$u.api.bindpushid({
order_id: this.orderid,
shipping_code: this.pushid,
@@ -394,7 +403,7 @@ export default {
});
}
});
} else {
} else if (this.cur == 1) {
if (!this.selctcar) {
this.$refs.uToast.show({
title: '请选择派送方式!',
@@ -422,7 +431,11 @@ export default {
});
}
});
}
} else {
uni.navigateTo({
url: "mention?id=" + this.orderid
})
}
},
// 选择骑手
getselect(e) {
@@ -598,10 +611,11 @@ export default {
.methods {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
> view {
font-size: 30rpx;
color: rgba(0, 0, 51, 1);
width: 335rpx;
width: 30%;
height: 80rpx;
border: 1rpx solid rgba(236, 236, 236, 1);
background: rgba(236, 236, 236, 1);
@@ -609,9 +623,6 @@ export default {
text-align: center;
line-height: 80rpx;
margin-bottom: 20rpx;
&:nth-child(2n-1) {
margin-right: 20rpx;
}
}
.active {
border: 1rpx solid #ff780f;
@@ -647,6 +658,7 @@ export default {
color: rgba(51, 51, 51, 1);
}
.timelineid {
margin: 18rpx 0;
min-height: 40rpx;
font-size: 24rpx;
font-weight: 400;