|
|
|
@ -321,7 +321,7 @@ |
|
|
|
|
@click="handleTargetComment(order.order_id)"> |
|
|
|
|
评价 |
|
|
|
|
</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%);" |
|
|
|
|
> |
|
|
|
|
复制订单详情 |
|
|
|
@ -408,7 +408,8 @@ |
|
|
|
|
canReset: false, |
|
|
|
|
cdDia: false, |
|
|
|
|
menushow: false, |
|
|
|
|
Store:'' |
|
|
|
|
Store:'', |
|
|
|
|
userInfo: {} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
@ -422,6 +423,7 @@ |
|
|
|
|
// 获取当前订单信息 |
|
|
|
|
this.getOrderDetail() |
|
|
|
|
this.Store=uni.getStorageSync('Store') |
|
|
|
|
this.userInfo = uni.getStorageSync("userInfo") |
|
|
|
|
// 注册全局事件订阅: 是否刷新当前订单数据 |
|
|
|
|
uni.$on('syncRefresh', (val, isCur) => { |
|
|
|
|
if (!isCur) { |
|
|
|
@ -472,16 +474,16 @@ |
|
|
|
|
8.收件人电话: |
|
|
|
|
9.收件人地址: |
|
|
|
|
*/ |
|
|
|
|
let goods_no = ""; |
|
|
|
|
if(obj.goods && obj.goods.length > 0){ |
|
|
|
|
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}元` |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
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) |
|
|
|
|
// let goods_no = ""; |
|
|
|
|
// if(obj.goods && obj.goods.length > 0){ |
|
|
|
|
// 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}元` |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// 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) |
|
|
|
|
uni.setClipboardData({ |
|
|
|
|
data: str, |
|
|
|
|
data: obj, |
|
|
|
|
success() { |
|
|
|
|
uni.getClipboardData({ |
|
|
|
|
success() { |
|
|
|
|