邓洁 : 注释log
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
</u-form-item>
|
||||
<u-form-item label="行业" label-position="top" border-bottom="true" class="picker" label-width="auto"
|
||||
prop="business">
|
||||
<text @click="show2 = true" class="checkedtext" v-if="form.business">{{form.business}}-{{form.commercialForm}}</text>
|
||||
<text @click="show2 = true" class="checkedtext"
|
||||
v-if="form.business">{{form.business}}-{{form.commercialForm}}</text>
|
||||
<text @click="show2 = true" class="checktext" v-else>请选择店铺行业与业态</text>
|
||||
<view class="arrow-icon">
|
||||
<u-icon name="arrow-right" size="30px" @click="show2 = true"></u-icon>
|
||||
@@ -154,9 +155,9 @@
|
||||
},
|
||||
methods: {
|
||||
getDetail(type, id) {
|
||||
console.log('type, id', type, id);
|
||||
// console.log('type, id', type, id);
|
||||
this.$api.getShopDetail(type, id).then(res => {
|
||||
console.log(',re', res);
|
||||
// console.log(',re', res);
|
||||
const data = res.data.data
|
||||
if (res.data.code == 1) {
|
||||
this.form = {
|
||||
@@ -176,7 +177,7 @@
|
||||
})
|
||||
},
|
||||
preview(e) {
|
||||
console.log('预览', e);
|
||||
// console.log('预览', e);
|
||||
},
|
||||
handleSearchAddress() {
|
||||
uni.navigateTo({
|
||||
@@ -185,9 +186,9 @@
|
||||
},
|
||||
submit() {
|
||||
this.$refs.uForm.validate().then(res => {
|
||||
console.log("提交表单信息:", this.form, this.form.id)
|
||||
// console.log("提交表单信息:", this.form, this.form.id)
|
||||
this.$api.publishAddress(this.form).then(res => {
|
||||
console.log('发布找店地址', res);
|
||||
// console.log('发布找店地址', res);
|
||||
if (res.data.code == 1) {
|
||||
uni.$u.toast(res.data.msg)
|
||||
uni.reLaunch({
|
||||
@@ -198,7 +199,7 @@
|
||||
}
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.log("失败信息:", JSON.stringify(errors))
|
||||
// console.log("失败信息:", JSON.stringify(errors))
|
||||
// uni.$u.toast('校验失败')
|
||||
})
|
||||
},
|
||||
@@ -211,29 +212,29 @@
|
||||
}
|
||||
},
|
||||
changeHandler(e) {
|
||||
const {
|
||||
columnIndex,
|
||||
value,
|
||||
values, // values为当前变化列的数组内容
|
||||
index,
|
||||
// 微信小程序无法将picker实例传出来,只能通过ref操作
|
||||
picker = this.$refs.uPicker
|
||||
} = e
|
||||
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
||||
console.log(e);
|
||||
if (columnIndex === 0) {
|
||||
// picker为选择器this实例,变化第二列对应的选项
|
||||
this.ClassCheckId = this.pid[index]
|
||||
this.$api.getClassList(this.ClassCheckId).then(res => {
|
||||
console.log(res);
|
||||
this.Karmacolumns = res.data.data.map((item) => {
|
||||
return item = item.name
|
||||
})
|
||||
picker.setColumnValues(1, this.Karmacolumns)
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
const {
|
||||
columnIndex,
|
||||
value,
|
||||
values, // values为当前变化列的数组内容
|
||||
index,
|
||||
// 微信小程序无法将picker实例传出来,只能通过ref操作
|
||||
picker = this.$refs.uPicker
|
||||
} = e
|
||||
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
||||
// console.log(e);
|
||||
if (columnIndex === 0) {
|
||||
// picker为选择器this实例,变化第二列对应的选项
|
||||
this.ClassCheckId = this.pid[index]
|
||||
this.$api.getClassList(this.ClassCheckId).then(res => {
|
||||
// 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({
|
||||
@@ -243,7 +244,7 @@
|
||||
that.regionColumns = [res.data.result[0].map(item => item.fullname)]
|
||||
},
|
||||
fail(err) {
|
||||
console.log('请求区域失败:', err);
|
||||
// console.log('请求区域失败:', err);
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -262,7 +263,7 @@
|
||||
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log('修改找店地址', options);
|
||||
// console.log('修改找店地址', options);
|
||||
if (options.item) {
|
||||
console.log('修改');
|
||||
if (options.id) {
|
||||
@@ -279,13 +280,13 @@
|
||||
})
|
||||
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)
|
||||
})
|
||||
this.$refs.uPicker.setColumnValues(1, this.Karmacolumns)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user