shenjj пре 7 година
родитељ
комит
9f08173a51

+ 1 - 0
pages/mobile/center/user/collect/store.vue

@@ -131,6 +131,7 @@
     methods: {
       async goBack() {
         if (this.searchShow === true) {
+          //这里 是测试语句
           this.searchShow = false
           this.keyword = ''
           let { data } = await this.$http.get(`/trade/storeFocus/page`, {params: { count: 10, page: 1 }})

+ 4 - 3
pages/mobile/center/vendor/attentionBus.vue

@@ -51,7 +51,7 @@
       //   ])
       // },
       async asyncData({store}) {
-        let {data} = await axios.get('/produce/kindConcern/kindList', { params: {keyword: '', count: 20, page: 1, type: 'yes', enUU: store.state.option.user.data.enterprise.uu} })
+        let {data} = await axios.get('/produce/kindConcern/kindList', { params: {keyword: '', count: 20, page: 1, enUU: store.state.option.user.data.enterprise.uu} })
         return {
           attentionList: data
         }
@@ -84,7 +84,7 @@
       // },
       computed: {
         allPage() {
-          return Math.ceil(this.attentionList.totalElements / 10)
+          return Math.ceil(this.attentionList.totalElements / 20)
         },
         getkindConcernList() {
           return this.$store.state.product.component.collectCode
@@ -140,8 +140,9 @@
         },
        async getAttentionListArray(page) {
           this.isSearchSearchingMore = true
-          let {data} = await axios.get('/produce/kindConcern/kindList', { params: {keyword: '', count: 20, page: page, type: 'yes', enUU: this.$store.state.option.user.data.enterprise.uu} })
+          let {data} = await axios.get('/produce/kindConcern/kindList', { params: {keyword: '', count: 20, page: page, enUU: this.$store.state.option.user.data.enterprise.uu} })
           this.attentionList.content = [...this.attentionList.content, ...data.content]
+          this.isSearchSearchingMore = false
           // if (this.activeType === 'attention') {
           //   this.$store.dispatch('product/getUserCollectCode', {keyword: this.keyword, count: 20, page: page, enUU: this.$store.state.option.user.data.enterprise.uu})
           // } else {