chubiao 11 ヶ月 前
コミット
5242cbe4f4
4 ファイル変更62 行追加13 行削除
  1. 6 0
      pages.json
  2. 36 0
      pages/lr/face.vue
  3. 17 10
      pages/lr/info.vue
  4. 3 3
      pages/test/index.vue

+ 6 - 0
pages.json

@@ -123,6 +123,12 @@
 				"navigationBarTitleText": "老人详情"
 			}
 		},
+		{
+			"path": "pages/lr/face",
+			"style": {
+				"navigationBarTitleText": "刷脸激活"
+			}
+		},
 		{
 			"path": "pages/lr/shxxList",
 			"style": {

+ 36 - 0
pages/lr/face.vue

@@ -0,0 +1,36 @@
+<template>
+	<view>
+		<web-view :src="src"></web-view>
+	</view>
+</template>
+
+<script>
+	import {
+		GetUrl
+	} from '@/api/kh.js'
+	export default {
+		data() {
+			return {
+				src: ''
+			}
+		},
+		onLoad(e) {
+			GetUrl(JSON.parse(e.url)).then(res => {
+				console.log("1111111", res);
+				if (res.code == 200) {
+					this.src = res.data.url
+				} else {
+					toast('该功能暂未开放')
+
+					uni.navigateBack()
+				}
+
+
+
+			})
+		},
+	}
+</script>
+
+<style>
+</style>

+ 17 - 10
pages/lr/info.vue

@@ -86,7 +86,6 @@
 
 		</uni-card>
 
-
 		<view>
 			<!-- 普通弹窗 -->
 			<uni-popup ref="popup" background-color="#fff">
@@ -316,24 +315,32 @@
 		},
 		methods: {
 			ht() {
-				GetUrl({
+				let param = {
 					id: this.baseFormData.id,
 					url: 'https://www.ccsckj.com/'
-				}).then(res => {
+				}
+				// uni.navigateTo({
+				// 	url:'/pages/lr/face?url='+JSON.stringify(param)
+				// })
+				
+				
+				GetUrl(param).then(res => {
 					console.log("1111111", res);
 					if (res.code == 200) {
-						console.log("2222222222", res);
+						// this.src = res.data.url
+						
+						
 						uni.request({
-							url: res.data.url
-						}).then(rr => {
-							console.log("333333", rr);
+							url:res.data.url
 						})
 					} else {
 						toast('该功能暂未开放')
+				
+						uni.navigateBack()
 					}
-
-
-
+				
+				
+				
 				})
 			},
 			showInfo(id) {

ファイルの差分が大きいため隠しています
+ 3 - 3
pages/test/index.vue