ソースを参照

首页弹窗跳转

Xiao_123 2 ヶ月 前
コミット
5adc012605
1 ファイル変更2 行追加6 行削除
  1. 2 6
      components/Advertisement/index.vue

+ 2 - 6
components/Advertisement/index.vue

@@ -50,13 +50,9 @@ const openDialog = () => {
 
 const skipLink = ({ link, title }) => {
 	closeAdd()
-	// if (!uni.getStorageSync('token') && currentPage !== 'pages/login/index') {
-	// 	uni.switchTab({
-  //     url: '/pages/index/my'
-  //   })
-	// }
 	if (link) {
-		uni.navigateTo({ url: `/pages/addWebView/index?url=${link}&title=${title}` })
+		const url = link.indexOf('http') !== -1 ? `/pages/addWebView/index?url=${link}&title=${title}` : link
+		uni.navigateTo({ url })
 	}
 }