diff --git a/components/DropDown/DropDown.vue b/components/DropDown/DropDown.vue index 79e1424..29e8fe5 100644 --- a/components/DropDown/DropDown.vue +++ b/components/DropDown/DropDown.vue @@ -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 } } diff --git a/pages/shopTransfer/shopTransfer.vue b/pages/shopTransfer/shopTransfer.vue index 3705b1e..b92410b 100644 --- a/pages/shopTransfer/shopTransfer.vue +++ b/pages/shopTransfer/shopTransfer.vue @@ -7,7 +7,7 @@ - + @@ -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() {