|
@@ -48,16 +48,16 @@
|
|
<view>下单时间 </view>
|
|
<view>下单时间 </view>
|
|
<view>{{ order_datail?.insert_time }}</view>
|
|
<view>{{ order_datail?.insert_time }}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="price_content_item" v-if="order_datail?.track_number">
|
|
|
|
- <view>物流编号 </view>
|
|
|
|
- <view style="display: flex; align-items: center">
|
|
|
|
- <view>{{order_datail?.track_number}}</view>
|
|
|
|
- <view class="copy_btn" @click="_copyorderCode(order_datail?.track_number)"> 复制</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="price_content_item" v-if="order_datail?.track_number">
|
|
|
|
+ <view>物流编号 </view>
|
|
|
|
+ <view style="display: flex; align-items: center">
|
|
|
|
+ <view>{{ order_datail?.track_number }}</view>
|
|
|
|
+ <view class="copy_btn" @click="_copyorderCode(order_datail?.track_number)"> 复制</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="price_content_item">
|
|
<view class="price_content_item">
|
|
<view>备 注 </view>
|
|
<view>备 注 </view>
|
|
- <view style="text-align: right;">{{ order_datail?.remark }}</view>
|
|
|
|
|
|
+ <view class="remark" style="text-align: right">{{ order_datail?.remark }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -76,16 +76,16 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
_getOrderDetail(orderId) {
|
|
_getOrderDetail(orderId) {
|
|
this.$http
|
|
this.$http
|
|
- .request("api/score_orders/get_detail", { id: orderId })
|
|
|
|
|
|
+ .request('api/score_orders/get_detail', { id: orderId })
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- if (response.code == "success") {
|
|
|
|
|
|
+ if (response.code == 'success') {
|
|
this.order_datail = response.data; // 打印订单详情
|
|
this.order_datail = response.data; // 打印订单详情
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: "获取订单详情失败",
|
|
|
|
- icon: "error",
|
|
|
|
|
|
+ title: '获取订单详情失败',
|
|
|
|
+ icon: 'error',
|
|
duration: 2000,
|
|
duration: 2000,
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -93,7 +93,7 @@ export default {
|
|
_navToProduct(id) {
|
|
_navToProduct(id) {
|
|
if (id) {
|
|
if (id) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: "/pages/score/product?id=" + id,
|
|
|
|
|
|
+ url: '/pages/score/product?id=' + id,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -106,24 +106,24 @@ export default {
|
|
//复制成功的回调函数
|
|
//复制成功的回调函数
|
|
uni.showToast({
|
|
uni.showToast({
|
|
//提示
|
|
//提示
|
|
- title: "复制成功",
|
|
|
|
|
|
+ title: '复制成功',
|
|
});
|
|
});
|
|
},
|
|
},
|
|
});
|
|
});
|
|
// #endif
|
|
// #endif
|
|
|
|
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
- let textarea = document.createElement("textarea");
|
|
|
|
|
|
+ let textarea = document.createElement('textarea');
|
|
textarea.value = info;
|
|
textarea.value = info;
|
|
- textarea.readOnly = "readOnly";
|
|
|
|
|
|
+ textarea.readOnly = 'readOnly';
|
|
document.body.appendChild(textarea);
|
|
document.body.appendChild(textarea);
|
|
textarea.select(); // 选中文本内容
|
|
textarea.select(); // 选中文本内容
|
|
textarea.setSelectionRange(0, info.length);
|
|
textarea.setSelectionRange(0, info.length);
|
|
uni.showToast({
|
|
uni.showToast({
|
|
//提示
|
|
//提示
|
|
- title: "复制成功",
|
|
|
|
|
|
+ title: '复制成功',
|
|
});
|
|
});
|
|
- result = document.execCommand("copy");
|
|
|
|
|
|
+ result = document.execCommand('copy');
|
|
textarea.remove();
|
|
textarea.remove();
|
|
// #endif
|
|
// #endif
|
|
},
|
|
},
|
|
@@ -296,6 +296,9 @@ export default {
|
|
.price {
|
|
.price {
|
|
color: red;
|
|
color: red;
|
|
}
|
|
}
|
|
|
|
+ .remark {
|
|
|
|
+ word-break: break-all;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.copy_btn {
|
|
.copy_btn {
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|