Browse Source

修改公共传参,H5请求修改

liuxiaona 2 years ago
parent
commit
802172bd6a

+ 5 - 6
.idea/workspace.xml

@@ -3,13 +3,11 @@
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="f876064f-ad38-46e7-bf7d-9df623a9178f" name="Changes" comment="">
5 5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
-      <change beforePath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/index.vue" afterDir="false" />
7
-      <change beforePath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/dataPreview/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/dataPreview/index.vue" afterDir="false" />
8
-      <change beforePath="$PROJECT_DIR$/qwh5/.eslintrc.js" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/.eslintrc.js" afterDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/qwh5/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/package-lock.json" afterDir="false" />
10
-      <change beforePath="$PROJECT_DIR$/qwh5/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/package.json" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/project/src/assets/config/config.js" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/assets/config/config.js" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/importCustomer.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/importCustomer.vue" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/setting.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/marketingGuest/batchAddFriend/addFriend/setting.vue" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/qwh5/public/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/public/index.html" afterDir="false" />
11 10
       <change beforePath="$PROJECT_DIR$/qwh5/src/views/HomeView.vue" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/src/views/HomeView.vue" afterDir="false" />
12
-      <change beforePath="$PROJECT_DIR$/qwh5/vue.config.js" beforeDir="false" afterPath="$PROJECT_DIR$/qwh5/vue.config.js" afterDir="false" />
13 11
     </list>
14 12
     <option name="SHOW_DIALOG" value="false" />
15 13
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -60,6 +58,7 @@
60 58
       <workItem from="1654573024055" duration="23176000" />
61 59
       <workItem from="1654653264438" duration="30604000" />
62 60
       <workItem from="1654739102819" duration="11048000" />
61
+      <workItem from="1654756255993" duration="2262000" />
63 62
     </task>
64 63
     <servers />
65 64
   </component>

+ 1 - 1
index.html

@@ -7,4 +7,4 @@
7 7
         hm.src = "https://hm.baidu.com/hm.js?d61b9e2caf4d46ccda7471b5385e2333";
8 8
         var s = document.getElementsByTagName("script")[0];
9 9
         s.parentNode.insertBefore(hm, s);
10
-      })();</script><link href=./static/css/app.0e1a7868bcebb591c382bf3e5a0505e8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.d2aa7b633e741b5868eb.js></script><script type=text/javascript src=./static/js/app.f6ebbc768d7c27d1a698.js></script></body></html>
10
+      })();</script><link href=./static/css/app.5186fd78a1f3ec7d3f421b0c2fb5e1f4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3a196b4230b9149f39dc.js></script><script type=text/javascript src=./static/js/app.fb66a0ee18e70da63477.js></script></body></html>

+ 2 - 1
project/src/assets/config/config.js

@@ -30,7 +30,8 @@ axios.interceptors.request.use(
30 30
       admin_id: getCookie("admin_id"),
31 31
       ttl: Number(getCookie("ttl")),
32 32
       sign: getCookie("sign"),
33
-      view_type: store.state.isData ? 'data' : 'helper'
33
+      view_type: store.state.isData ? 'data' : 'helper',
34
+      sys_group_id:getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : '',
34 35
     }
35 36
     //sessionStorage 解决打开不同窗口,不能公司的问题
36 37
     if (sessionStorage.getItem('company_session_defaultCorp') && sessionStorage.getItem('company_session_defaultCorp') != 'undefined') {

+ 8 - 1
project/src/components/marketingGuest/batchAddFriend/addFriend/importCustomer.vue

@@ -6,7 +6,11 @@
6 6
       width="36%">
7 7
       <div class="f14">
8 8
         <div class="tipsBox"> <i class="el-icon-message-solid f14 rMar7 c-00B38A"></i> 请下载模板后输入手机号上传,可批量复制手机号至模板内,若输入内容有重复手机号或空行将会自动过滤</div>
9
-        <div class="downExcle">点击下载 <span class="pointer c-00B38A">Excle模板</span> </div>
9
+        <div class="downExcle">点击下载
10
+          <span class="pointer c-00B38A" @click="downExcle">
11
+            <a :href="URL.BASEURL+'/playlet/Excel批量添加好友模板 .xlsx#/'"> Excle模板</a>
12
+          </span>
13
+        </div>
10 14
         <div class="formTable">
11 15
           <div class="itemBox">
12 16
             <div class="lable"><em>*</em> 选择表格 : </div>
@@ -82,6 +86,9 @@ export default {
82 86
     }
83 87
   },
