Browse Source

微信环境下参数接收

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

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

@@ -121,9 +121,7 @@ function goContentDetails(e) {
   }else if(e.infoType == 1){
     proxy.$tab.navigateTo(`/pages/common/appMessage/nociteDetails?moduleId=${e.moduleId}`).then(() => {});
   }else if(e.infoType == 3){//OA消息
-    console.log(e)
     if(e.infoContent){
-      console.log(e.infoContent.includes("新的审批任务"))
       if(e.infoContent){
         if(e.infoContent.includes("新的审批任务")){
           proxy.$common.toPage(2,"todo")
@@ -167,6 +165,7 @@ function init(obj) {
     if(obj.type == 3){
       if(obj?.oaType){
         state.loading = false;
+        alert("微信环境")
         proxy.$common.toPage(2,obj.oaType)
       }
     }else{

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

@@ -324,6 +324,7 @@ export default {
     let form = "https://manager.usky.cn/mobile/#/"
     let path = "https://oa.usky.cn/mobile/#/login?token"
     if(name){
+      alert(name)
       var params = { 
           user:name,
           time:new Date().getTime(),
@@ -345,6 +346,7 @@ export default {
           });
         }
         if(type == "2"){
+          alert(2)
           uni.navigateTo({
             url: `/pages/common/webview/index?url=${path}=${encodeURIComponent(jm)}?form=${form}?toPage=${to}`,
           });