소스 검색

店铺搜索

huangb 7 년 전
부모
커밋
c8b9cd773d
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      components/provider/Suppliers.vue

+ 4 - 1
components/provider/Suppliers.vue

@@ -105,11 +105,12 @@ export default {
     }
   },
   methods: {
-    search (obj) {
+    search (obj, page) {
       this.pageParams.type = this.storeType === 'factory' ? 'ORIGINAL_FACTORY' : 'AGENCY-DISTRIBUTION'
       this.pageParams.page = 1
       this.pageParams.keyword = obj.keyword === '' ? null : obj.keyword
       this.pageParams.field = obj.type && obj.type !== 'store' ? obj.type : ''
+      this.keyword = this.pageParams.keyword
       this.pageCommodity(this.pageParams)
     },
     showLittleDescription (description) {
@@ -157,6 +158,8 @@ export default {
       } else {
         this.storeTypes = ''
       }
+      this.keyword = ''
+      this.pageParams.keyword = ''
       localStorage.setItem('pageChange', 'true')
       this.handleCurrentChange(1)
       // if (to.fullPath)