Browse Source

H5错误修改

liuxiaona 2 years ago
parent
commit
a57db300d5
82 changed files with 883 additions and 1799 deletions
  1. 9 6
      .idea/workspace.xml
  2. BIN
      Excel批量添加好友模板 .xlsx
  3. 10 0
      index.html
  4. 2 1
      project/src/components/marketingGuest/batchAddFriend/addFriend/index.vue
  5. 21 5
      project/src/components/marketingGuest/batchAddFriend/dataPreview/index.vue
  6. 0 5
      qwh5/.editorconfig
  7. 0 33
      qwh5/.eslintrc.js
  8. 0 5
      qwh5/README.md
  9. 1 0
      qwh5/dist/css/app.7055aacf.css
  10. 1 0
      qwh5/dist/css/chunk-vendors.01b3e040.css
  11. BIN
      qwh5/dist/favicon.ico
  12. 1 0
      qwh5/dist/index.html
  13. 2 0
      qwh5/dist/js/about.3af429e9.js
  14. 1 0
      qwh5/dist/js/about.3af429e9.js.map
  15. 2 0
      qwh5/dist/js/app.1c4ff2fa.js
  16. 1 0
      qwh5/dist/js/app.1c4ff2fa.js.map
  17. 42 0
      qwh5/dist/js/chunk-vendors.f252284d.js
  18. 1 0
      qwh5/dist/js/chunk-vendors.f252284d.js.map
  19. 217 1688
      qwh5/package-lock.json
  20. 5 15
      qwh5/package.json
  21. 2 2
      qwh5/public/index.html
  22. 8 9
      qwh5/src/App.vue
  23. 2 3
      qwh5/src/components/HelloWorld.vue
  24. 1 3
      qwh5/src/main.ts
  25. 8 0
      qwh5/src/shims-vue.d.ts
  26. 47 18
      qwh5/src/views/HomeView.vue
  27. 2 1
      qwh5/tsconfig.json
  28. 4 5
      qwh5/vue.config.js
  29. 1 0
      static/css/app.0e1a7868bcebb591c382bf3e5a0505e8.css
  30. BIN
      static/fonts/element-icons.535877f.woff
  31. BIN
      static/fonts/element-icons.732389d.ttf
  32. BIN
      static/img/404.ff9db83.png
  33. BIN
      static/img/dpNoData.28b47ba.png
  34. BIN
      static/img/exterprise-mass-send.ee20127.png
  35. BIN
      static/img/friendsCircleSend.289dbc8.png
  36. BIN
      static/img/kaigongsi.929270e.png
  37. BIN
      static/img/loginBg.b4c82ec.png
  38. BIN
      static/img/login_box.039035d.png
  39. BIN
      static/img/phone.1c130fa.png
  40. 1 0
      static/js/0.618a18832655d02cc7ea.js
  41. 16 0
      static/js/1.e7a49a517b66e754a35a.js
  42. 1 0
      static/js/10.a7b1db1d64f9ecd837be.js
  43. 1 0
      static/js/11.cc7e7822cad7cc71b7ba.js
  44. 1 0
      static/js/12.32db58f1c49ed0a80266.js
  45. 1 0
      static/js/13.69c03cdcabd0c7ba60c8.js
  46. 1 0
      static/js/14.db411c6339bd832fd03d.js
  47. 1 0
      static/js/15.33bb6c656d1de5af50e7.js
  48. 1 0
      static/js/16.2d9151c9133639b4da83.js
  49. 1 0
      static/js/17.f206e154b2e7869ca40f.js
  50. 1 0
      static/js/18.95af81ce0defc19453a3.js
  51. 1 0
      static/js/19.98e43e2557b95d82d79d.js
  52. 1 0
      static/js/2.b9862eab66265a974ec8.js
  53. 42 0
      static/js/20.474cdebf8aa209fd0322.js
  54. 1 0
      static/js/21.744f291128a218a47fa1.js
  55. 1 0
      static/js/22.1f38f03a82ed2e239723.js
  56. 1 0
      static/js/23.c69b56da5d52f9245951.js
  57. 1 0
      static/js/24.d136561ad6539a587f2b.js
  58. 1 0
      static/js/25.8cfd7f1f9d8303fc2366.js
  59. 1 0
      static/js/26.ab5b77c5f1ab255a2082.js
  60. 1 0
      static/js/27.a254d7c098f7edabd142.js
  61. 1 0
      static/js/28.ab926ac5ddf58f315181.js
  62. 1 0
      static/js/29.7869b1b2cf9de0d38c57.js
  63. 1 0
      static/js/3.a699676bfccdb9c1a3b4.js
  64. 1 0
      static/js/30.7e4390eccaf4d75634c9.js
  65. 1 0
      static/js/31.3684163420e16b54f35e.js
  66. 1 0
      static/js/32.ed17950db5aa1c8331df.js
  67. 1 0
      static/js/33.d8551f260ee729e34453.js
  68. 1 0
      static/js/34.99b920e67caecb79c65f.js
  69. 1 0
      static/js/35.0fde5b3adbcf096e6276.js
  70. 1 0
      static/js/36.f5fb794ca36a5c2b0d5d.js
  71. 1 0
      static/js/37.3535d9bc2f7a2c1fde55.js
  72. 1 0
      static/js/38.0981668fb5e964522854.js
  73. 1 0
      static/js/39.b7dfc88ab15b84486f26.js
  74. 1 0
      static/js/4.1ea9769ecb97ed6108a5.js
  75. 2 0
      static/js/40.d5442514fca224f2c24e.js
  76. 18 0
      static/js/5.459670a8510e1460e064.js
  77. 1 0
      static/js/6.b3da5e9425a4daf5d76e.js
  78. 1 0
      static/js/7.d6c4964385f0b6e12cc7.js
  79. 25 0
      static/js/8.423a43003455dbbc09e3.js
  80. 1 0
      static/js/9.2430ba0086e37765dbd8.js
  81. 352 0
      static/js/app.f6ebbc768d7c27d1a698.js
  82. 1 0
      static/js/manifest.d2aa7b633e741b5868eb.js

