邓洁 : 注释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)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@@ -31,7 +31,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.commercial}}</text>
|
||||
<text @click="show2 = true" class="checkedtext"
|
||||
v-if="form.business">{{form.business}}-{{form.commercial}}</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>
|
||||
@@ -167,7 +168,7 @@
|
||||
this[`fileList${event.name}`].splice(event.index, 1)
|
||||
},
|
||||
preview(e) {
|
||||
console.log('预览', e);
|
||||
// console.log('预览', e);
|
||||
},
|
||||
// 新增图片
|
||||
async afterRead(event) {
|
||||
@@ -182,9 +183,9 @@
|
||||
})
|
||||
})
|
||||
for (let i = 0; i < lists.length; i++) {
|
||||
console.log('lists[i].url', lists[i].url);
|
||||
// console.log('lists[i].url', lists[i].url);
|
||||
const result = await this.uploadFilePromise(lists[i].url)
|
||||
console.log('result', result);
|
||||
// console.log('result', result);
|
||||
let item = this[`fileList${event.name}`][fileListLen]
|
||||
this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
|
||||
status: 'success',
|
||||
@@ -238,9 +239,9 @@
|
||||
region: this.form.region.split('-')[0],
|
||||
images: temp.join(',')
|
||||
}
|
||||
console.log("项目招商:", data)
|
||||
// console.log("项目招商:", data)
|
||||
this.$api.publishInvestment(data).then(res => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
if (res.data.code == 1) {
|
||||
uni.$u.toast(res.data.msg)
|
||||
uni.reLaunch({
|
||||
@@ -251,7 +252,7 @@
|
||||
}
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.log("失败信息:" + JSON.stringify(errors))
|
||||
// console.log("失败信息:" + JSON.stringify(errors))
|
||||
// uni.$u.toast('校验失败')
|
||||
})
|
||||
},
|
||||
@@ -309,12 +310,12 @@
|
||||
that1.$refs.regionPicker.setColumnValues(1, that1.regionSecondColumns)
|
||||
},
|
||||
fail(err) {
|
||||
console.log('请求区域失败:', err);
|
||||
// console.log('请求区域失败:', err);
|
||||
}
|
||||
})
|
||||
},
|
||||
fail(err) {
|
||||
console.log('请求区域失败:', err);
|
||||
// console.log('请求区域失败:', err);
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -345,16 +346,16 @@
|
||||
},
|
||||
karmaConfirm(e) {
|
||||
this.show3 = false
|
||||
|
||||
|
||||
},
|
||||
regionConfirm(e) {
|
||||
this.show1 = false
|
||||
this.form.region = e.value[0] + '-' + e.value[1]
|
||||
},
|
||||
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 = {
|
||||
@@ -411,13 +412,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)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
this[`fileList${event.name}`].splice(event.index, 1)
|
||||
},
|
||||
preview(e) {
|
||||
console.log('预览', e);
|
||||
// console.log('预览', e);
|
||||
},
|
||||
// 新增图片
|
||||
async afterRead(event) {
|
||||
@@ -196,9 +196,9 @@
|
||||
})
|
||||
})
|
||||
for (let i = 0; i < lists.length; i++) {
|
||||
console.log('lists[i].url', lists[i].url);
|
||||
// console.log('lists[i].url', lists[i].url);
|
||||
const result = await this.uploadFilePromise(lists[i].url)
|
||||
console.log('result', result);
|
||||
// console.log('result', result);
|
||||
let item = this[`fileList${event.name}`][fileListLen]
|
||||
this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
|
||||
status: 'success',
|
||||
@@ -252,9 +252,9 @@
|
||||
region: this.form.region.split('-')[0],
|
||||
images: temp.join(',')
|
||||
}
|
||||
console.log("提交表单信息:", data)
|
||||
// console.log("提交表单信息:", data)
|
||||
this.$api.publishRent(data).then(res => {
|
||||
console.log('发布店铺出租', res);
|
||||
// console.log('发布店铺出租', res);
|
||||
if (res.data.code == 1) {
|
||||
uni.$u.toast(res.data.msg)
|
||||
uni.reLaunch({
|
||||
@@ -350,7 +350,7 @@
|
||||
url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + that.form.region + value + '&key=' +
|
||||
that.$api.key,
|
||||
success(res) {
|
||||
console.log('diz', res.data.result.location);
|
||||
// console.log('diz', res.data.result.location);
|
||||
if (res.data.message == "query ok") {
|
||||
// console.log('lat', res.data.result.location.lat);
|
||||
that.form.latitude = res.data.result.location.lat
|
||||
@@ -375,12 +375,12 @@
|
||||
picker = this.$refs.uPicker
|
||||
} = e
|
||||
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
||||
console.log(e);
|
||||
// console.log(e);
|
||||
if (columnIndex === 0) {
|
||||
// picker为选择器this实例,变化第二列对应的选项
|
||||
this.ClassCheckId = this.pid[index]
|
||||
this.$api.getClassList(this.ClassCheckId).then(res => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
this.Karmacolumns = res.data.data.map((item) => {
|
||||
return item = item.name
|
||||
})
|
||||
@@ -402,9 +402,9 @@
|
||||
this.form.region = e.value[0] + '-' + e.value[1]
|
||||
},
|
||||
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 = {
|
||||
@@ -447,7 +447,7 @@
|
||||
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log('修改出租', options);
|
||||
// console.log('修改出租', options);
|
||||
if (options.item) {
|
||||
console.log('修改');
|
||||
if (options.id) {
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
this[`fileList${event.name}`].splice(event.index, 1)
|
||||
},
|
||||
preview(e) {
|
||||
console.log('预览', e);
|
||||
// console.log('预览', e);
|
||||
},
|
||||
// 新增图片
|
||||
async afterRead(event) {
|
||||
@@ -233,12 +233,12 @@
|
||||
if (this.fileList1.length > 0) {
|
||||
this.fileList1.map(item => {
|
||||
const url = item.url
|
||||
console.log('url', url, this.$api.imgUrl);
|
||||
// console.log('url', url, this.$api.imgUrl);
|
||||
temp.push(url.replace(this.$api.imgUrl, ''))
|
||||
|
||||
})
|
||||
}
|
||||
console.log('images---', temp.join(','));
|
||||
// console.log('images---', temp.join(','));
|
||||
if (this.form.latitude && this.form.longitude) {
|
||||
console.log('经纬度都存在');
|
||||
} else {
|
||||
@@ -252,9 +252,9 @@
|
||||
region: this.form.region.split('-')[0],
|
||||
images: temp.join(',')
|
||||
}
|
||||
console.log('提交表单信息', data);
|
||||
// console.log('提交表单信息', data);
|
||||
this.$api.publishTransfer(data).then(res => {
|
||||
console.log('发布店铺转让', res);
|
||||
// console.log('发布店铺转让', res);
|
||||
if (res.data.code == 1) {
|
||||
uni.$u.toast(res.data.msg)
|
||||
uni.reLaunch({
|
||||
@@ -351,7 +351,7 @@
|
||||
url: 'https://apis.map.qq.com/ws/geocoder/v1/?address=' + that.form.region + value + '&key=' +
|
||||
that.$api.key,
|
||||
success(res) {
|
||||
console.log('地址转经纬度', that.form.region, res.data);
|
||||
// console.log('地址转经纬度', that.form.region, res.data);
|
||||
if (res.data.message == "query ok") {
|
||||
// console.log('lat', res.data.result.location.lat);
|
||||
that.form.latitude = res.data.result.location.lat
|
||||
@@ -376,12 +376,12 @@
|
||||
picker = this.$refs.uPicker
|
||||
} = e
|
||||
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
||||
console.log(e);
|
||||
// console.log(e);
|
||||
if (columnIndex === 0) {
|
||||
// picker为选择器this实例,变化第二列对应的选项
|
||||
this.ClassCheckId = this.pid[index]
|
||||
this.$api.getClassList(this.ClassCheckId).then(res => {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
this.Karmacolumns = res.data.data.map((item) => {
|
||||
return item = item.name
|
||||
})
|
||||
@@ -403,9 +403,9 @@
|
||||
this.form.region = e.value[0] + '-' + e.value[1]
|
||||
},
|
||||
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 = {
|
||||
@@ -447,7 +447,7 @@
|
||||
this.$refs.uForm.setRules(this.rules)
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log('修改转让', options);
|
||||
// console.log('修改转让', options);
|
||||
if (options.item) {
|
||||
console.log('修改');
|
||||
if (options.id) {
|
||||
|
||||
Reference in New Issue
Block a user