邓洁 : 修改细节

This commit is contained in:
dengj
2023-11-21 11:23:07 +08:00
parent b7ffbd477d
commit 37969e1d2a
10 changed files with 150 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="root">
<InputAndSwiper></InputAndSwiper>
<InputAndSwiper @getQueryInfo="getInput"></InputAndSwiper>
<view>
<view class="dropdown-bug">
@@ -63,6 +63,22 @@
}
},
methods: {
getInput(val){
console.log('搜索值',val);
if(this.pageNum!==1){
this.pageNum=1
}
const q = this.$u.queryParams({
type: 2,
pageSize: this.pageSize,
pageNum: this.pageNum,
kw:val
})
this.$api.getShopList(q).then(res => {
this.searchListLength = res.data.data.length
this.searchInfoList = res.data.data
})
},
getShopList(q, type) {
let query = {}
if (type == "refresh") {