修改结果反馈页面跳转,web-view 跳回 app 页面,使用 uni.webView.navigateTo,并需引入 uni sdk
3 files modified
21 ■■■■ changed files
manifest.json 6 ●●●●● patch | view | raw | blame | history
xcxMapJQ/js/vueMain.js 12 ●●●● patch | view | raw | blame | history
xcxMapJQ/xcxmap.html 3 ●●●●● patch | view | raw | blame | history
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打包配置 */
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;
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" />