Commit 81db4cbc by cwq0219

页面

1 parent 2a52333f
......@@ -13,7 +13,7 @@
<img
v-for="(subItem, subIndex) in formData[item.name]"
:key="subIndex"
:src="subItem"
:src="subItem.mediaUrl"
/>
</template>
<template v-else-if="Array.isArray(formData[item.name])">
......@@ -64,7 +64,7 @@ export default {
name: 'userType',
label: '商户分类'
}, {
name: 'address',
name: 'addr',
label: '商户地址'
}, {
name: 'phone',
......@@ -77,9 +77,9 @@ export default {
label: '门店照片',
type: 'photo'
}, {
name: 'carBrandList',
label: '主营品牌',
attrName: 'brandName'
name: 'carBrandListNoRepeat',
label: '主营品牌'
// attrName: 'brandName'
}, {
name: 'mainBusiness',
label: '营业范围'
......@@ -94,6 +94,8 @@ export default {
mounted() {
getUserInfo({}).then(res => {
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!