|
@@ -121,7 +121,6 @@ export default {
|
|
|
if (curData.park_type) curData.park_type = curData.park_type.split(',')
|
|
|
if (curData.metro_line) curData.metro_line = curData.metro_line.split(',')
|
|
|
if (curData.metro_type) curData.metro_type = curData.metro_type.split(',')
|
|
|
- curData.pri_image = `${curData.domain}${curData.pri_image}?url=${curData.pri_image}`
|
|
|
this.cObj = curData || {}
|
|
|
let productData = curData.area_data || []
|
|
|
productData.map(one =>{
|
|
@@ -131,12 +130,6 @@ export default {
|
|
|
houseTypeList.map(two => {
|
|
|
two.house_type_name = arrToObj(this.$dictData.house_type)[two.house_type_val]
|
|
|
one.house_type_list_val.push(String(two.house_type_val))
|
|
|
- const areaList = two.area_list || []
|
|
|
- areaList.map(three =>{
|
|
|
- if (three.img_url.indexOf(curData.domain) === -1) {
|
|
|
- three.img_url = `${curData.domain}${three.img_url}?url=${three.img_url}`
|
|
|
- }
|
|
|
- })
|
|
|
})
|
|
|
})
|
|
|
this.productData = [...productData]
|
|
@@ -314,16 +307,6 @@ export default {
|
|
|
newForm.latitude = this.cObj.latitude
|
|
|
if (!newForm.longitude) return this.$msgw('请选择经度!')
|
|
|
else if (!newForm.latitude) return this.$msgw('请选择纬度!')
|
|
|
- if (newForm.pri_image && newForm.pri_image.indexOf('?') > -1) {
|
|
|
- const imgArr = newForm.pri_image.split('?')
|
|
|
- const queryArr = imgArr[1].split('&')
|
|
|
- queryArr.forEach(q =>{
|
|
|
- const curQArr = q.split('=')
|
|
|
- if (curQArr[0] === 'url') {
|
|
|
- newForm.pri_image = curQArr[1]
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
if (newForm.house_type) newForm.house_type = newForm.house_type.join(',')
|
|
|
if (newForm.product_type) newForm.product_type = newForm.product_type.join(',')
|
|
|
if (newForm.hospital_type) newForm.hospital_type = newForm.hospital_type.join(',')
|
|
@@ -334,25 +317,6 @@ export default {
|
|
|
let productData = this.productData || []
|
|
|
newForm.custom_tag = newForm.custom_tag.replace(',', ',')
|
|
|
newForm.stairs_rate = newForm.stairs_rate.replace(',', ',')
|
|
|
-
|
|
|
- productData.map(one => {
|
|
|
- const houseTypeList = one.house_type_list || []
|
|
|
- houseTypeList.map(two => {
|
|
|
- const areaList = two.area_list || []
|
|
|
- areaList.map(three =>{
|
|
|
- if (three.img_url && three.img_url.indexOf('?') > -1) {
|
|
|
- const imgArr = three.img_url.split('?')
|
|
|
- const queryArr = imgArr[1].split('&')
|
|
|
- queryArr.forEach(q =>{
|
|
|
- const curQArr = q.split('=')
|
|
|
- if (curQArr[0] === 'url') {
|
|
|
- three.img_url = curQArr[1]
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
if (productData.length === 0) {
|
|
|
newForm.area_data = ''
|
|
|
} else {
|