diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue
index 74b441a..39b0e62 100644
--- a/pages/goods/detail.vue
+++ b/pages/goods/detail.vue
@@ -758,6 +758,7 @@
}
info.content = info.content
.replace(/style=""/g, '')
+ .replace(/
评价
-->
-
复制订单详情
@@ -408,7 +408,8 @@
canReset: false,
cdDia: false,
menushow: false,
- Store:''
+ Store:'',
+ userInfo: {}
}
},
/**
@@ -421,7 +422,8 @@
this.orderId = orderId
// 获取当前订单信息
this.getOrderDetail()
- this.Store=uni.getStorageSync('Store')
+ 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() {
diff --git a/pages/order/index.vue b/pages/order/index.vue
index b60d048..bc75a97 100644
--- a/pages/order/index.vue
+++ b/pages/order/index.vue
@@ -24,7 +24,7 @@
-
+
{{item.storeInfo.store_name}}
-