Просмотр исходного кода

根据客户端环境对跳转U8参数进行调整

wangtao 2 недель назад
Родитель
Сommit
a8019c4e44
1 измененных файлов с 8 добавлено и 3 удалено
  1. 8 3
      src/pages/index.vue

+ 8 - 3
src/pages/index.vue

@@ -285,9 +285,14 @@ function navItemClick(item) {
               form:"SAAS_mob"
           }
           var jm = encrypt(JSON.stringify(params))
-          uni.navigateTo({
-            url: `/pages/common/webview/index?url=${item.path}=${encodeURIComponent(jm)}&urlF=https://manager.usky.cn/mobile/#/`,
-          });
+          //#ifdef H5 
+            window.open(`${item.path}=${encodeURIComponent(jm)}?urlF=https://manager.usky.cn/mobile/#/`)
+          //#endif
+          //#ifdef APP-PLUS || MP-WEIXIN
+            uni.navigateTo({
+              url: `/pages/common/webview/index?url=${item.path}=${encodeURIComponent(jm)}?urlF=https://manager.usky.cn/mobile/#/`,
+            });
+          //#endif
         }else{
           uni.navigateTo({
             url: "/pages/common/webview/index?url=" + item.path,