Fix:3177 【商城小程序】特产,文玩,特色店铺入驻,流程又被改回去了,没有先弹出入驻须知
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
<text class="required">*</text>
|
||||
</template>
|
||||
<template #value>
|
||||
<view class="u-text__value" :class="{'area-item':formSupplier.area.length===0}">
|
||||
<view class="u-text__value" :class="{'area-item':formSupplier.area && formSupplier.area.length===0}">
|
||||
<CitySelect
|
||||
ref="cityselect"
|
||||
:defaultValue="formSupplier.area"
|
||||
@@ -729,8 +729,8 @@ export default {
|
||||
onLoad(options) {
|
||||
this.partnerId = options.partnerId || ''
|
||||
const type = options.type
|
||||
const local = uni.getStorageSync(type)
|
||||
const local_form = uni.getStorageSync(type + '_form')
|
||||
const local = uni.getStorageSync(type) || {}
|
||||
const local_form = uni.getStorageSync(type + '_form') || {}
|
||||
this.quaPics = uni.getStorageSync(type + '_quaPics') || []
|
||||
if(!local_form.serviceTime) {
|
||||
local_form.serviceTime = '00:00'
|
||||
@@ -851,7 +851,11 @@ export default {
|
||||
})
|
||||
},
|
||||
initInfo() {
|
||||
getShopInfo().then(({data}) => {
|
||||
// 是否缺少参数区分文玩和特产?
|
||||
getShopInfo().then((res) => {
|
||||
const {data} = res
|
||||
// console.log(res, 'initInfo--------');
|
||||
// console.log(data, 'data--------');
|
||||
if (data.partnerId != null) {
|
||||
this.partnerId = data.partnerId
|
||||
}
|
||||
@@ -902,20 +906,23 @@ export default {
|
||||
this.indexType = this.columnsType.findIndex(item => item.id === this.form.type)
|
||||
this.form.typeText = this.columnsType[this.indexType].name
|
||||
this.form.position = this.$forceToDecimal(this.form.longitude, 6) + ',' + this.$forceToDecimal(this.form.latitude, 6)
|
||||
this.form.area = `${this.form.provinceName} ${this.form.cityName} ${this.form.areaName}`
|
||||
this.form.area = `${this.form.provinceName || ''} ${this.form.cityName || ''} ${this.form.areaName || ''}`
|
||||
console.log(this.form, 'form--------');
|
||||
if (data.hotelInfo.coverType === 2) {
|
||||
this.form.coverVideo = data.hotelInfo.cover
|
||||
this.form.cover = ''
|
||||
}
|
||||
}
|
||||
// console.log(data.supplierInfo, 'supplierInfo--------');
|
||||
if (data.supplierInfo) {
|
||||
if (this.infoTitle === "特产" && data.applyType !== 1) return
|
||||
if (this.infoTitle === "文玩" && data.applyType !== 3) return
|
||||
this.formSupplier = data.supplierInfo
|
||||
this.indexSupplierType = this.columnsSupplierType.findIndex(item => item.key === this.formSupplier.subType)
|
||||
this.formSupplier.typeText = this.columnsSupplierType[this.indexSupplierType].value
|
||||
this.formSupplier.position = this.$forceToDecimal(this.formSupplier.longitude, 6) + ',' + this.$forceToDecimal(this.formSupplier.latitude, 6)
|
||||
this.formSupplier.area = `${this.formSupplier.provinceName} ${this.formSupplier.cityName} ${this.formSupplier.areaName}`
|
||||
this.formSupplier.area = `${this.formSupplier.provinceName || ''} ${this.formSupplier.cityName || ''} ${this.formSupplier.areaName || ''}`
|
||||
this.indexSupplierType = this.columnsSupplierType.findIndex(item => item.key === this.formSupplier.subType)
|
||||
// console.log(this.formSupplier);
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -1016,7 +1023,7 @@ export default {
|
||||
cityId: values.city.id,
|
||||
areaId: values.district.id
|
||||
}
|
||||
this.formSupplier.area = `${address.province} ${address.city} ${address.district}`
|
||||
this.formSupplier.area = `${address.province || ''} ${address.city || ''} ${address.district || ''}`
|
||||
this.formSupplier.provinceId = values.province.id
|
||||
this.formSupplier.cityId = values.city.id
|
||||
this.formSupplier.areaId = values.district.id
|
||||
@@ -1031,7 +1038,7 @@ export default {
|
||||
cityId: values.city.id,
|
||||
areaId: values.district.id
|
||||
}
|
||||
this.form.area = `${address.province} ${address.city} ${address.district}`
|
||||
this.form.area = `${address.province || ''} ${address.city || ''} ${address.district || ''}`
|
||||
this.form.provinceId = values.province.id
|
||||
this.form.cityId = values.city.id
|
||||
this.form.areaId = values.district.id
|
||||
|
||||
Reference in New Issue
Block a user