Browse Source

刷脸激活

chubiao 11 months ago
parent
commit
4d25886c80
3 changed files with 26 additions and 3 deletions
  1. 1 0
      config.js
  2. 24 2
      pages/info/add-files.vue
  3. 1 1
      pages/lr/info.vue

+ 1 - 0
config.js

@@ -4,6 +4,7 @@ const build = {
 	// "service" : "http://10.16.4.5/dev-api",
 	// "baseUrl": "http://121.36.73.159:810",
 	"baseUrl": "",
+	"redirectUrl": "https://www.ccsckj.com/",
 	"head": "/uploadPath/2024/01/16/profile.png",
 	"appid": "wxeb15ff6b40432045",
 	"score": 70,

+ 24 - 2
pages/info/add-files.vue

@@ -845,8 +845,18 @@
 											
 											// todo 跳转刷脸激活
 											setTimeout(function() {
-												uni.switchTab({
-													url: '/pages/index/index'
+												let param = {
+													id: this.baseFormData.id,
+													url: config.redirectUrl
+												}
+												GetUrl(param).then(res => {
+													if (res.code == 200) {
+														window.open(res.data.url, '_self');
+													} else {
+														toast('该功能暂未开放')
+														// uni.navigateBack()
+													}
+												
 												})
 											}, 2000)
 										}
@@ -864,7 +874,19 @@
 											// todo 跳转刷脸激活
 											setTimeout(function() {
 												
+												let param = {
+													id: this.baseFormData.id,
+													url: config.redirectUrl
+												}
+												GetUrl(param).then(res => {
+													if (res.code == 200) {
+														window.open(res.data.url, '_self');
+													} else {
+														toast('该功能暂未开放')
+														// uni.navigateBack()
+													}
 												
+												})
 												
 											}, 2000)
 										}

+ 1 - 1
pages/lr/info.vue

@@ -75,7 +75,7 @@
 					</uni-forms-item>
 
 					<view>
-						<button cursor-spacing="22px" class="buttonClass" @click="ht()">刷脸激活</button>
+						<!-- <button cursor-spacing="22px" class="buttonClass" @click="ht()">刷脸激活</button> -->
 						<button cursor-spacing="22px" class="buttonClass" @click="preSave()">修改</button>
 					</view>
 				</uni-forms>