From 22c14398c105c114df77c111a4f90d62b647a9d7 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期三, 07 六月 2023 10:27:13 +0800
Subject: [PATCH] no message

---
 uniapp/pages/goods/goodsDetail.vue      |    2 
 uniapp/pages.json                       |   10 +++
 uniapp/pages/mine/inviteFriends.vue     |   12 +++-
 uniapp/pages/rankinglist/fengqiang.vue  |    1 
 uniapp/utils/utils.js                   |    1 
 uniapp/pages/index/categories.vue       |    2 
 uniapp/pages/rankinglist/common_act.vue |  104 ++++++++++++++++++++++++++++++++++
 7 files changed, 127 insertions(+), 5 deletions(-)

diff --git a/uniapp/pages.json b/uniapp/pages.json
index ab75ab6..b96baae 100644
--- a/uniapp/pages.json
+++ b/uniapp/pages.json
@@ -471,6 +471,16 @@
 				}
 			}
 		},
+		//鍏叡宓屽椤甸潰
+		{
+			"path": "pages/rankinglist/common_act",
+			"style": {
+				"navigationStyle": "custom",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
 		// 瓒呯骇鍒嗙被
 		/* {
 			"path": "pages/classify/classify",
diff --git a/uniapp/pages/goods/goodsDetail.vue b/uniapp/pages/goods/goodsDetail.vue
index 65d6aa6..8e89504 100644
--- a/uniapp/pages/goods/goodsDetail.vue
+++ b/uniapp/pages/goods/goodsDetail.vue
@@ -295,7 +295,7 @@
         showtar: false,
         platform: '',
         inviteCodeShow: false,
-        inviterShow: false
+        inviterShow: false,
       };
     },
     onPageScroll(e) {
diff --git a/uniapp/pages/index/categories.vue b/uniapp/pages/index/categories.vue
index 9bb0427..d92916d 100644
--- a/uniapp/pages/index/categories.vue
+++ b/uniapp/pages/index/categories.vue
@@ -275,7 +275,7 @@
 								}
 							
 								.back-box {
-									width: 100rpx;
+									width: 120rpx;
 									height: 30rpx;
 									background: linear-gradient(-90deg, #7619EC, #A429F3);
 									border-radius: 5rpx;
diff --git a/uniapp/pages/mine/inviteFriends.vue b/uniapp/pages/mine/inviteFriends.vue
index 20a89da..ef7345b 100644
--- a/uniapp/pages/mine/inviteFriends.vue
+++ b/uniapp/pages/mine/inviteFriends.vue
@@ -25,8 +25,8 @@
 			</view>
 
 			<view class="invite-step colCen">
-				<view class="step-title">
-					閭�璇锋楠�
+				<view class="step-title" @click='checkVideo()' >
+					閭�璇锋楠�<span style=" color: blue;">(鏌ョ湅瑙嗛鏁欑▼)</span>
 				</view>
 				<view class="step-list">
 					1. 灏嗛個璇风爜鎴栨捣鎶ュ垎浜粰濂藉弸</br>
@@ -35,7 +35,7 @@
 					鏈潵浠�/濂规湁璐墿璁㈠崟,鎮ㄥ彲鑾峰緱浣i噾濂栧姳,骞惰嚜鍔ㄨ鍏ユ偍鐨勫笎鎴�
 				</view>
 			</view>
-
+			
 			<view class="bottom-options-container rowCenAro">
 				<view class="option-items-container colCen" @tap='copyLink()'>
 					<image class="icon-box" src="../../static/images/mine/link.png" mode="aspectFill"></image>
@@ -156,6 +156,12 @@
 			this.makeCode()
 		},
 		methods: {
+			checkVideo()
+			{
+				uni.navigateTo({
+					url: 'https://dfgapp.ushopvip.com/html/fxguid.html'
+				})
+			},
 			showModel() {
 				this.$nextTick(()=>{
 					this.getbanner()
diff --git a/uniapp/pages/rankinglist/common_act.vue b/uniapp/pages/rankinglist/common_act.vue
new file mode 100644
index 0000000..f167e2f
--- /dev/null
+++ b/uniapp/pages/rankinglist/common_act.vue
@@ -0,0 +1,104 @@
+<template>
+	<view>
+		<web-view :webview-styles="webviewStyles" :src="webviewUrl" @message='received'></web-view>
+	</view>
+</template>
+
+<script>
+	var wv
+	export default {
+		data() {
+			return {
+				webviewUrl: '',
+				webviewStyles: {
+					progress: {
+						color: '#EE1B14'
+					}
+				},
+			}
+		},
+		onLoad(options) {
+			if(!this.hasLogin){
+				uni.reLaunch({
+					url:"/pages/login/wxlogin"
+				})
+			}
+			else{
+				const value = uni.getStorageSync('userInfo');
+				console.log(value);
+				if(options.t_url)
+				{
+					this.webviewUrl = encodeURI(decodeURIComponent(options.t_url)+"?token="+value.token+"&userid="+value.id);
+				}
+			}
+			
+		},
+		onReady() {
+		  this.clearMuiBack();
+		},
+		methods: {
+			received(e) {
+				console.log(e);
+				var res=e.detail.data[0];
+				if(res.action=='target_tb')
+				{
+					this.getTbsrc(res.data.goodsId);
+				}
+			},
+			//璺宠浆娣樺疂
+			getTbsrc(goodsid) {
+			  var that = this;
+			  this.$u.api.getPrivilegeLink({
+			    goodsId: goodsid,
+			    type: 0
+			  }).then(e => {
+				  console.log(e);
+			    if (e.code != 0) return that.$alert(e.msg)
+			    var res = e.data.info;
+			    var tburl = res.shortUrl
+			    // #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 => {
+			        //  console.log(result);
+			      });
+			    } else {
+			      uni.navigateTo({
+			        url: '../webView/webView?url=' + tburl
+			      })
+			    }
+			    // #endif
+			  }).catch(function(err) {})
+			},
+			// 鍏抽棴mui杩斿洖
+			  clearMuiBack() {
+			    // #ifdef APP-PLUS
+			    var currentWebview = this.$scope.$getAppWebview().children()[0];
+			    //鐩戝惉娉ㄥ叆鐨刯s
+			    currentWebview.addEventListener("loaded", function() {
+			      currentWebview.evalJS("mui.init({keyEventBind: {backbutton: false }});");
+			    });
+			    // #endif
+			  },
+			  
+		},
+		onNavigationBarButtonTap(e) {
+			// #ifdef APP-PLUS
+			const currentWebview = this.$scope.$getAppWebview(); //姝ゅ璞$浉褰撲簬html5plus閲岀殑plus.webview.currentWebview()銆傚湪uni-app閲寁ue椤甸潰鐩存帴浣跨敤plus.webview.currentWebview()鏃犳晥锛岄潪v3缂栬瘧妯″紡浣跨敤this.$mp.page.$getAppWebview()
+			var wv = currentWebview.children()[0]
+			wv.reload();
+			// #endif
+			console.log(JSON.stringify(e))
+		},
+	}
+</script>
+
+<style>
+
+</style>
diff --git a/uniapp/pages/rankinglist/fengqiang.vue b/uniapp/pages/rankinglist/fengqiang.vue
index d1b7d54..2d53a0e 100644
--- a/uniapp/pages/rankinglist/fengqiang.vue
+++ b/uniapp/pages/rankinglist/fengqiang.vue
@@ -25,6 +25,7 @@
 			}
 			else{
 				const value = uni.getStorageSync('userInfo');
+				console.log(value);
 				this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token);
 			}
 			
diff --git a/uniapp/utils/utils.js b/uniapp/utils/utils.js
index aa0a970..ac70b56 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) {

--
Gitblit v1.9.3