From 70f5b82bc3fceafac2faf470280876b0eca6fac8 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期四, 13 七月 2023 09:40:23 +0800
Subject: [PATCH] no message

---
 uniapp/utils/utils.js |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/uniapp/utils/utils.js b/uniapp/utils/utils.js
index 2557f02..3909262 100644
--- a/uniapp/utils/utils.js
+++ b/uniapp/utils/utils.js
@@ -45,6 +45,7 @@
 
 
 common.goUrl = function(info, _this) {
+	console.log(info)
 	var userinfo = common.getCacheSync('userInfo')
 	var that = _this;
 	if (userinfo) {
@@ -56,6 +57,7 @@
 			})
 		} else if (info.url_type == 1) {
 			let url = info.parameter_json.url == undefined ? '' : info.parameter_json.url;
+			console.log(url)
 			if(url == '') return false;
 			uni.navigateTo({
 				url: url
@@ -211,6 +213,29 @@
 				})
 			}
 		}
+		else if(info.url_type == 15)
+		{//璺宠浆娣樺疂椤甸潰
+			let tburl = info.parameter_json.url == undefined ? '' : info.parameter_json.url;
+			console.log(tburl)
+			if(tburl == '') return false;
+			// #ifdef APP-PLUS
+			if (plus.runtime.isApplicationExist({
+			    pname: 'com.taobao.taobao',
+			    action: 'taobao://'
+			  })) {
+			  const plug = uni.requireNativePlugin('xiguazhu-baichuan')
+			  plug.detailPage({
+			    url: tburl,
+			    "openType": 0
+			  }, result => {
+			  });
+			} else {
+			  uni.navigateTo({
+				  url:'@/webView/webView?url=' + tburl
+			  })
+			}
+			// #endif
+		}
 		
 	} else {
 		uni.redirectTo({
@@ -246,14 +271,14 @@
 	// #ifdef APP-PLUS
 	var userinfo = common.getCacheSync('userInfo');
 	var appInfo = common.getCacheSync('appInfo');
-	var txtdata
-	if (plus.os.name == 'Android') {
+	var txtdata=appInfo.invite_url + "?code="+userinfo.invitation_code
+	/* if (plus.os.name == 'Android') {
 		txtdata = appInfo.appName + '鐨勪笅杞介摼鎺ヤ负锛�' + appInfo.appAndroidDownUrl +
 			'\n閭�璇风爜锛�' + userinfo.invitation_code
 	} else {
 		txtdata = appInfo.appName + '鐨勪笅杞介摼鎺ヤ负锛�' + appInfo.appIosDownUrl + '\n閭�璇风爜锛�' +
 			userinfo.invitation_code
-	}
+	} */
 	uni.setClipboardData({
 		data: txtdata,
 		success: res => {

--
Gitblit v1.9.3