Ver código fonte

优化小程序

yanj 3 meses atrás
pai
commit
c387b640ff
3 arquivos alterados com 5 adições e 5 exclusões
  1. 2 2
      pages/exhibitor/exhibit.vue
  2. 2 2
      pages/exhibitor/index.vue
  3. 1 1
      store/getters.js

+ 2 - 2
pages/exhibitor/exhibit.vue

@@ -142,7 +142,7 @@
 					product_poll_show: 0
 				},
 				total: 0,
-				baseUrl: 'https://mp-test-onlinecatelogue.matchexpo.cn',
+				baseUrl: this.$store.getters.baseApi,
 				adInfo: {
 					ad_file: ''
 				}
@@ -156,7 +156,7 @@
       this.getList()
       uni.$on('refreshData', (val) => {
         if (val === 'product') {
-          this.getList()
+          this.searchList()
         }
       })
 		},

+ 2 - 2
pages/exhibitor/index.vue

@@ -154,7 +154,7 @@ export default {
         product_poll_show: 0
       },
       total: 0,
-      baseUrl: 'https://mp-test-onlinecatelogue.matchexpo.cn',
+      baseUrl: this.$store.getters.baseApi,
       adInfo: {
         ad_file: ''
       }
@@ -169,7 +169,7 @@ export default {
     this.getExhibitorsList()
     uni.$on('refreshData', (val) => {
       if (val === 'exhibitor') {
-        this.getExhibitorsList()
+        this.searchExhibitorsList()
       }
     })
   },

+ 1 - 1
store/getters.js

@@ -8,6 +8,6 @@ const getters = {
   ossDomain: state => state.app.ossDomain,
   locale: state => state.app.locale,
   version: state => process.env.VERSION ?? '0.02',
-  website_url: state => 'https://mp-test-onlinecatelogue.matchexpo.cn'
+  website_url: state => process.env.WEBSITE
 }
 export default getters