xiaomei 1 жил өмнө
parent
commit
f3eca01904

+ 11 - 1
src/pages/my/index.vue

@@ -151,6 +151,10 @@
                     </view>
                 </view>
                 <view class="fun_con mar_t50 flex_r flex_ac">
+                    <navigator class="fun_list flex_c flex_ac" @click="getImgPage" hover-class="none">
+                        <image class="fun_img" src="https://teaclub.oss-cn-chengdu.aliyuncs.com/CloudShop/icon/f_img_code.png"></image>
+                        <view class="fun_text">分享海报</view>
+                    </navigator>
                     <navigator class="fun_list flex_c flex_ac" @click="copy" hover-class="none">
                         <image class="fun_img" src="/static/my/14.png"></image>
                         <view class="fun_text">APP下载</view>
@@ -314,7 +318,13 @@ export default {
         copyText(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pages/tea-list/index.vue

@@ -70,7 +70,13 @@ export default {
       }
       uniCopy({
         content: e,
-        success: (res) => {},
+        success: (res) => {
+          uni.showToast({
+            title: "已复制到剪贴板",
+            icon: "none",
+            duration: 2000,
+          });
+        },
         error: (e) => {},
       });
     },

+ 7 - 1
src/pagesB/directCharge/orderDetail.vue

@@ -132,7 +132,13 @@ export default {
         copyText(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesB/orderingfood/activationcode.vue

@@ -88,7 +88,13 @@ export default {
         copyText(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesB/orderingfood/friend.vue

@@ -152,7 +152,13 @@ export default {
         copyAccount(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesB/orderingfood/node.vue

@@ -140,7 +140,13 @@ export default {
         copyAccount(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesB/specialregion/index.vue

@@ -115,7 +115,13 @@ export default {
         copyText(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesC/settledMerchant/merchantDetail.vue

@@ -106,7 +106,13 @@ export default {
         copyText(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesC/settledMerchant/myShop.vue

@@ -98,7 +98,13 @@ export default {
         copyText(e) {
             uniCopy({
                 content: e,
-                success: (res) => {},
+                success: (res) => {
+                    uni.showToast({
+                        title: "已复制到剪贴板",
+                        icon: "none",
+                        duration: 2000,
+                    });
+                },
                 error: (e) => {},
             });
         },

+ 7 - 1
src/pagesC/shoppingMallType/order/list.vue

@@ -185,7 +185,13 @@ export default {
     copyText(e) {
       uniCopy({
         content: e,
-        success: (res) => {},
+        success: (res) => {
+          uni.showToast({
+            title: "已复制到剪贴板",
+            icon: "none",
+            duration: 2000,
+          });
+        },
         error: (e) => {},
       });
     },

+ 10 - 1
src/pagesC/shoppingMallType/p_details.vue

@@ -600,9 +600,12 @@ export default {
     },
   },
   onShareAppMessage() {
-    // let userinfo = uni.getStorageSync("userinfo");
+    let userinfo = uni.getStorageSync("userinfo");
     if (this.type == 1) {
       var path = `pagesC/shoppingMallType/p_details?goods_sign=${this.detail.goods_sign}&type=${this.type}`;
+      if (userinfo.invite) {
+        path = `pagesC/shoppingMallType/p_details?goods_sign=${this.detail.goods_sign}&type=${this.type}&invite=${userinfo.invite}`;
+      }
       var title = this.detail.goods_name;
       console.log(this.detail.goods_name);
 
@@ -613,6 +616,9 @@ export default {
       };
     } else if (this.type == 2) {
       var path = `pagesC/shoppingMallType/p_details?item_id=${this.detail.input_num_iid}&type=${this.type}&goods_price=${this.goods_price}&yj_price=${this.yj_price}&annual_vol=${this.annual_vol}&coupon_discount=${this.coupon_discount}&promotion_start_time=${this.promotion_start_time}&promotion_end_time=${this.promotion_end_time}`;
+      if (userinfo.invite) {
+        path = `pagesC/shoppingMallType/p_details?item_id=${this.detail.input_num_iid}&type=${this.type}&goods_price=${this.goods_price}&yj_price=${this.yj_price}&annual_vol=${this.annual_vol}&coupon_discount=${this.coupon_discount}&promotion_start_time=${this.promotion_start_time}&promotion_end_time=${this.promotion_end_time}&invite=${userinfo.invite}`;
+      }
       var title = this.detail.title;
 
       return {
@@ -622,6 +628,9 @@ export default {
       };
     } else if (this.type == 3) {
       var path = `pagesC/shoppingMallType/p_details?item_id=${this.detail.itemId}&type=${this.type}&goods_price=${this.goods_price}&yj_price=${this.yj_price}&annual_vol=${this.annual_vol}&coupon_discount=${this.coupon_discount}&promotion_start_time=${this.promotion_start_time}&promotion_end_time=${this.promotion_end_time}&goods_price_origin=${this.goods_price_origin}&shopName=${this.shopName}`;
+      if (userinfo.invite) {
+        path = `pagesC/shoppingMallType/p_details?item_id=${this.detail.itemId}&type=${this.type}&goods_price=${this.goods_price}&yj_price=${this.yj_price}&annual_vol=${this.annual_vol}&coupon_discount=${this.coupon_discount}&promotion_start_time=${this.promotion_start_time}&promotion_end_time=${this.promotion_end_time}&goods_price_origin=${this.goods_price_origin}&shopName=${this.shopName}&invite=${userinfo.invite}`;
+      }
       var title = this.detail.skuName;
 
       return {

+ 2 - 0
src/utils/share.js

@@ -21,6 +21,8 @@ export default {
 		}
 	},
     onLoad(da){
+		console.log(da);
+		
         if(da.scene) da = sceneToObject(da.scene);
         if(da.invite) uni.setStorageSync("inviteCode", da.invite);
     }