84 88
   methods:{
89
+    downExcle(){
90
+
91
+    },
85 92
     pranentInit(){//dialogPublic在用
86 93
       this.afferent_tag_obj.tag_id_list = []
87 94
       this.user_id_list = []

+ 1 - 6
project/src/components/marketingGuest/batchAddFriend/addFriend/setting.vue

@@ -160,7 +160,6 @@ export default {
160 160
       this.config_list.auto_recycle.threshold = this.config_list.auto_recycle.threshold*60
161 161
       config_list_finally.push(this.config_list.assigned,this.config_list.charged,this.config_list.auto_recycle)
162 162
       this.$axios.post(this.URL.BASEURL + this.URL.editConfig, {
163
-        sys_group_id:this.$cookie.getCookie('isSuperManage') == 1 ? sessionStorage.getItem('company_session_defaultCorp_level_1').toString() : '',
164 163
         config_list:config_list_finally
165 164
       }).then((res) => {
166 165
         var res = res.data
@@ -181,11 +180,7 @@ export default {
181 180
     },
182 181
     rebackInfo(){
183 182
       this.loading = true
184
-      this.$axios.get(this.URL.BASEURL + this.URL.setting_rebackInfo, {
185
-        params:{
186
-          sys_group_id:this.$cookie.getCookie('isSuperManage') == 1 ? Number(sessionStorage.getItem('company_session_defaultCorp_level_1')) : '',
187
-        }
188
-      }).then((res) => {
183
+      this.$axios.get(this.URL.BASEURL + this.URL.setting_rebackInfo).then((res) => {
189 184
         var res = res.data
190 185
         if(res&&res.errno==0){
191 186
           let configData = this.config_list

File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/css/app.22324e9d.css


File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/css/app.7055aacf.css


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


+ 1 - 1
qwh5/dist/js/about.3af429e9.js

@@ -1,2 +1,2 @@
1 1
 "use strict";(self["webpackChunkqwh5"]=self["webpackChunkqwh5"]||[]).push([[443],{4335:function(n,u,t){t.r(u),t.d(u,{default:function(){return f}});var a=t(3396);const e={class:"about"},r=(0,a._)("h1",null,"This is an about page",-1),s=[r];function c(n,u){return(0,a.wg)(),(0,a.iD)("div",e,s)}var i=t(89);const h={},o=(0,i.Z)(h,[["render",c]]);var f=o}}]);
2
-//# sourceMappingURL=about.3af429e9.js.map
2
+//# sourceMappingURL=about.0c77b459.js.map

File diff suppressed because it is too large
+ 1 - 1
qwh5/dist/js/about.3af429e9.js.map


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


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


File diff suppressed because it is too large
+ 2 - 0
qwh5/dist/js/app.5dfbb118.js


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/js/app.5dfbb118.js.map


File diff suppressed because it is too large
+ 2 - 2
qwh5/dist/js/chunk-vendors.f252284d.js


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/js/chunk-vendors.7e7f30bd.js.map


File diff suppressed because it is too large
+ 0 - 1
qwh5/dist/js/chunk-vendors.f252284d.js.map


+ 2 - 1
qwh5/public/index.html

@@ -7,7 +7,8 @@
7 7
       <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
8 8
       <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
9 9
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
10
-    <title><%= htmlWebpackPlugin.options.title %></title>
10
+<!--    <title><%= htmlWebpackPlugin.options.title %></title>-->
11
+    <title>客户列表</title>
11 12
   </head>
12 13
   <body>
13 14
     <noscript>

+ 19 - 4
qwh5/src/views/HomeView.vue

@@ -190,14 +190,29 @@ export default class HomeView extends Vue {
190 190
       this.tableLoading = false
191 191
       this.loading = false
192 192
       const resNew = res.data
193
-      if (resNew.rst.data.length < 20) {
194
-        this.noMore = true
193
+      if(resNew&&resNew.errno==0){
194
+        if (resNew.rst.data.length < 20) {
195
+          this.noMore = true
196
+        }
197
+        this.tableData = [...this.tableData, ...resNew.rst.data]
198
+        this.load_loading = false
199
+      }else{
200
+        ElMessage({
201
+          showClose:true,
202
+          message: '没有获取到链接参数,请联系管理员',
203
+          type: 'warning',
204
+          duration:5000
205
+        })
195 206
       }
196
-      this.tableData = [...this.tableData, ...resNew.rst.data]
197
-      this.load_loading = false
198 207
     }).catch((err) => {
199 208
       this.tableLoading = false
200 209
       console.log(err)
210
+      ElMessage({
211
+        showClose:true,
212
+        message: err,
213
+        type: 'warning',
214
+        duration:5000
215
+      })
201 216
     })
202 217
   }
203 218
 

File diff suppressed because it is too large
+ 1 - 1
static/css/app.0e1a7868bcebb591c382bf3e5a0505e8.css


File diff suppressed because it is too large
+ 1 - 0
static/js/7.7ddb71882cfa4c322f0b.js


File diff suppressed because it is too large
+ 0 - 1
static/js/7.d6c4964385f0b6e12cc7.js


File diff suppressed because it is too large
+ 1 - 1
static/js/app.f6ebbc768d7c27d1a698.js


File diff suppressed because it is too large
+ 1 - 1
static/js/manifest.d2aa7b633e741b5868eb.js