Commit e56ae3da by 杨明

fixed

1 parent 7c0124e5
......@@ -7,7 +7,10 @@
<el-form label-width="100px" :inline="true">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.format ? subItem.format(detailForm) : '-' }}</span>
<div v-if="subItem.type == 'img'" class="order-img">
<img :src="itm" alt="" v-for="(itm, idx) in formarArr(detailForm[subItem.name])" :key="idx" />
</div>
<span v-else class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.format ? subItem.format(detailForm) : '-' }}</span>
</el-form-item>
</el-row>
<template v-if="detailForm.formDescribe">
......@@ -144,6 +147,9 @@ export default {
},
methods: {
formarArr(str) {
return str.split(',')
},
async getCrowdfundingOrderConfig() {
let detailFormData = [
{
......@@ -224,6 +230,11 @@ export default {
{
label: '商品名称',
name: 'goodsName'
},
{
label: '收款凭证',
name: 'payVoucher',
type: 'img'
}
]
const res = await this.$apis.common.getCrowdfundingOrderConfig()
......@@ -321,6 +332,14 @@ export default {
.marketing.order-detail .el-form--inline .el-form-item {
margin: 0;
}
.order-img {
display: flex;
margin-top: 12px;
}
.order-img img {
width: 140px;
margin-right: 6px;
}
.marketing.order-detail .el-form--inline .el-form-item__content {
height: 30px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!