罗世杰:feat:完成店铺转让下拉框api
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
},
|
||||
created() {
|
||||
this.postlist[0]=JSON.parse(uni.getStorageSync('classList'))
|
||||
// this.postlist[0].unshift('全部')
|
||||
this.postlist[1]=JSON.parse(uni.getStorageSync('regionList'))
|
||||
},
|
||||
methods: {
|
||||
@@ -69,8 +70,6 @@
|
||||
this.activeIndex = -1;
|
||||
} else
|
||||
this.activeIndex = index
|
||||
|
||||
this.$emit('changeDrop')
|
||||
},
|
||||
cancelDrop() {
|
||||
this.activeIndex = -1;
|
||||
@@ -82,7 +81,8 @@
|
||||
}
|
||||
const query = this.$u.queryParams(this.queryInfo)
|
||||
console.log(query, 'dropquery');
|
||||
this.$emit('getQueryInfo', query)
|
||||
this.$emit('getQueryInfo', this.queryInfo)
|
||||
|
||||
return query
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
</view>
|
||||
<view class="marginLR10">
|
||||
<DropDown :getQueryInfo = "setQueryInfo" @changeDrop="getShopList"></DropDown>
|
||||
<DropDown @getQueryInfo = "getShopList"></DropDown>
|
||||
</view>
|
||||
<view class="marginLR10">
|
||||
<ShowShopList :showStyle="1" :shopInfoList="shopInfoList"></ShowShopList>
|
||||
@@ -29,15 +29,18 @@
|
||||
pageSize: 5,
|
||||
pageNum: 1,
|
||||
shopInfoList: [],
|
||||
customQuery: {
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getShopList(){
|
||||
let query = this.getQueryInfo()
|
||||
console.log("query",query);
|
||||
getShopList(q){
|
||||
let query = this.getQueryInfo(q)
|
||||
console.log("listquery",query);
|
||||
this.$api.getShopList(query).then(res => {
|
||||
this.shopInfoList = res.data.data
|
||||
console.log(this.shopInfoList);
|
||||
@@ -47,12 +50,18 @@
|
||||
})
|
||||
},
|
||||
getQueryInfo(query){
|
||||
return this.$u.queryParams({
|
||||
console.log("getQueryInfo",query);
|
||||
const q = this.$u.queryParams({
|
||||
type: 1,
|
||||
pageSize: this.pageSize,
|
||||
pageNum: this.pageNum,
|
||||
...query
|
||||
})
|
||||
this.customQuery = q
|
||||
return q
|
||||
},
|
||||
rePost(query){
|
||||
console.log("rePost",query);
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user