Ver código fonte

feat: 初始化地区优化

zhangyuhan 1 ano atrás
pai
commit
dc1ed3b3e5

+ 8 - 8
script/config/id.config.mjs

@@ -169,7 +169,7 @@ const AppInfoMaps = {
     shareInfo: {
       home: {
         title: '全国物业项目库,实时获取物业采购商机!',
-        img: ''
+        imageUrl: 'https://web-qmxtest.jydev.jianyu360.com/upload/2024/06/26/202406261144250066H4AqVoz.png'
       },
       search: {
         title: '快来轻松筛查最新招标采购商机!',
@@ -182,12 +182,12 @@ const AppInfoMaps = {
   },
   'wy_cgyx': {
     project: {
-      appId: 'wxd9e11d95ceecf941',
+      appId: 'wxb0549c3059dd9b15',
       appName: '物业 | 采购意向',
       appCode: 'wy_cgyx',
       appType: '采购意向',
       appDesc: '',
-      payAppId: 'wxd9e11d95ceecf941',
+      payAppId: 'wxb0549c3059dd9b15',
       appIcon: '/images/logo/cgyx.png',
       themeColor: '#ffa218',
     },
@@ -211,7 +211,7 @@ const AppInfoMaps = {
     shareInfo: {
       home: {
         title: '全国物业项目库,实时获取物业采购商机!',
-        img: ''
+        imageUrl: 'https://web-qmxtest.jydev.jianyu360.com/upload/2024/06/26/202406261144250066H4AqVoz.png'
       },
       search: {
         title: '快来轻松筛查最新招标采购商机!',
@@ -224,12 +224,12 @@ const AppInfoMaps = {
   },
   'wy_hydqxm': {
     project: {
-      appId: 'wxd9e11d95ceecf941',
+      appId: 'wx8e261baf5c1a4e47',
       appName: '物业 | 临期项目',
       appCode: 'wy_hydqxm',
       appType: '采购意向',
       appDesc: '',
-      payAppId: 'wxd9e11d95ceecf941',
+      payAppId: 'wx8e261baf5c1a4e47',
       appIcon: '/images/logo/lqxm.png',
       themeColor: '#fa6f33',
     },
@@ -253,7 +253,7 @@ const AppInfoMaps = {
     shareInfo: {
       home: {
         title: '全国物业临期项目库,找临期商机、找人脉!',
-        img: ''
+        imageUrl: 'https://web-qmxtest.jydev.jianyu360.com/upload/2024/06/26/202406261144250066H4AqVoz.png'
       },
       search: {
         title: '查看临期项目商机!',
@@ -295,7 +295,7 @@ const AppInfoMaps = {
     shareInfo: {
       home: {
         title: '全国最全物业业主库,市场拓客神器!',
-        img: ''
+        imageUrl: 'https://web-qmxtest.jydev.jianyu360.com/upload/2024/06/26/202406261144250066H4AqVoz.png'
       },
       search: {
         title: '最全物业业主信息查询!',

+ 1 - 0
src/pages/search/result/bidding/index.config.js

@@ -1,6 +1,7 @@
 export default definePageConfig({
   navigationBarTitleText: '搜索',
   "navigationBarBackgroundColor": "#D7F6FB",
+  "disableScroll": true,
   usingComponents: {
     "van-sticky-weapp": "@/vant/sticky/index",
     "van-dropdown-menu-weapp": "@/vant/dropdown-menu/index",

+ 1 - 0
src/pages/tabbar/home/index.config.js

@@ -2,6 +2,7 @@ export default definePageConfig({
   navigationBarTitleText: '订阅',
   "navigationStyle": "custom",
   "navigationBarBackgroundColor": "#2ABED1",
+  "disableScroll": true,
   usingComponents: {
     "van-sticky-weapp": "@/vant/sticky/index",
     "van-dropdown-menu-weapp": "@/vant/dropdown-menu/index",

+ 8 - 3
src/pages/tabbar/home/index.vue

@@ -106,6 +106,7 @@ export default {
     ...mapState({
       address: state => state.user.address
     }),
+    ...mapGetters('subscribe', ['subscribeInfoLoaded']),
     ...mapGetters('user', ['nowActiveArea', 'hasArea', 'subscribeArea']),
     ...mapGetters('config', ['subFilterItem', 'searchInputPlaceholder', 'appConfig', 'searchTypeConf']),
     projectInfo () {
@@ -114,10 +115,14 @@ export default {
       })
     },
     showTip () {
-      if (this.hasArea) {
-        return false
+      if (this.subscribeInfoLoaded) {
+        if (this.hasArea) {
+          return false
+        } else {
+          return this.showSelectAreaTip
+        }
       } else {
-        return this.showSelectAreaTip
+        return false
       }
     },
     searchType() {

+ 3 - 0
src/store/modules/subscribe.js

@@ -40,6 +40,9 @@ export default {
     }
   },
   getters: {
+    subscribeInfoLoaded (state) {
+      return state.loaded
+    },
     subscribeArea(state) {
       return state.subscribeInfo.area || []
     },