| xqd
@@ -86,6 +86,14 @@
|
|
|
<view class="box-grow-1">{{ orderDetail.delivery_config.explain }}</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
+ <view class="dir-left-nowrap">
|
|
|
+ <view class="box-grow-0"> </view>
|
|
|
+ <view class="box-grow-1 text">
|
|
|
+ <view @click="copyOrderInfo(orderDetail)"
|
|
|
+ class="box-grow-0 detail-btn copy-order">复制
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 电子卡密 -->
|
| xqd
@@ -617,6 +625,45 @@ export default {
|
|
|
copyText(orderNo) {
|
|
|
order.copyText(orderNo)
|
|
|
},
|
|
|
+ copyOrderInfo(orderDetail){
|
|
|
+ let copyText = `联系人:${orderDetail.name} ${orderDetail.mobile}`;
|
|
|
+ if(orderDetail.goods_type === 'ecard'||
|
|
|
+ (orderDetail.is_send && orderDetail.sign != 'scan_code_pay'
|
|
|
+ && orderDetail.is_show_send_type == 1)){
|
|
|
+ if(orderDetail.send_type == 0){
|
|
|
+ copyText += `\n发货方式:快递发货`;
|
|
|
+ }
|
|
|
+ if(orderDetail.send_type == 0){
|
|
|
+ copyText += `\n发货方式:上门自提`;
|
|
|
+ }
|
|
|
+ if(orderDetail.send_type == 0){
|
|
|
+ copyText += `\n发货方式:同城配送`;
|
|
|
+ }
|
|
|
+ if(orderDetail.goods_type == 'ecard'){
|
|
|
+ copyText += `\n发货方式:自动发货`;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 快递
|
|
|
+ if(orderDetail.send_type != 1 && orderDetail.address){
|
|
|
+ copyText += `\n收货地址:${orderDetail.address}`;
|
|
|
+ }
|
|
|
+ // 门店
|
|
|
+ if(orderDetail.send_type == 1 && orderDetail.goods_type === 'goods'){
|
|
|
+ copyText += `\n门店名称:${orderDetail.store.name}`;
|
|
|
+ copyText += `\n联系方式:${orderDetail.store.mobile}`;
|
|
|
+ copyText += `\n门店地址:${orderDetail.store.address}`;
|
|
|
+ }
|
|
|
+ // 同城配送
|
|
|
+ if(orderDetail.delivery_config){
|
|
|
+ copyText += `\n发货地址:${orderDetail.delivery_config.address.address}`;
|
|
|
+ copyText += `\n联系方式:${orderDetail.delivery_config.contact_way}`;
|
|
|
+ copyText += `\n配送说明:${orderDetail.delivery_config.explain}`;
|
|
|
+ }
|
|
|
+
|
|
|
+ order.copyText(copyText)
|
|
|
+
|
|
|
+ },
|
|
|
copyTextEcard(item) {
|
|
|
let str = ``;
|
|
|
for (let i = 0; i < item.length; i++) {
|
| xqd
@@ -1108,4 +1155,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.copy-order{
|
|
|
+ position: absolute;
|
|
|
+ right: 24#{rpx};
|
|
|
+ margin-top: -15#{rpx};
|
|
|
+ padding: 5#{rpx 20rpx};
|
|
|
+ font-size: 24#{rpx};
|
|
|
+}
|
|
|
</style>
|