邓洁 : 修改细节
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<view class="bug-fix"></view>
|
||||
<view class="search-box">
|
||||
<view class="search-box-input">
|
||||
<u-input placeholder="热门搜索" placeholder-style="color: #969696" prefixIcon="search"
|
||||
prefixIconStyle="font-size: 24px;color: #909399;" border="true">
|
||||
<u-input placeholder="请输入店铺名称进行搜索" placeholder-style="color: #969696" prefixIcon="search"
|
||||
prefixIconStyle="font-size: 24px;color: #909399;" border="true" @change="getInput">
|
||||
</u-input>
|
||||
</view>
|
||||
</view>
|
||||
@@ -69,6 +69,22 @@
|
||||
this.getShopList()
|
||||
},
|
||||
methods: {
|
||||
getInput(val){
|
||||
console.log('搜索值',val);
|
||||
if(this.pageNum!==1){
|
||||
this.pageNum=1
|
||||
}
|
||||
const q = this.$u.queryParams({
|
||||
type: 1,
|
||||
pageSize: this.pageSize,
|
||||
pageNum: this.pageNum,
|
||||
kw:val
|
||||
})
|
||||
this.$api.getShopList(q).then(res => {
|
||||
this.shopListLength = res.data.data.length
|
||||
this.shopInfoList = res.data.data
|
||||
})
|
||||
},
|
||||
getShopList(q, type) {
|
||||
let query = {}
|
||||
if (type == "refresh") {
|
||||
|
||||
Reference in New Issue
Block a user