liuxiaona 2 years ago
parent
commit
a1f5e8edb8

+ 2 - 10
.idea/workspace.xml

@@ -2,16 +2,8 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="ce8c7a71-f4a8-4b87-99a5-ff575adf9383" name="Changes" comment="">
5
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/css/agreement.3ed8f786.css" beforeDir="false" />
6
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/css/app.f038df46.css" beforeDir="false" />
7
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/css/chunk-vendors.31ed7038.css" beforeDir="false" />
8
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/css/userPortrait.8099c956.css" beforeDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/index.html" beforeDir="false" />
10
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/agreement.51200e38.js" beforeDir="false" />
11
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/app.f3b5a842.js" beforeDir="false" />
12
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/chunk-vendors.042096df.js" beforeDir="false" />
13
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/demo.889ade8f.js" beforeDir="false" />
14
-      <change beforePath="$PROJECT_DIR$/qwh5/dist/js/userPortrait.756b52c0.js" beforeDir="false" />
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/qwh5/src/utils/getWxConfig.ts" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/src/utils/getWxConfig.ts" afterDir="false" />
15 7
       <change beforePath="$PROJECT_DIR$/qwh5/src/views/radarH5.vue" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/src/views/radarH5.vue" afterDir="false" />
16 8
     </list>
17 9
     <option name="SHOW_DIALOG" value="false" />

File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/css/app.520f95a7.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.3d2b677d.js


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


+ 2 - 2
qwh5/src/utils/getWxConfig.ts

@@ -5,7 +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
+    // alert(`${res+'getAuthInfo'}`)
9 9
     if (redirect_url) {//构造网页授权链接回调
10 10
       redirect_url(res.rst)
11 11
     }
@@ -20,7 +20,7 @@ function getAuthInfo(cb?: any, redirect_url?: any) {//jsapi通用授权数据
20 20
 function initQYConfig(authInfo, cb) { // 企业
21 21
   wx.config({
22 22
     beta: true, // 必须这么写,否则wx.invoke调用形式的jsapi会有问题
23
-    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
23
+    debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
24 24
     appId: authInfo.corpid, // 必填,企业微信的corpID
25 25
     timestamp: authInfo.timestamp, // 必填,生成签名的时间戳
26 26
     nonceStr: authInfo.nonce_str, // 必填,生成签名的随机串

+ 9 - 8
qwh5/src/views/radarH5.vue

@@ -16,6 +16,7 @@
16 16
         <div  class="listBox_group">
17 17
           <van-collapse
18 18
                   v-model="activeName" accordion @change="switchGroup">
19
+            <van-empty v-if="radarGrouplist.length==0" description="暂无数据" />
19 20
             <template v-for="item in radarGrouplist" :key="item.group_id">
20 21
               <van-collapse-item :title="item.group_name" :name="item.group_id">
21 22
                 <van-empty v-if="radarlist.length==0" description="暂无数据" />
@@ -129,13 +130,13 @@ export default {
129 130
 
130 131
     onBeforeMount(() => {//组件挂载之前
131 132
       if(getQueryString('againJump')){
132
-        alert(`${'have_againJump'+window.location.href}`)
133
+        // alert(`${'have_againJump'+window.location.href}`)
133 134
         configInfo.corpid = getQueryString('corpid')
134 135
         wx_getuserinfo()
135 136
         getRadarGrouplist()
136 137
         getWxConfig(()=>{send_config_flag.value = true});
137 138
       }else{//获取code
138
-        alert(`${'no_againJump'+window.location.href}`)
139
+        // alert(`${'no_againJump'+window.location.href}`)
139 140
         overshow.value = true;
140 141
         getWxConfig('',(authInfo)=>{
141 142
           url_pin(authInfo)
@@ -154,8 +155,8 @@ export default {
154 155
     }
155 156
 
156 157
     function wx_getuserinfo(){//获取user_id
157
-      alert(`${'corpid_wx_getuserinfo:'+configInfo.corpid}`);
158
-      alert(`${'code:'+getQueryString('code')}`);
158
+      // alert(`${'corpid_wx_getuserinfo:'+configInfo.corpid}`);
159
+      // alert(`${'code:'+getQueryString('code')}`);
159 160
       (proxy as any).$axios.get("/api/oauth2/userInfo", {
160 161
         corpid:configInfo.corpid,
161 162
         code:getQueryString('code'),
@@ -181,7 +182,7 @@ export default {
181 182
     }
182 183
 
183 184
     const getRadarGrouplist=()=>{
184
-      alert(`${'corpid_getRadarGrouplist:'+configInfo.corpid}`);
185
+      // alert(`${'corpid_getRadarGrouplist:'+configInfo.corpid}`);
185 186
       overshow.value = true;
186 187
       (proxy as any).$axios.get("/api/h5/radarPage/groupList", {
187 188
         corpid: configInfo.corpid,
@@ -214,7 +215,7 @@ export default {
214 215
       })
215 216
     }
216 217
     const getRadarlist=(group_id)=>{
217
-      alert(`${'corpid_getRadarlist:'+configInfo.corpid}`);
218
+      // alert(`${'corpid_getRadarlist:'+configInfo.corpid}`);
218 219
       overshow.value = true;
219 220
       (proxy as any).$axios.get("/api/h5/radarPage/list", {
220 221
         corpid: configInfo.corpid,
@@ -267,8 +268,8 @@ export default {
267 268
     }
268 269
 
269 270
     const getmesBody=(radar_id)=>{
270
-      alert(`${'corpid_getmesBody:'+configInfo.corpid}`);
271
-      alert(`${'user_id_getmesBody:'+configInfo.user_id}`);
271
+      // alert(`${'corpid_getmesBody:'+configInfo.corpid}`);
272
+      // alert(`${'user_id_getmesBody:'+configInfo.user_id}`);
272 273
       overshow.value = true;
273 274
       (proxy as any).$axios.get("/api/h5/radarPage/getLinkMsgOfRadar", {
274 275
         corpid: configInfo.corpid,