邓洁 : 修改细节
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user