Explorar o código

微信环境下参数接收1

wangtao hai 5 días
pai
achega
5e6f045309
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/plugins/common.plugins.js

+ 2 - 1
src/plugins/common.plugins.js

@@ -332,6 +332,7 @@ export default {
       }
       var jm = encrypt(JSON.stringify(params))
       //#ifdef H5 
+      alert("h5")
         if(type == "1"){
           window.open(`${item.path}=${encodeURIComponent(jm)}?form=${form}`,"_blank")
         }
@@ -340,7 +341,7 @@ export default {
         }
       //#endif
       //#ifdef APP-PLUS || MP-WEIXIN 
-      alert(type,"type")
+      alert(`微信环境`)
         if(type == "1"){
           uni.navigateTo({
             url: `/pages/common/webview/index?url=${item.path}=${encodeURIComponent(jm)}?form=${form}`,