Fix:3177 【商城小程序】特产,文玩,特色店铺入驻,流程又被改回去了,没有先弹出入驻须知

This commit is contained in:
linxi
2025-02-12 17:26:50 +08:00
parent 2bc586d8b1
commit 2c325ad5b1
+16 -9
View File
@@ -149,7 +149,7 @@
<text class="required">*</text> <text class="required">*</text>
</template> </template>
<template #value> <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 <CitySelect
ref="cityselect" ref="cityselect"
:defaultValue="formSupplier.area" :defaultValue="formSupplier.area"
@@ -729,8 +729,8 @@ export default {
onLoad(options) { onLoad(options) {
this.partnerId = options.partnerId || '' this.partnerId = options.partnerId || ''
const type = options.type const type = options.type
const local = uni.getStorageSync(type) const local = uni.getStorageSync(type) || {}
const local_form = uni.getStorageSync(type + '_form') const local_form = uni.getStorageSync(type + '_form') || {}
this.quaPics = uni.getStorageSync(type + '_quaPics') || [] this.quaPics = uni.getStorageSync(type + '_quaPics') || []
if(!local_form.serviceTime) { if(!local_form.serviceTime) {
local_form.serviceTime = '00:00' local_form.serviceTime = '00:00'
@@ -851,7 +851,11 @@ export default {
}) })
}, },
initInfo() { initInfo() {
getShopInfo().then(({data}) => { // 是否缺少参数区分文玩和特产?
getShopInfo().then((res) => {
const {data} = res
// console.log(res, 'initInfo--------');
// console.log(data, 'data--------');
if (data.partnerId != null) { if (data.partnerId != null) {
this.partnerId = data.partnerId this.partnerId = data.partnerId
} }
@@ -902,20 +906,23 @@ export default {
this.indexType = this.columnsType.findIndex(item => item.id === this.form.type) this.indexType = this.columnsType.findIndex(item => item.id === this.form.type)
this.form.typeText = this.columnsType[this.indexType].name 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.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) { if (data.hotelInfo.coverType === 2) {
this.form.coverVideo = data.hotelInfo.cover this.form.coverVideo = data.hotelInfo.cover
this.form.cover = '' this.form.cover = ''
} }
} }
// console.log(data.supplierInfo, 'supplierInfo--------');
if (data.supplierInfo) { if (data.supplierInfo) {
if (this.infoTitle === "特产" && data.applyType !== 1) return if (this.infoTitle === "特产" && data.applyType !== 1) return
if (this.infoTitle === "文玩" && data.applyType !== 3) return if (this.infoTitle === "文玩" && data.applyType !== 3) return
this.formSupplier = data.supplierInfo 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.typeText = this.columnsSupplierType[this.indexSupplierType].value
this.formSupplier.position = this.$forceToDecimal(this.formSupplier.longitude, 6) + ',' + this.$forceToDecimal(this.formSupplier.latitude, 6) 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, cityId: values.city.id,
areaId: values.district.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.provinceId = values.province.id
this.formSupplier.cityId = values.city.id this.formSupplier.cityId = values.city.id
this.formSupplier.areaId = values.district.id this.formSupplier.areaId = values.district.id
@@ -1031,7 +1038,7 @@ export default {
cityId: values.city.id, cityId: values.city.id,
areaId: values.district.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.provinceId = values.province.id
this.form.cityId = values.city.id this.form.cityId = values.city.id
this.form.areaId = values.district.id this.form.areaId = values.district.id