+ 9 - 6
.idea/workspace.xml

@@ -3,10 +3,13 @@
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/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/project/index.html" afterDir="false" />
7
-      <change beforePath="$PROJECT_DIR$/project/src/components/H5/customerDetails.vue" beforeDir="false" />
8
-      <change beforePath="$PROJECT_DIR$/project/src/components/assembly/screen/enterpriseTagFC.vue" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/components/assembly/screen/enterpriseTagFC.vue" afterDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/project/src/router/allRouter.js" beforeDir="false" afterPath="$PROJECT_DIR$/project/src/router/allRouter.js" 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" />
11
+      <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" />
10 13
     </list>
11 14
     <option name="SHOW_DIALOG" value="false" />
12 15
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -26,7 +29,7 @@
26 29
     <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
27 30
     <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
28 31
     <property name="WebServerToolWindowFactoryState" value="false" />
29
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/../data_center" />
32
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/../qwh5" />
30 33
     <property name="nodejs_package_manager_path" value="npm" />
31 34
     <property name="settings.editor.selected.configurable" value="editor.reader.mode" />
32 35
     <property name="ts.external.directory.path" value="C:\Program Files (x86)\webstorm\WebStorm 2021.2.1\plugins\JavaScriptLanguage\jsLanguageServicesImpl\external" />
@@ -56,7 +59,7 @@
56 59
       <workItem from="1654070934388" duration="14000" />
57 60
       <workItem from="1654573024055" duration="23176000" />
58 61
       <workItem from="1654653264438" duration="30604000" />
59
-      <workItem from="1654739102819" duration="5695000" />
62
+      <workItem from="1654739102819" duration="11048000" />
60 63
     </task>
61 64
     <servers />
62 65
   </component>

BIN
Excel批量添加好友模板 .xlsx


+ 10 - 0
index.html

