|
|
@ -321,7 +321,7 @@ |
|
|
|
@click="handleTargetComment(order.order_id)"> |
|
|
|
@click="handleTargetComment(order.order_id)"> |
|
|
|
评价 |
|
|
|
评价 |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<view class="buyAgain" @click="onCopyOrderInfo(order)" |
|
|
|
<view class="buyAgain" v-if="userInfo.user_type == 40" @click="onCopyOrderInfo(order.copy_text)" |
|
|
|
style="width: 200rpx;color:#fff;background: linear-gradient( 180deg, #FD5D06 0%, #F3211A 100%);" |
|
|
|
style="width: 200rpx;color:#fff;background: linear-gradient( 180deg, #FD5D06 0%, #F3211A 100%);" |
|
|
|
> |
|
|
|
> |
|
|
|
复制订单详情 |
|
|
|
复制订单详情 |
|
|
@ -408,7 +408,8 @@ |
|
|
|
canReset: false, |
|
|
|
canReset: false, |
|
|
|
cdDia: false, |
|
|
|
cdDia: false, |
|
|
|
menushow: false, |
|
|
|
menushow: false, |
|
|
|
Store:'' |
|
|
|
Store:'', |
|
|
|
|
|
|
|
userInfo: {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
@ -421,7 +422,8 @@ |
|
|
|
this.orderId = orderId |
|
|
|
this.orderId = orderId |
|
|
|
// 获取当前订单信息 |
|
|
|
// 获取当前订单信息 |
|
|
|
this.getOrderDetail() |
|
|
|
this.getOrderDetail() |
|
|
|
this.Store=uni.getStorageSync('Store') |
|
|
|
this.Store=uni.getStorageSync('Store') |
|
|
|
|
|
|
|
this.userInfo = uni.getStorageSync("userInfo") |
|
|
|
// 注册全局事件订阅: 是否刷新当前订单数据 |
|
|
|
// 注册全局事件订阅: 是否刷新当前订单数据 |
|
|
|
uni.$on('syncRefresh', (val, isCur) => { |
|
|
|
uni.$on('syncRefresh', (val, isCur) => { |
|
|
|
if (!isCur) { |
|
|
|
if (!isCur) { |
|
|
@ -472,16 +474,16 @@ |
|
|
|
8.收件人电话: |
|
|
|
8.收件人电话: |
|
|
|
9.收件人地址: |
|
|
|
9.收件人地址: |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
let goods_no = ""; |
|
|
|
// let goods_no = ""; |
|
|
|
if(obj.goods && obj.goods.length > 0){ |
|
|
|
// if(obj.goods && obj.goods.length > 0){ |
|
|
|
obj.goods.map(a=>{ |
|
|
|
// obj.goods.map(a=>{ |
|
|
|
goods_no+=`商品型号: ${(a.goods_sku_id !=0?a.goods_sku_id:'无')};商品编码: ${a.goods_no?a.goods_no:'无编码'};商品单价: ¥${a.goods_price}元;商品数量: ${a.total_num};商品总价: ¥${a.total_price}元` |
|
|
|
// goods_no+=`商品型号: ${(a.goods_sku_id !=0?a.goods_sku_id:'无')};商品编码: ${a.goods_no?a.goods_no:'无编码'};商品单价: ¥${a.goods_price}元;商品数量: ${a.total_num};商品总价: ¥${a.total_price}元` |
|
|
|
}) |
|
|
|
// }) |
|
|
|
} |
|
|
|
// } |
|
|
|
const str =`订单编号:${obj.order_no};${goods_no};收件人名字:${obj.address.name};收件人电话:${obj.address.phone};收件人地址:${obj.address.region.province+obj.address.region.city+obj.address.region.region+obj.address.detail};` |
|
|
|
// const str =`订单编号:${obj.order_no};${goods_no};收件人名字:${obj.address.name};收件人电话:${obj.address.phone};收件人地址:${obj.address.region.province+obj.address.region.city+obj.address.region.region+obj.address.detail};` |
|
|
|
console.log(str) |
|
|
|
// console.log(str) |
|
|
|
uni.setClipboardData({ |
|
|
|
uni.setClipboardData({ |
|
|
|
data: str, |
|
|
|
data: obj, |
|
|
|
success() { |
|
|
|
success() { |
|
|
|
uni.getClipboardData({ |
|
|
|
uni.getClipboardData({ |
|
|
|
success() { |
|
|
|
success() { |
|
|
|