chubiao 1 year ago
parent
commit
23d1c7a2d0
1 changed files with 9 additions and 20 deletions
  1. 9 20
      pages/lr/info.vue

+ 9 - 20
pages/lr/info.vue

@@ -319,27 +319,16 @@
 					id: this.baseFormData.id,
 					url: 'https://www.ccsckj.com/'
 				}
-			
-				// todo 方案二
-				uni.navigateTo({
-					url:'/pages/lr/face?url='+JSON.stringify(param)
-				})
-				
-				// todo 方案一
-				// GetUrl(param).then(res => {
-				// 	console.log("1111111", res);
-				// 	if (res.code == 200) {
-				// 		// this.src = res.data.url
-				// 		uni.request({
-				// 			url:res.data.url
-				// 		})
-				// 	} else {
-				// 		toast('该功能暂未开放')
-				
-				// 		uni.navigateBack()
-				// 	}
+				GetUrl(param).then(res => {
+					console.log("1111111", res);
+					if (res.code == 200) {
+						window.open(res.data.url, '_self');
+					} else {
+						toast('该功能暂未开放')
+						// uni.navigateBack()
+					}
 				
-				// })
+				})
 			},
 			showInfo(id) {
 				infoKhjbxx(id).then(res => {