Procházet zdrojové kódy

fix: 企业搜索分页尺寸

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe před 4 měsíci
rodič
revize
a4452d36f5
1 změnil soubory, kde provedl 19 přidání a 11 odebrání
  1. 19 11
      apps/mobile/src/views/search/result/company/index.vue

+ 19 - 11
apps/mobile/src/views/search/result/company/index.vue

@@ -246,12 +246,13 @@ export default {
     getScopeTags() {
       const list = this.scopeTags
       if (!this.isLogin) {
-        return list.filter((item) => !item.disabled)
+        return list.filter(item => !item.disabled)
       }
       list.forEach((v) => {
         if (this.freeUser && v.vip) {
           v.disabled = true
-        } else {
+        }
+        else {
           v.disabled = false
         }
       })
@@ -276,7 +277,7 @@ export default {
           address: v.company_address,
           zhiMa: v.zhima_labels
             ? v.zhima_labels
-                .map((v) => v.zhima_value || v.zhima_name)
+                .map(v => v.zhima_value || v.zhima_name)
                 .join(',')
             : ''
         }
@@ -285,7 +286,7 @@ export default {
     },
     // 分页尺寸
     getPageSize() {
-      return this.showUpdate || !this.isLogin ? 100 : 10
+      return this.showUpdate || !this.isLogin ? 150 : 10
     }
   },
   async beforeRouteLeave(to, from, next) {
@@ -399,7 +400,8 @@ export default {
         this.listInfo.loading = true
         this.listInfo.finished = false
         this.onLoad()
-      } catch (error) {
+      }
+      catch (error) {
         console.error(error)
       }
     },
@@ -412,7 +414,8 @@ export default {
         this.$refs[name]?.toggle(false)
         this.setFilterData(name, false)
         // 查询接口
-      } catch (error) {
+      }
+      catch (error) {
         console.error(error)
       }
     },
@@ -450,9 +453,11 @@ export default {
           let str = this.conditionStrMap[k].toString()
           if (str === 'all' || str === 'A,B,C,D') {
             str = ''
-          } else if (k === 'zhiMa') {
+          }
+          else if (k === 'zhiMa') {
             str = JSON.stringify(this.conditionStrMap[k])
-          } else {
+          }
+          else {
             str = this.conditionStrMap[k].toString()
           }
           params[k] = str
@@ -470,7 +475,8 @@ export default {
             this.listInfo.finished = true
             this.listInfo.entList = []
             this.hasData = false
-          } else {
+          }
+          else {
             this.hasData = true
             this.listInfo.entList.push(...data.list)
           }
@@ -478,11 +484,13 @@ export default {
           if (this.listInfo.entList.length >= this.listInfo.total) {
             this.listInfo.finished = true
           }
-        } else {
+        }
+        else {
           this.listInfo.finished = true
           this.hasData = false
         }
-      } else {
+      }
+      else {
         this.listInfo.finished = true
         this.hasData = false
       }