From 1659a6dc9d4e39c3270e1bf564fb419ddc2fd2cf Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期五, 26 五月 2023 11:56:04 +0800
Subject: [PATCH] no message

---
 uniapp/pages/goods/shareGoods.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/uniapp/pages/goods/shareGoods.vue b/uniapp/pages/goods/shareGoods.vue
index 387fd1b..96d593f 100644
--- a/uniapp/pages/goods/shareGoods.vue
+++ b/uniapp/pages/goods/shareGoods.vue
@@ -310,13 +310,24 @@
 				var that = this;
 				if (goods.faction == 't') {
 					this.$u.api.getPrivilegeLink({type:0,goodsId:goods.goodsId}).then(e => {
+						console.log(e)
 						if(e.code == 1)return that.$alert(e.msg);
 						var res = e.data.info;
 						//that.Jumpurl = res.kuaiZhanUrl
 						that.tpwd = res.tpwd
 						var long = res.longTpwd
+						that.url = res.shortUrl;
+						if(that.url){
+							that.makeQRcode()
+						}else{
+							uni.showToast({
+								title:'鍒朵綔娴锋姤澶辫触锛�',
+								icon:'none'
+							})
+						}
 						//鑾峰彇杞摼鎺�
-						that.$u.api.getPrivilegeShareLink({type:0,goodsId:goods.goodsId}).then(ed=>{
+						/* that.$u.api.getPrivilegeShareLink({type:0,goodsId:goods.goodsId}).then(ed=>{
+							console.log(ed)
 							if(ed.code == 1)return that.$alert(ed.msg);
 							var re = ed.data.list;
 							that.url = re.link;
@@ -329,7 +340,7 @@
 								})
 							}
 						}).catch(function (er) {
-						})
+						}) */
 						
 					}).catch(function (err) {
 					})
@@ -501,9 +512,7 @@
                 }
                 // APP涓嬭浇鍦板潃+閭�璇风爜
                 if (e === 3) {
-					console.log(this.user)
-                    data = '銆愪笅杞介摼鎺ャ��' + this.appInfo.appAndroidDownUrl +
-                        '\n銆愰個璇风爜銆�' + this.user.invitation_code
+                    data = this.appInfo.invite_url +"?code="+this.user.invitation_code
                 }
                 uni.setClipboardData({
                     data,

--
Gitblit v1.9.3