Commit 81db4cbc by cwq0219

页面

1 parent 2a52333f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<img <img
v-for="(subItem, subIndex) in formData[item.name]" v-for="(subItem, subIndex) in formData[item.name]"
:key="subIndex" :key="subIndex"
:src="subItem" :src="subItem.mediaUrl"
/> />
</template> </template>
<template v-else-if="Array.isArray(formData[item.name])"> <template v-else-if="Array.isArray(formData[item.name])">
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
name: 'userType', name: 'userType',
label: '商户分类' label: '商户分类'
}, { }, {
name: 'address', name: 'addr',
label: '商户地址' label: '商户地址'
}, { }, {
name: 'phone', name: 'phone',
...@@ -77,9 +77,9 @@ export default { ...@@ -77,9 +77,9 @@ export default {
label: '门店照片', label: '门店照片',
type: 'photo' type: 'photo'
}, { }, {
name: 'carBrandList', name: 'carBrandListNoRepeat',
label: '主营品牌', label: '主营品牌'
attrName: 'brandName' // attrName: 'brandName'
}, { }, {
name: 'mainBusiness', name: 'mainBusiness',
label: '营业范围' label: '营业范围'
...@@ -94,6 +94,8 @@ export default { ...@@ -94,6 +94,8 @@ export default {
mounted() { mounted() {
getUserInfo({}).then(res => { getUserInfo({}).then(res => {
this.formData = res.detail this.formData = res.detail
this.formData.addr = (this.formData.provinceName || '') + (this.formData.cityName || '') + (this.formData.areaName || '') + (this.formData.address || '')
this.formData.carBrandListNoRepeat = [...new Set(this.formData.carBrandList.map(item => item.brandName))]
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!