diff --git a/pages/publish/publishAddress/publishAddress.vue b/pages/publish/publishAddress/publishAddress.vue index 8d4021a..43caec5 100644 --- a/pages/publish/publishAddress/publishAddress.vue +++ b/pages/publish/publishAddress/publishAddress.vue @@ -18,23 +18,13 @@ - {{form.business}} - 请选择行业 + {{form.business}}-{{form.commercialForm}} + 请选择店铺行业与业态 - - - - {{form.commercialForm}} - 请选择业态 - - - - + { + console.log(res); + this.Karmacolumns = res.data.data.map((item) => { + return item = item.name + }) + picker.setColumnValues(1, this.Karmacolumns) + }) + + } + }, getRegionList() { var that = this uni.request({ @@ -236,17 +250,7 @@ tradeConfirm(e) { this.show2 = false this.form.business = e.value[0] - this.ClassCheckId = this.pid[e.indexs[0]] - this.$api.getClassList(this.ClassCheckId).then(res => { - // console.log(res); - this.Karmacolumns = res.data.data.map((item) => { - return item = item.name - }) - }) - }, - karmaConfirm(e) { - this.show3 = false - this.form.commercialForm = e.value[0] + this.form.commercialForm = e.value[1] }, regionConfirm(e) { this.show1 = false @@ -275,8 +279,14 @@ }) this.pid = res.data.data.map((item) => { return item = item.id + + }) + this.$api.getClassList(9).then(res => { + this.Karmacolumns = res.data.data.map((item) => { + return item = item.name + }) + this.$refs.uPicker.setColumnValues(1,this.Karmacolumns) }) - }) }, computed: { diff --git a/pages/publish/publishInvestment/publishInvestment.vue b/pages/publish/publishInvestment/publishInvestment.vue index 7597e3f..cc6b471 100644 --- a/pages/publish/publishInvestment/publishInvestment.vue +++ b/pages/publish/publishInvestment/publishInvestment.vue @@ -29,15 +29,15 @@ - - {{form.business}} - 请选择项目行业 + {{form.business}}-{{form.commercial}} + 请选择店铺行业与业态 - + { - // console.log(res); - this.Karmacolumns = res.data.data.map((item) => { - return item = item.name - }) - }) + this.form.commercial = e.value[1] }, karmaConfirm(e) { this.show3 = false - this.form.commercial = e.value[0] + }, regionConfirm(e) { this.show1 = false @@ -416,8 +411,14 @@ }) this.pid = res.data.data.map((item) => { return item = item.id + + }) + this.$api.getClassList(9).then(res => { + this.Karmacolumns = res.data.data.map((item) => { + return item = item.name + }) + this.$refs.uPicker.setColumnValues(1,this.Karmacolumns) }) - }) }, computed: {