Compare commits
10 Commits
391fda5abc
...
1f6d2b4ab3
Author | SHA1 | Date | |
---|---|---|---|
1f6d2b4ab3 | |||
52277be0c9 | |||
f770b05dcd | |||
909082f7ca | |||
|
dadb891236 | ||
42e3c7d6a7 | |||
541d8f9f6e | |||
5f56b7a27c | |||
|
c270f238bd | ||
5add00c60a |
5
App.vue
5
App.vue
@ -4,6 +4,11 @@ export default {
|
|||||||
im: {}
|
im: {}
|
||||||
},
|
},
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
|
// 禁止旋转
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.screen.lockOrientation('portrait-primary');
|
||||||
|
// #endif
|
||||||
|
|
||||||
getApp().globalData.im = this.imService
|
getApp().globalData.im = this.imService
|
||||||
console.log('App Launch');
|
console.log('App Launch');
|
||||||
// 缓存token
|
// 缓存token
|
||||||
|
@ -43,16 +43,20 @@
|
|||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view class="title">手机号</view>
|
<view class="title">手机号</view>
|
||||||
<view class="value">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
|
<view class="value" @longtap="longtap(info.extend_order_common.reciver_info.mob_phone)">{{ info.extend_order_common.reciver_info.mob_phone }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view class="title">收货地址</view>
|
<view class="title">收货地址</view>
|
||||||
<view class="value u-line-1">{{ info.extend_order_common.reciver_info.address }}</view>
|
<view class="value u-line-2" @longtap="longtap(info.extend_order_common.reciver_info.address)">{{ info.extend_order_common.reciver_info.address }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view class="title">派送方式</view>
|
<view class="title">派送方式</view>
|
||||||
<view class="value u-line-1">{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}</view>
|
<view class="value u-line-1">{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="remark">
|
||||||
|
<view class="title">订单备注</view>
|
||||||
|
<view class="value" @longtap="longtap(info.extend_order_common.order_message)">{{ info.extend_order_common.order_message }}</view>
|
||||||
|
</view>
|
||||||
<view @click="showInvoice">
|
<view @click="showInvoice">
|
||||||
<view class="title">开具发票</view>
|
<view class="title">开具发票</view>
|
||||||
<view class="invoice">
|
<view class="invoice">
|
||||||
@ -80,11 +84,11 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 待处理 -->
|
<!-- 待处理 -->
|
||||||
<view class="delivery" v-if="type == 1">
|
<view class="delivery" v-if="type == 1 && cur != -1">
|
||||||
<view class="title">派送方式</view>
|
<view class="title">派送方式</view>
|
||||||
<view class="methods">
|
<view class="methods">
|
||||||
<view :class="{ active: cur == 0 }" @click="pushstyleA">快递</view>
|
<view :style="{'color': this.cur == -1 ? '#333' : '' }" :class="{ active: cur == 0 }" @click="pushstyleA">快递</view>
|
||||||
<view :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view>
|
<view :style="{'color': this.cur == -1 ? '#333' : '' }" :class="{ active: cur == 1 }" @click="pushstyleB">骑手</view>
|
||||||
<view :class="{ active: cur == 2 }" @click="pushstyleC">自提</view>
|
<view :class="{ active: cur == 2 }" @click="pushstyleC">自提</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="pushstyleBshow && (pushid || selctcar)" >
|
<view v-if="pushstyleBshow && (pushid || selctcar)" >
|
||||||
@ -276,6 +280,7 @@ export default {
|
|||||||
this.type = option.type;
|
this.type = option.type;
|
||||||
// console.log(this.type)
|
// console.log(this.type)
|
||||||
this.orderid = option.id;
|
this.orderid = option.id;
|
||||||
|
|
||||||
this.resetinfo();
|
this.resetinfo();
|
||||||
if (this.type == 1) {
|
if (this.type == 1) {
|
||||||
// 获取快递公司
|
// 获取快递公司
|
||||||
@ -330,26 +335,39 @@ export default {
|
|||||||
this.refundid = e
|
this.refundid = e
|
||||||
console.log(e);
|
console.log(e);
|
||||||
},
|
},
|
||||||
|
pushstyle(index) {
|
||||||
|
// console.log(this.users_type);
|
||||||
|
if (this.users_type == 1 && index == 1) {
|
||||||
|
this.showcompany = true;
|
||||||
|
} else if (this.users_type == 2 && index == 2) {
|
||||||
|
this.show = true;
|
||||||
|
} else if (this.users_type == 3 && index == 3) {
|
||||||
|
this.cur = 2;
|
||||||
|
}
|
||||||
|
},
|
||||||
// 人工配送
|
// 人工配送
|
||||||
pushstyleA() {
|
pushstyleA() {
|
||||||
|
console.log(this.cur)
|
||||||
if(this.cur != 0){
|
if(this.cur != 0 && this.cur != -1){
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
this.cur = 0;
|
||||||
this.showcompany = true;
|
this.showcompany = true;
|
||||||
},
|
},
|
||||||
// 选择骑手
|
// 选择骑手
|
||||||
pushstyleB() {
|
pushstyleB() {
|
||||||
if(this.cur != 1){
|
if(this.cur != 1 && this.cur != -1){
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
this.cur = 1;
|
||||||
this.show = true;
|
this.show = true;
|
||||||
},
|
},
|
||||||
// 选择骑手
|
// 自提
|
||||||
pushstyleC() {
|
pushstyleC() {
|
||||||
if(this.cur != 2){
|
if(this.cur != 2 && this.cur != -1){
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
this.cur = 2;
|
||||||
this.pushstyleBshow = true
|
this.pushstyleBshow = true
|
||||||
},
|
},
|
||||||
// 获取物流公司列表
|
// 获取物流公司列表
|
||||||
@ -379,7 +397,8 @@ export default {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.showExpress = false;
|
this.showExpress = false;
|
||||||
|
this.pushstyleBshow = true
|
||||||
},
|
},
|
||||||
// 取消退款
|
// 取消退款
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -547,6 +566,7 @@ export default {
|
|||||||
// 选择骑手
|
// 选择骑手
|
||||||
getselect(e) {
|
getselect(e) {
|
||||||
this.selctcar = this.list[e[0].value];
|
this.selctcar = this.list[e[0].value];
|
||||||
|
this.pushstyleBshow = true
|
||||||
},
|
},
|
||||||
// 获取订单信息
|
// 获取订单信息
|
||||||
resetinfo() {
|
resetinfo() {
|
||||||
@ -567,6 +587,7 @@ export default {
|
|||||||
this.is_invoice = this.invoiceList.invoice_id || false;
|
this.is_invoice = this.invoiceList.invoice_id || false;
|
||||||
this.invoice_type = this.invoiceList.invoice_type;
|
this.invoice_type = this.invoiceList.invoice_type;
|
||||||
this.ordered_type = res.data.store_deliver_type; // 发货方式
|
this.ordered_type = res.data.store_deliver_type; // 发货方式
|
||||||
|
// console.log(this.users_type,this.cur);
|
||||||
// 骑手
|
// 骑手
|
||||||
this.takeawayer_info = res.data.takeawayer || {}; // 骑手信息
|
this.takeawayer_info = res.data.takeawayer || {}; // 骑手信息
|
||||||
// 自提
|
// 自提
|
||||||
@ -599,6 +620,15 @@ export default {
|
|||||||
urls: this.mineBy_img,
|
urls: this.mineBy_img,
|
||||||
current: 1
|
current: 1
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 复制到粘贴板
|
||||||
|
longtap(text) {
|
||||||
|
console.log(text);
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: text,
|
||||||
|
success: (res) => {
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -745,10 +775,16 @@ export default {
|
|||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
.remark {
|
||||||
|
padding: 10rpx 0;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 88rpx;
|
||||||
|
}
|
||||||
> view {
|
> view {
|
||||||
height: 88rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 88rpx;
|
||||||
|
padding: 10rpx 0;
|
||||||
color: rgba(51, 51, 51, 1);
|
color: rgba(51, 51, 51, 1);
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: 2rpx solid #ececec;
|
border-bottom: 2rpx solid #ececec;
|
||||||
@ -809,11 +845,11 @@ export default {
|
|||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 40rpx;
|
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
height: 98rpx;
|
height: 98rpx;
|
||||||
|
margin: 40rpx 0;
|
||||||
background: rgba(255, 120, 15, 1);
|
background: rgba(255, 120, 15, 1);
|
||||||
border-radius: 49rpx;
|
border-radius: 49rpx;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
|
@ -149,7 +149,6 @@ export default {
|
|||||||
this.getLiveSpec();
|
this.getLiveSpec();
|
||||||
|
|
||||||
this.device = uni.getSystemInfoSync(); // 获取信息
|
this.device = uni.getSystemInfoSync(); // 获取信息
|
||||||
console.log(this.device);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
publish() {
|
publish() {
|
||||||
@ -158,7 +157,7 @@ export default {
|
|||||||
for (let index in arr) {
|
for (let index in arr) {
|
||||||
newarr.push(arr[index].file_id);
|
newarr.push(arr[index].file_id);
|
||||||
}
|
}
|
||||||
console.log(this.imgarrA);
|
console.log(this.imgarrA,newarr);
|
||||||
this.$u.api
|
this.$u.api
|
||||||
.publishphoto({
|
.publishphoto({
|
||||||
article_title: this.form.name,
|
article_title: this.form.name,
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color:#fff;
|
color:#fff;
|
||||||
width: 350rpx;
|
width: 350rpx;
|
||||||
position: fixed;
|
position: absolute;
|
||||||
top: 70rpx;
|
top: 70rpx;
|
||||||
left: 31rpx;
|
left: 31rpx;
|
||||||
height: 31rpx;
|
height: 31rpx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user