Merge branch 'new' of https://gitea.lihaink.cn/mkm/shop-applet into new
This commit is contained in:
commit
8167f71bfd
|
@ -14,7 +14,7 @@ import request from "@/utils/request.js";
|
|||
* @returns {*}
|
||||
*/
|
||||
export function delivery(data) {
|
||||
return request.post(`admin/${data.mer_id}/delivery/${data.delivery_id}`, data);
|
||||
return request.post(`admin/${data.mer_id}/delivery/${data.order_id}`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -214,9 +214,8 @@
|
|||
<view class="mask" @touchmove.prevent v-show="refundMark === true"></view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="form-wrap" v-if="popUpShow"
|
||||
style="position: fixed;top: 0;left: 0;width:100vw;height:100vh;background:rgba(0,0,0,.8);display: flex;align-items: center;justify-content: center;">
|
||||
style="position: fixed;z-index: 11; top: 0;left: 0;width:100vw;height:100vh;background:rgba(0,0,0,.4);display: flex;align-items: center;justify-content: center;">
|
||||
<view class="form">
|
||||
<view class="form-item">
|
||||
<view class="form-item-label">送货人姓名</view>
|
||||
|
@ -534,6 +533,9 @@
|
|||
})
|
||||
|
||||
if (!uni.$u.test.mobile(this.deliveryForm.delivery_id)) {
|
||||
|
||||
console.log(3123123);
|
||||
|
||||
return uni.showToast({
|
||||
title: "手机号输入有误!",
|
||||
icon: "none"
|
||||
|
@ -544,8 +546,9 @@
|
|||
delivery(this.deliveryForm).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.$util.Tips({
|
||||
title: '设置收货人成功!'
|
||||
title: res.message
|
||||
})
|
||||
that.init();
|
||||
setTimeout(() => {
|
||||
that.popUpShow = false;
|
||||
}, 1000)
|
||||
|
@ -554,18 +557,19 @@
|
|||
that.$util.Tips({
|
||||
title: err
|
||||
})
|
||||
setTimeout(() => {
|
||||
that.popUpShow = false;
|
||||
}, 1500)
|
||||
})
|
||||
},
|
||||
|
||||
//收件码
|
||||
toPostagequ(item) {
|
||||
this.deliveryForm.mer_id = item.mer_id;
|
||||
this.popUpShow = true;
|
||||
this.deliveryForm.delivery_name = '';
|
||||
this.deliveryForm.delivery_id = '';
|
||||
this.deliveryForm.remark = '';
|
||||
|
||||
this.deliveryForm.mer_id = item.mer_id;
|
||||
this.deliveryForm.order_id = item.order_id;
|
||||
this.popUpShow = true;
|
||||
|
||||
// this.shipment.delivery_name = this.shipment.to_name
|
||||
// this.shipment.delivery_id = this.shipment.to_phone
|
||||
|
||||
|
@ -682,7 +686,7 @@
|
|||
<style lang="scss">
|
||||
.form {
|
||||
position: relative;
|
||||
z-index: 9999999;
|
||||
z-index: 11;
|
||||
padding: 40rpx 60rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
|
@ -745,7 +749,7 @@
|
|||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue