From dadb8912365daa2897056a6a2af44a6c28c7c557 Mon Sep 17 00:00:00 2001
From: Gdpao <1341331954@qq.com>
Date: Fri, 11 Sep 2020 15:25:57 +0800
Subject: [PATCH] gdpao
---
pages/index/details.vue | 49 +++++++++++++++++++++++++++++++++--------
pages/release/index.vue | 3 +--
2 files changed, 41 insertions(+), 11 deletions(-)
diff --git a/pages/index/details.vue b/pages/index/details.vue
index 0286710..332d729 100644
--- a/pages/index/details.vue
+++ b/pages/index/details.vue
@@ -43,16 +43,20 @@
手机号
- {{ info.extend_order_common.reciver_info.mob_phone }}
+ {{ info.extend_order_common.reciver_info.mob_phone }}
收货地址
- {{ info.extend_order_common.reciver_info.address }}
+ {{ info.extend_order_common.reciver_info.address }}
派送方式
{{ users_type == 0 ? "-" : users_type == 1 ? "快递" : users_type == 2 ? "骑手" : "自提" }}
+
开具发票
@@ -83,9 +87,9 @@
派送方式
- 快递
- 骑手
- 自提
+ 快递
+ 骑手
+ 自提
{{cur == 0 ? '快递单号':'骑手信息'}}
@@ -275,6 +279,7 @@ export default {
this.type = option.type;
// console.log(this.type)
this.orderid = option.id;
+
this.resetinfo();
if (this.type == 1) {
// 获取快递公司
@@ -329,6 +334,16 @@ export default {
this.refundid = 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() {
this.cur = 0;
@@ -339,7 +354,7 @@ export default {
this.cur = 1;
this.show = true;
},
- // 选择骑手
+ // 自提
pushstyleC() {
this.cur = 2;
},
@@ -544,7 +559,7 @@ export default {
this.$u.api.orderdetail({
order_id: this.orderid
}).then(res => {
- console.log(res);
+ // console.log(res);
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
@@ -558,6 +573,7 @@ export default {
this.is_invoice = this.invoiceList.invoice_id || false;
this.invoice_type = this.invoiceList.invoice_type;
this.ordered_type = res.data.store_deliver_type; // 发货方式
+ // console.log(this.users_type,this.cur);
// 骑手
this.takeawayer_info = res.data.takeawayer || {}; // 骑手信息
// 自提
@@ -590,6 +606,15 @@ export default {
urls: this.mineBy_img,
current: 1
})
+ },
+ // 复制到粘贴板
+ longtap(text) {
+ console.log(text);
+ uni.setClipboardData({
+ data: text,
+ success: (res) => {
+ }
+ });
}
}
};
@@ -736,10 +761,16 @@ export default {
padding: 0 30rpx;
background-color: #ffffff;
margin-bottom: 20rpx;
+ .remark {
+ padding: 10rpx 0;
+ height: 100%;
+ min-height: 88rpx;
+ }
> view {
- height: 88rpx;
display: flex;
align-items: center;
+ height: 88rpx;
+ padding: 10rpx 0;
color: rgba(51, 51, 51, 1);
&:not(:last-child) {
border-bottom: 2rpx solid #ececec;
@@ -800,11 +831,11 @@ export default {
}
.btn {
position: absolute;
- bottom: 40rpx;
left: 50%;
transform: translate(-50%, 0);
width: 690rpx;
height: 98rpx;
+ margin: 40rpx 0;
background: rgba(255, 120, 15, 1);
border-radius: 49rpx;
font-size: 36rpx;
diff --git a/pages/release/index.vue b/pages/release/index.vue
index 12906de..51d8bdd 100644
--- a/pages/release/index.vue
+++ b/pages/release/index.vue
@@ -149,7 +149,6 @@ export default {
this.getLiveSpec();
this.device = uni.getSystemInfoSync(); // 获取信息
- console.log(this.device);
},
methods: {
publish() {
@@ -158,7 +157,7 @@ export default {
for (let index in arr) {
newarr.push(arr[index].file_id);
}
- console.log(this.imgarrA);
+ console.log(this.imgarrA,newarr);
this.$u.api
.publishphoto({
article_title: this.form.name,
--
2.45.2