Browse Source

微信环境下参数接收1

wangtao 4 ngày trước cách đây
mục cha
commit
85cac2121c
2 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 0 1
      src/pages/common/appMessage/index.vue
  2. 1 6
      src/plugins/common.plugins.js

+ 0 - 1
src/pages/common/appMessage/index.vue

@@ -165,7 +165,6 @@ function init(obj) {
     if(obj.type == 3){
       if(obj?.oaType){
         state.loading = false;
-        alert(`1微信环境2${obj.oaType}`)
         proxy.$common.toPage(2,obj.oaType)
       }
     }else{

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

@@ -324,7 +324,6 @@ export default {
     let form = "https://manager.usky.cn/mobile/#/"
     let path = "https://oa.usky.cn/mobile/#/login?token"
     if(name){
-      alert(`${name}姓名${type}${to}`)
       var params = { 
           user:name,
           time:new Date().getTime(),
@@ -332,18 +331,14 @@ export default {
       }
       var jm = encrypt(JSON.stringify(params))
       //#ifdef H5 
-      alert("h5")
         if(type == "1"){
           window.open(`${item.path}=${encodeURIComponent(jm)}?form=${form}`,"_blank")
         }
         if(type == "2"){
-          alert(`${path}=${encodeURIComponent(jm)}?form=${form}&toPage=${to}`)
-          // window.open(`${path}=${encodeURIComponent(jm)}?form=${form}&toPage=${to}`,"_blank")
-          window.open(`${path}`,"_blank")
+          window.open(`${path}=${encodeURIComponent(jm)}?form=${form}&toPage=${to}`)
         }
       //#endif
       //#ifdef APP-PLUS || MP-WEIXIN 
-      alert(`微信环境`)
         if(type == "1"){
           uni.navigateTo({
             url: `/pages/common/webview/index?url=${item.path}=${encodeURIComponent(jm)}?form=${form}`,