From a07041f527300893ecc9a782041b56934165f90d Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 18 Jun 2021 10:24:16 +0800
Subject: [PATCH] 修改结果反馈页面跳转,web-view 跳回 app 页面,使用 uni.webView.navigateTo,并需引入 uni sdk
---
manifest.json | 6 ++++--
xcxMapJQ/js/vueMain.js | 12 +++---------
xcxMapJQ/xcxmap.html | 3 +++
3 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/manifest.json b/manifest.json
index a6cb4a6..206249f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "jfpt",
- "appid" : "__UNI__1A57486",
+ "appid" : "__UNI__88EDF2B",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
@@ -20,7 +20,9 @@
"delay" : 0
},
/* 模块配置 */
- "modules" : {},
+ "modules" : {
+ "VideoPlayer" : {}
+ },
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
diff --git a/xcxMapJQ/js/vueMain.js b/xcxMapJQ/js/vueMain.js
index 03c54ad..8accecb 100644
--- a/xcxMapJQ/js/vueMain.js
+++ b/xcxMapJQ/js/vueMain.js
@@ -241,7 +241,9 @@
}
},
resultFeedbackClick() { //结果反馈跳转小程序
- this.gotoxcx('policeDetails');
+ uni.webView.navigateTo({
+ url: `../poput/workbench/policeDetails/policeDetails?id=${this.seedata.id}`
+ });
},
openRealVideoBox(serialNumber, channelNumber, deviceNumber, manufacturer) { //获取视频地址
var that = this;
@@ -287,14 +289,6 @@
},
upData() {
console.log('上传信息成功')
- },
- gotoxcx(routs) {
- wx.miniProgram.navigateTo({
- url: `../poput/workbench/policeDetails/${routs}?id=${this.seedata.id}`, //指定跳转至小程序页面的门路
- success: function() {
- console.log('success'); //页面跳转胜利的回调函数
- }
- });
},
getLocationData() {
var that = this;
diff --git a/xcxMapJQ/xcxmap.html b/xcxMapJQ/xcxmap.html
index 102043d..f5043a1 100644
--- a/xcxMapJQ/xcxmap.html
+++ b/xcxMapJQ/xcxmap.html
@@ -41,6 +41,9 @@
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<!-- <script src="./js/wx.js"></script> -->
+ <!-- uni 的 SDK -->
+ <script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
+
<!-- omyself支持 -->
<link rel="stylesheet" href="./css/body.css" />
--
Gitblit v1.9.3