@@ -0,0 +1,10 @@
1
+<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" type=image/x-icon href=./favicon.ico><title>企微助手</title><script>document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/1920) + "px";
2
+      window.onresize = function(){
3
+        document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/1920) + "px";
4
+      }</script><script>var _hmt = _hmt || [];
5
+      (function() {
6
+        var hm = document.createElement("script");
7
+        hm.src = "https://hm.baidu.com/hm.js?d61b9e2caf4d46ccda7471b5385e2333";
8
+        var s = document.getElementsByTagName("script")[0];
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>

+ 2 - 1
project/src/components/marketingGuest/batchAddFriend/addFriend/index.vue

@@ -122,7 +122,7 @@
122 122
     <setting ref="settingRef"></setting>
123 123
     <!--    导入客户-->
124 124
     <importCustomer ref="importCustomerRef"></importCustomer>
125
-    <!--详情-->
125
+    <!--客户详情-->
126 126
     <el-drawer :size="drawerSize" :visible.sync="detialDrawer" :with-header="false">
127 127
       <detial @changeDrawerSize="changeDrawerSize" @closeDrawer="closeDrawer" :rowProp="{
128 128
         customer_id:rowPro.customer_id,
@@ -133,6 +133,7 @@
133 133
 </template>
134 134
 
135 135
 <script>
136
+
136 137
 import selfInput from '@/components/assembly/screen/input.vue'
137 138
 import importCustomer from "./importCustomer";
138 139
 import setting from "./setting";

+ 21 - 5
project/src/components/marketingGuest/batchAddFriend/dataPreview/index.vue

@@ -71,7 +71,7 @@
71 71
 
72 72
       <el-table-column label="操作" align="center">
73 73
         <template slot-scope="scope">
74
-          <div class="c-00B38A pointer" @click="goDetial(scope.row.user_id)">详情</div>
74
+          <div class="c-00B38A pointer" @click="goDetial(scope.row)">详情</div>
75 75
         </template>
76 76
       </el-table-column>
77 77
     </el-table>
@@ -79,6 +79,12 @@
79 79
       <el-pagination background :current-page="page" @current-change="handleCurrentChange" layout="prev, pager, next" :page-count='Number(pages)'>
80 80
       </el-pagination>
81 81
     </div>
82
+
83
+
84
+    <!--客服详情-->
85
+    <el-drawer :size="drawerSize" :visible.sync="userDetailFlag" :with-header="false">
86
+      <user-detail v-if="userDetailFlag" @changeDrawerSize="changeDrawerSize" @closeDrawer="closeDrawer" :user_id="user_detail_id"></user-detail>
87
+    </el-drawer>
82 88
   </div>
83 89
 
84 90
 </template>
@@ -86,16 +92,19 @@
86 92
 <script>
87 93
 import selfCustomerservice from '@/components/assembly/screen/customerService.vue'
88 94
 import datePicker from '@/components/assembly/screen/datePicker.vue'
89
-import Bus from '@/assets/js/bus.js'
95
+import userDetail from '@/components/manage/userDetail/index.vue'
90 96
 export default {
91 97
   name: "dataPreview",
92 98
   components:{
93 99
     datePicker,
94 100
     selfCustomerservice,
95
-
101
+    userDetail
96 102
   },
97 103
   data(){
98 104
     return{
105
+      userDetailFlag: false,
106
+      drawerSize: '60%',
107
+      user_detail_id: '',
99 108
       default_time: [this.$getDay(-30, false), this.$getDay(0, false)],
100 109
       time: [],
101 110
       loading: false,
@@ -169,8 +178,15 @@ export default {
169 178
     }
170 179
   },
171 180
   methods:{
172
-    goDetial(id){
173
-
181
+    changeDrawerSize () {
182
+      this.drawerSize = this.drawerSize == '100%' ? '60%' : '100%'
183
+    },
184
+    closeDrawer () {
185
+      this.detialDrawer = false
186
+    },
187
+    goDetial (data) {
188
+      this.userDetailFlag = true
189
+      this.user_detail_id = data.user_id;
174 190
     },
175 191
     gooverviewDetial(id){
176 192
       this.$store.state.batchTime = this.time

+ 0 - 5
qwh5/.editorconfig

@@ -1,5 +0,0 @@
1
-[*.{js,jsx,ts,tsx,vue}]
2
-indent_style = space
3
-indent_size = 2
4
-trim_trailing_whitespace = true
5
-insert_final_newline = true

+ 0 - 33
qwh5/.eslintrc.js

@@ -1,33 +0,0 @@
1
-module.exports = {
2
-  root: true,
3
-  env: {
4
-    node: true
5
-  },
6
-  extends: [
7
-    // 'plugin:vue/vue3-essential',
8
-    '@vue/standard',
9
-    '@vue/typescript/recommended'
10
-  ],
11
-  parserOptions: {
12
-    ecmaVersion: 2020
13
-  },
14
-  // rules: {
15
-  //   'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
16
-  //   'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
17
-  //   'space-before-function-paren': 0,
18
-  //   'no-extra-semi': 0, // 可以多余的冒号
19
-  //   semi: 0, // 语句可以不需要分号结尾
20
-  //   // 'comma-dangle': ["error", "always-multiline"],
21
-  //   'comma-dangle': 0,
22
-  //   'no-multi-spaces': 0, // 不能用多余的空格
23
-  //   'no-unused-vars': [
24
-  //     2,
25
-  //     {
26
-  //       // 允许声明未使用变量
27
-  //       vars: 'local',
28
-  //       // 参数不检查
29
-  //       args: 'none'
30
-  //     }
31
-  //   ]
32
-  // }
33
-}

+ 0 - 5
qwh5/README.md

@@ -15,10 +15,5 @@ npm run serve
15 15
 npm run build
16 16
 ```
17 17
 
18
-### Lints and fixes files
19
-```
20
-npm run lint
21
-```
22
-
23 18
 ### Customize configuration
24 19
 See [Configuration Reference](https://cli.vuejs.org/config/).

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


File diff suppressed because it is too large
+ 1 - 0
qwh5/dist/css/chunk-vendors.01b3e040.css


BIN
qwh5/dist/favicon.ico


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


+ 2 - 0
qwh5/dist/js/about.3af429e9.js

@@ -0,0 +1,2 @@
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

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


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


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


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


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


File diff suppressed because it is too large
+ 217 - 1688
qwh5/package-lock.json


+ 5 - 15
qwh5/package.json

@@ -4,36 +4,26 @@
4 4
   "private": true,
5 5
   "scripts": {
6 6
     "serve": "vue-cli-service serve",
7
-    "build": "vue-cli-service build",
8
-    "lint": "vue-cli-service lint"
7
+    "build": "vue-cli-service build"
9 8
   },
10 9
   "dependencies": {
11 10
     "axios": "^0.27.2",
12 11
     "core-js": "^3.8.3",
13
-    "element-plus": "^2.2.4",
12
+    "element-plus": "^2.2.5",
13
+    "sass": "^1.52.3",
14
+    "sass-loader": "^13.0.0",
15
+    "save": "^2.5.0",
14 16
     "vue": "^3.2.13",
15 17
     "vue-class-component": "^8.0.0-0",
16 18
     "vue-router": "^4.0.3",
17 19
     "vuex": "^4.0.0"
18 20
   },
19 21
   "devDependencies": {
20
-    "@typescript-eslint/eslint-plugin": "^5.4.0",
21
-    "@typescript-eslint/parser": "^5.4.0",
22 22
     "@vue/cli-plugin-babel": "~5.0.0",
23
-    "@vue/cli-plugin-eslint": "~5.0.0",
24 23
     "@vue/cli-plugin-router": "~5.0.0",
25 24
     "@vue/cli-plugin-typescript": "~5.0.0",
26 25
     "@vue/cli-plugin-vuex": "~5.0.0",
27 26
     "@vue/cli-service": "~5.0.0",
28
-    "@vue/eslint-config-standard": "^6.1.0",
29
-    "@vue/eslint-config-typescript": "^9.1.0",
30
-    "eslint": "^7.32.0",
31
-    "eslint-plugin-import": "^2.25.3",
32
-    "eslint-plugin-node": "^11.1.0",
33
-    "eslint-plugin-promise": "^5.1.0",
34
-    "eslint-plugin-vue": "^8.0.3",
35
-    "sass": "^1.32.7",
36
-    "sass-loader": "^12.0.0",
37 27
     "typescript": "~4.5.5"
38 28
   }
39 29
 }

+ 2 - 2
qwh5/public/index.html

@@ -4,8 +4,8 @@
4 4
     <meta charset="utf-8">
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 6
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
-    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
8
-    <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
7
+      <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
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 10
     <title><%= htmlWebpackPlugin.options.title %></title>
11 11
   </head>

+ 8 - 9
qwh5/src/App.vue

@@ -2,25 +2,24 @@
2 2
   <router-view/>
3 3
 </template>
4 4
 
5
-<style lang="scss">
5
+<style>
6 6
 #app {
7 7
   font-family: Avenir, Helvetica, Arial, sans-serif;
8 8
   -webkit-font-smoothing: antialiased;
9 9
   -moz-osx-font-smoothing: grayscale;
10
-  //text-align: center;
11 10
   color: #2c3e50;
12 11
 }
13 12
 
14 13
 nav {
15 14
   padding: 30px;
15
+}
16 16
 
17
-  a {
18
-    font-weight: bold;
19
-    color: #2c3e50;
17
+nav a {
18
+  font-weight: bold;
19
+  color: #2c3e50;
20
+}
20 21
 
21
-    &.router-link-exact-active {
22
-      color: #42b983;
23
-    }
24
-  }
22
+nav a.router-link-exact-active {
23
+  color: #42b983;
25 24
 }
26 25
 </style>

+ 2 - 3
qwh5/src/components/HelloWorld.vue

@@ -11,7 +11,6 @@
11 11
       <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12 12
       <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
13 13
       <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex" target="_blank" rel="noopener">vuex</a></li>
14
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
15 14
       <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript" target="_blank" rel="noopener">typescript</a></li>
16 15
     </ul>
17 16
     <h3>Essential Links</h3>
@@ -34,7 +33,7 @@
34 33
 </template>
35 34
 
36 35
 <script lang="ts">
37
-import { Options, Vue } from 'vue-class-component'
36
+import { Options, Vue } from 'vue-class-component';
38 37
 
39 38
 @Options({
40 39
   props: {
@@ -47,7 +46,7 @@ export default class HelloWorld extends Vue {
47 46
 </script>
48 47
 
49 48
 <!-- Add "scoped" attribute to limit CSS to this component only -->
50
-<style scoped lang="scss">
49
+<style scoped>
51 50
 h3 {
52 51
   margin: 40px 0 0;
53 52
 }

+ 1 - 3
qwh5/src/main.ts

@@ -5,6 +5,4 @@ import store from './store'
5 5
 import ElementPlus from 'element-plus'
6 6
 import 'element-plus/dist/index.css'
7 7
 
8
-const app = createApp(App)
9
-app.config.warnHandler = () => null
10
-app.use(ElementPlus).use(router).use(store).mount('#app')
8
+createApp(App).use(ElementPlus).use(store).use(router).mount('#app')

+ 8 - 0
qwh5/src/shims-vue.d.ts

@@ -1,6 +1,14 @@
1 1
 /* eslint-disable */
2
+import {DefineComponent} from "vue";
3
+import wx from "*.vue";
4
+
2 5
 declare module '*.vue' {
3 6
   import type { DefineComponent } from 'vue'
4 7
   const component: DefineComponent<{}, {}, any>
5 8
   export default component
6 9
 }
10
+declare module '@vue/runtime-core' {
11
+  interface ComponentCustomProperties {
12
+    wx: any // 这里可以用$Api具体的类型代替any
13
+  }
14
+}

+ 47 - 18
qwh5/src/views/HomeView.vue

@@ -5,10 +5,10 @@
5 5
       <div>
6 6
         <el-select v-model="addStatus_val" class="m-2" placeholder="请选择添加状态" @change="statusChange" style="width: 160px">
7 7
           <el-option
8
-            v-for="item in addStatusArrs"
9
-            :key="item.value"
10
-            :label="item.label"
11
-            :value="item.value"
8
+              v-for="item in addStatusArrs"
9
+              :key="item.value"
10
+              :label="item.label"
11
+              :value="item.value"
12 12
           />
13 13
         </el-select>
14 14
       </div>
@@ -54,22 +54,30 @@
54 54
 </template>
55 55
 
56 56
 <script lang="ts">
57
-import { Vue } from 'vue-class-component'
57
+import {Vue} from 'vue-class-component';
58
+import { ElMessage } from 'element-plus'
58 59
 import axios from 'axios'
59 60
 axios.defaults.baseURL = '/api'
61
+
60 62
 export default class HomeView extends Vue {
61 63
   tableLoading = false
62 64
   load_loading = false
63
-  nowTableLen = 20 // 最后一次请求表格长度
64 65
   noMore = false
65
-  loading='false'
66
+  loading=false
66 67
   disabled = this.load_loading || this.noMore
67 68
   adminName = '刘晓娜'
68 69
   customeNum = 1
69 70
   page=1
70 71
   page_size=20
71 72
   addStatus_val = ''
72
-  authInfo = {}
73
+  authInfo = {
74
+    corpid:'',
75
+    timestamp:'',
76
+    nonce_str:'',
77
+    signature:'',
78
+    agent_id:'',
79
+    app_signature:''
80
+  }
73 81
   tableData = []
74 82
   addStatusArrs = [
75 83
     {
@@ -95,7 +103,20 @@ export default class HomeView extends Vue {
95 103
   ]
96 104
 
97 105
   created () {
98
-    this.get_customerList()
106
+    if(!this.$route.query.corpid ||
107
+        !this.$route.query.user_id ||
108
+        !this.$route.query.token ||
109
+        !this.$route.query.timestamp
110
+    ){
111
+      ElMessage({
112
+        showClose:true,
113
+        message: '没有获取到链接参数,请联系管理员',
114
+        type: 'warning',
115
+        duration:5000
116
+      })
117
+    }else{
118
+      this.get_customerList()
119
+    }
99 120
   }
100 121
 
101 122
   loadMore () {
@@ -111,13 +132,17 @@ export default class HomeView extends Vue {
111 132
   }
112 133
 
113 134
   reset () {
135
+    this.loading = true
114 136
     this.addStatus_val = ''
115 137
     this.page = 1
116 138
     this.tableData = []
139
+    this.noMore = false
117 140
     this.get_customerList()
118 141
   }
119 142
 
120 143
   statusChange (val) {
144
+    this.noMore = false
145
+    this.loading = true
121 146
     this.addStatus_val = val
122 147
     this.page = 1
123 148
     this.tableData = []
@@ -148,6 +173,9 @@ export default class HomeView extends Vue {
148 173
 
149 174
   get_customerList () { // 客户列表
150 175
     this.tableLoading = true
176
+    if(Number(this.addStatus_val)==0 ){
177
+      this.addStatus_val = ''
178
+    }
151 179
     axios.get('/api/task/customerList', {
152 180
       params: {
153 181
         corpid: this.$route.query.corpid,
@@ -191,7 +219,7 @@ export default class HomeView extends Vue {
191 219
 
192 220
   initQYConfig () { // 企业
193 221
     const _this = this
194
-    wx.config({
222
+    _this.wx.config({
195 223
       beta: true, // 必须这么写,否则wx.invoke调用形式的jsapi会有问题
196 224
       debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
197 225
       appId: this.authInfo.corpid, // 必填,企业微信的corpID
@@ -200,10 +228,10 @@ export default class HomeView extends Vue {
200 228
       signature: this.authInfo.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法 企业签名
201 229
       jsApiList: ['navigateToAddCustomer'] // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
202 230
     })
203
-    wx.ready(function () {
231
+    _this.wx.ready(function () {
204 232
       _this.initYYConfig()
205 233
     })
206
-    wx.error(function (res) {
234
+    _this.wx.error(function (res) {
207 235
       // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
208 236
       console.log(res, 'QYerror')
209 237
     })
@@ -211,7 +239,7 @@ export default class HomeView extends Vue {
211 239
 
212 240
   initYYConfig () { // 应用
213 241
     const _this = this
214
-    wx.agentConfig({
242
+    _this.wx.agentConfig({
215 243
       corpid: this.authInfo.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致
216 244
       agentid: this.authInfo.agent_id, // 必填,企业微信的应用id (e.g. 1000247)
217 245
       timestamp: this.authInfo.timestamp, // 必填,生成签名的时间戳
@@ -220,7 +248,7 @@ export default class HomeView extends Vue {
220 248
       jsApiList: ['navigateToAddCustomer'], // 必填,传入需要使用的接口名称
221 249
       success: function (res) {
222 250
         // 回调
223
-        wx.invoke('navigateToAddCustomer', {}, function (res) {
251
+        _this.wx.invoke('navigateToAddCustomer', {}, function (res) {
224 252
           console.log(res, 'wx.invoke,navigateToAddCustomer')
225 253
         })
226 254
         _this.loading = false
@@ -237,6 +265,7 @@ export default class HomeView extends Vue {
237 265
   }
238 266
 }
239 267
 </script>
268
+
240 269
 <style lang="scss" scoped>
241 270
 .home {
242 271
   padding: 8px;
@@ -290,11 +319,11 @@ export default class HomeView extends Vue {
290 319
         text-align: center;
291 320
         margin: 10px 0 10px;
292 321
       }
293
-        .noData{
294
-          text-align: center;
295
-          padding: 10px 0;
322
+      .noData{
323
+        text-align: center;
324
+        padding: 10px 0;
296 325
 
297
-        }
326
+      }
298 327
       .table_header {
299 328
         background: #eef9ff;
300 329
         color: #999;

+ 2 - 1
qwh5/tsconfig.json

@@ -1,8 +1,9 @@
1 1
 {
2 2
   "compilerOptions": {
3
+    "declaration": true,
3 4
     "target": "esnext",
4 5
     "module": "esnext",
5
-    "strict": true,
6
+    "strict": false,
6 7
     "jsx": "preserve",
7 8
     "moduleResolution": "node",
8 9
     "experimentalDecorators": true,

+ 4 - 5
qwh5/vue.config.js

@@ -1,10 +1,6 @@
1 1
 const { defineConfig } = require('@vue/cli-service')
2 2
 module.exports = defineConfig({
3 3
   transpileDependencies: true,
4
-
5
-  lintOnSave: false,
6
-  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
7
-  outputDir: 'dist',
8 4
   devServer: {
9 5
     proxy: { // 配置跨域
10 6
       '/api': {
@@ -15,5 +11,8 @@ module.exports = defineConfig({
15 11
         }
16 12
       }
17 13
     }
18
-  }
14
+  },
15
+  lintOnSave: false,
16
+  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
17
+  outputDir: 'dist',
19 18
 })

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


BIN
static/fonts/element-icons.535877f.woff


BIN
static/fonts/element-icons.732389d.ttf


BIN
static/img/404.ff9db83.png


BIN
static/img/dpNoData.28b47ba.png


BIN
static/img/exterprise-mass-send.ee20127.png


BIN
static/img/friendsCircleSend.289dbc8.png


BIN
static/img/kaigongsi.929270e.png


BIN
static/img/loginBg.b4c82ec.png


BIN
static/img/login_box.039035d.png


BIN
static/img/phone.1c130fa.png


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


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


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


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


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


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


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


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


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


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


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


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


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


File diff suppressed because it is too large
+ 42 - 0
static/js/20.474cdebf8aa209fd0322.js


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


File diff suppressed because it is too large
+ 2 - 0
static/js/40.d5442514fca224f2c24e.js


File diff suppressed because it is too large
+ 18 - 0
static/js/5.459670a8510e1460e064.js


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


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


File diff suppressed because it is too large
+ 25 - 0
static/js/8.423a43003455dbbc09e3.js


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


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


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