weirenchun 10 months ago
parent
commit
199a9e7027
2 changed files with 8 additions and 2 deletions
  1. 7 1
      src/api/biz/index.js
  2. 1 1
      src/views/home/components/center1.vue

+ 7 - 1
src/api/biz/index.js

@@ -38,7 +38,13 @@ export default {
    * @returns {Promise | Promise<unknown>}
    * @returns {Promise | Promise<unknown>}
    */
    */
   getUserCountByCity(params) {
   getUserCountByCity(params) {
-    return fetch('/wutong-base/wxuser/getUserCountByCity', params)
+    return fetch(
+      '/blade-pc-applet/userarea/getUserCountByCity',
+      params,
+      'post',
+      'json'
+    )
+    // return fetch('/wutong-base/wxuser/getUserCountByCity', params)
   },
   },
   /**
   /**
    * 获取最近7月类用户增加数量
    * 获取最近7月类用户增加数量

+ 1 - 1
src/views/home/components/center1.vue

@@ -59,7 +59,7 @@ export default {
       this.$api.biz.getUserCountByTenant().then(res => {
       this.$api.biz.getUserCountByTenant().then(res => {
         if (res.code === 200) {
         if (res.code === 200) {
           res.data.map(item => {
           res.data.map(item => {
-            if (item.name === 'biz') {
+            if (item.name === 'wtzk') {
               this.bizCount = item.number
               this.bizCount = item.number
             } else if (item.name === 'yun') {
             } else if (item.name === 'yun') {
               this.yunCount = item.number
               this.yunCount = item.number