update api
This commit is contained in:
parent
df1bad0a31
commit
31474f482f
@ -129,6 +129,10 @@ const install = (Vue, vm) => {
|
||||
refund({refund_id,seller_state,seller_message}){
|
||||
return vm.$u.post("/order/editRefund",{refund_id,seller_state,seller_message})
|
||||
},
|
||||
// 试穿
|
||||
agreetest({goods_try_id,type,takeawayer_id}){
|
||||
return vm.$u.post("/order/goodsTryAgree",{goods_try_id,type,takeawayer_id})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -55,9 +55,9 @@
|
||||
<view class="pushtimeline" v-if="type == 2">
|
||||
<view class="timelinetitle">物流信息</view>
|
||||
<view class="timelineid">订单单号:{{ info.order_sn }}</view>
|
||||
<view class="timelinebox">
|
||||
<view class="timelinecontent">{{}}进度</view>
|
||||
<view class="timelinetime">{{}}时间</view>
|
||||
<view class="timelinebox" v-for="list in info.express_list">
|
||||
<view class="timelinecontent">{{list.content}}</view>
|
||||
<view class="timelinetime">{{list.kd_time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="refunds-option" v-if="type == 4">
|
||||
|
@ -154,6 +154,8 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
this.current=0
|
||||
// 初始化数据
|
||||
this.resetarr()
|
||||
// 所有订单
|
||||
this.getallorder(0);
|
||||
this.publishstate = false;
|
||||
|
@ -6,7 +6,10 @@
|
||||
<view class="name u-line-1">{{ info.goods_name }}</view>
|
||||
<view class="info">
|
||||
<view class="num">共{{ info.goods_try_num }}件商品</view>
|
||||
<view class="price">实付<span>¥{{info.goods_price}}</span></view>
|
||||
<view class="price">
|
||||
实付
|
||||
<span>¥{{ info.goods_price }}</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -96,17 +99,17 @@ export default {
|
||||
phone: '',
|
||||
company: '',
|
||||
express: '',
|
||||
type:"",
|
||||
type: '',
|
||||
orderid: 0,
|
||||
info: {},
|
||||
list: [],
|
||||
selctcar: null //选择骑手ID
|
||||
}
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
this.type = option.type;
|
||||
this.orderid = option.id;
|
||||
this.resetinfo()
|
||||
this.resetinfo();
|
||||
},
|
||||
methods: {
|
||||
// 人工配送
|
||||
@ -115,14 +118,44 @@ export default {
|
||||
},
|
||||
carer() {
|
||||
this.cur = 1;
|
||||
this.show=true
|
||||
this.show = true;
|
||||
},
|
||||
// 绑定配送方式
|
||||
confirmpushstyle() {
|
||||
if (this.cur == 0) {
|
||||
|
||||
this.$u.api
|
||||
.agreetest({
|
||||
goods_try_id: this.orderid,
|
||||
type: 1,
|
||||
takeawayer_id: 0
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$u.api
|
||||
.agreetest({
|
||||
goods_try_id: this.orderid,
|
||||
type: 1,
|
||||
takeawayer_id: this.selctcar.takeawayer_id
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// 选择骑手
|
||||
@ -131,31 +164,39 @@ export default {
|
||||
},
|
||||
// 获取订单信息
|
||||
resetinfo() {
|
||||
this.$u.api.testorderdetail({
|
||||
this.$u.api
|
||||
.testorderdetail({
|
||||
goods_try_id: this.orderid
|
||||
}).then(res => {
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
this.info = res.data
|
||||
this.info = res.data.info;
|
||||
}
|
||||
});
|
||||
// 获取骑手列表
|
||||
this.$u.api.takeawayerlist({}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
let arr = res.data
|
||||
let arr = res.data;
|
||||
for (let index in arr) {
|
||||
arr[index].content = arr[index].company_name+"——"+arr[index].contacts+"——"+arr[index].contact_number
|
||||
arr[index].content = arr[index].company_name + '——' + arr[index].contacts + '——' + arr[index].contact_number;
|
||||
}
|
||||
this.list = arr
|
||||
this.list = arr;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@ -163,9 +204,9 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
background-color: #ececec;
|
||||
.goods-info {
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -193,7 +234,7 @@ export default {
|
||||
.price {
|
||||
margin-left: 10rpx;
|
||||
> span {
|
||||
color: #FF780F;
|
||||
color: #ff780f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -201,7 +242,7 @@ export default {
|
||||
}
|
||||
.refunds-user {
|
||||
padding: 25rpx 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 20rpx;
|
||||
> view {
|
||||
display: flex;
|
||||
@ -238,13 +279,13 @@ export default {
|
||||
font-weight: 500;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
height: 88rpx;
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 2rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.info-container {
|
||||
padding: 0 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 20rpx;
|
||||
> view {
|
||||
height: 88rpx;
|
||||
@ -252,7 +293,7 @@ export default {
|
||||
align-items: center;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
&:not(:last-child) {
|
||||
border-bottom: 2rpx solid #ECECEC;
|
||||
border-bottom: 2rpx solid #ececec;
|
||||
}
|
||||
.title {
|
||||
width: 150rpx;
|
||||
@ -267,7 +308,7 @@ export default {
|
||||
}
|
||||
.delivery {
|
||||
flex: 1;
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
padding: 30rpx;
|
||||
position: relative;
|
||||
.title {
|
||||
@ -295,9 +336,9 @@ export default {
|
||||
}
|
||||
}
|
||||
.active {
|
||||
border: 1rpx solid #FF780F;
|
||||
color: #FF780F;
|
||||
background: #FFF1E6;
|
||||
border: 1rpx solid #ff780f;
|
||||
color: #ff780f;
|
||||
background: #fff1e6;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
@ -318,7 +359,7 @@ export default {
|
||||
.refunds-option {
|
||||
flex: 1;
|
||||
padding: 88rpx 30rpx;
|
||||
background-color: #FFFFFF;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
> view {
|
||||
width: 335rpx;
|
||||
@ -333,9 +374,9 @@ export default {
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.active {
|
||||
border: 1rpx solid #FF780F;
|
||||
color: #FF780F;
|
||||
background: #FFF1E6;
|
||||
border: 1rpx solid #ff780f;
|
||||
color: #ff780f;
|
||||
background: #fff1e6;
|
||||
}
|
||||
}
|
||||
.delivery-popup {
|
||||
@ -346,14 +387,14 @@ export default {
|
||||
color: rgba(51, 51, 51, 1);
|
||||
text-align: center;
|
||||
line-height: 88rpx;
|
||||
border-bottom: 2rpx solid #ECECEC;
|
||||
border-bottom: 2rpx solid #ececec;
|
||||
}
|
||||
.input-info {
|
||||
> input {
|
||||
font-size: 26rpx;
|
||||
line-height: 88rpx;
|
||||
padding: 30rpx;
|
||||
border-bottom: 2rpx solid #ECECEC;
|
||||
border-bottom: 2rpx solid #ececec;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
@ -380,18 +421,18 @@ export default {
|
||||
.popup-btn {
|
||||
width: 420rpx;
|
||||
display: flex;
|
||||
border-top: 2rpx solid #ECECEC;
|
||||
border-top: 2rpx solid #ececec;
|
||||
> view {
|
||||
flex: 1;
|
||||
height: 98rpx;
|
||||
text-align: center;
|
||||
line-height: 98rpx;
|
||||
&:first-child {
|
||||
border-right: 2rpx solid #ECECEC;
|
||||
border-right: 2rpx solid #ececec;
|
||||
}
|
||||
}
|
||||
.determine {
|
||||
color: #FF780F;
|
||||
color: #ff780f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user