liuxiaona 2 years ago
parent
commit
bfa32c5e42

File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/css/app.82fc8710.css


File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/index.html


File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/js/app.3e40b99c.js


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/js/app.6898b230.js


+ 4 - 1
qwh5/src/utils/getWxConfig.ts

@@ -5,6 +5,7 @@ function getAuthInfo(cb?: any, redirect_url?: any) {//jsapi通用授权数据
5 5
     corpid: getQueryString('corpid'),
6 6
     url: location.href.split('#')[0],
7 7
   }).then((res: any) => {
8
+    alert(`${res+'getAuthInfo'}`)
8 9
     if (redirect_url) {//构造网页授权链接回调
9 10
       redirect_url(res.rst)
10 11
     }
@@ -26,7 +27,8 @@ function initQYConfig(authInfo, cb) { // 企业
26 27
     signature: authInfo.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法 企业签名
27 28
     jsApiList: ['getCurExternalContact','sendChatMessage'] // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
28 29
   })
29
-  wx.ready(function () {
30
+  wx.ready(function (res) {
31
+    console.log( res,'QYready')
30 32
     initYYConfig(authInfo, cb)
31 33
   })
32 34
   wx.error(function (res) {
@@ -45,6 +47,7 @@ function initYYConfig(authInfo, cb) { // 应用
45 47
     signature: authInfo.app_signature, // 必填,签名,见附录-JS-SDK使用权限签名算法  应用签名
46 48
     jsApiList: ['getCurExternalContact','sendChatMessage'], // 必填,传入需要使用的接口名称
47 49
     success: function (res) {
50
+      console.log( res,'YYready')
48 51
       cb ? cb(authInfo) : ''
49 52
     },
50 53
     fail: function (res) {

+ 3 - 1
qwh5/src/views/radarH5.vue

@@ -129,11 +129,13 @@ export default {
129 129
 
130 130
     onBeforeMount(() => {//组件挂载之前
131 131
       if(getQueryString('againJump')){
132
+        alert(`${'have_againJump'+window.location.href}`)
132 133
         configInfo.corpid = getQueryString('corpid')
133 134
         getRadarGrouplist()
134 135
         getWxConfig(()=>{send_config_flag.value = true});
135 136
       }else{//获取code
136
-        overshow.value = true;
137
+        alert(`${'no_againJump'+window.location.href}`)
138
+        // overshow.value = true;
137 139
         getWxConfig('',(authInfo)=>{
138 140
           url_pin(authInfo)
139 141
         });