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