提交 6a789e80 authored 作者: pengxiaohui's avatar pengxiaohui

bug fixes

上级 d2cbc6ae
......@@ -20,7 +20,7 @@
<div class="title">{{ item.name }}</div>
<ul class="item-sele-list">
<template v-for="(opt, sindex) in item.cases">
<li :key="sindex + 's'">
<li v-if="opt.is_show" :key="sindex + 's'">
<div class="cont" @click="selectCase(opt)">
<span>{{ opt.name }}</span>
<div class="sele-btn">选择</div>
......@@ -143,6 +143,7 @@ export default {
const param = {}
param.case_id = item.id
param.characteristic_id = item.characteristics[0] ? item.characteristics[0].id : ''
if (param.characteristic_id) {
api
.clearScore(param)
.then(response => {
......@@ -152,8 +153,7 @@ export default {
})
}
})
.finally(() => {
})
}
}
}
}
......
......@@ -79,7 +79,7 @@ export default {
data: {},
input: '',
tabIndex: 0,
tabBtnText: ['产品概括', '基金投资与净值表现', '投资本基金涉及的费用'],
tabBtnText: [],
formData: {},
pdfIsFullscreen: false,
showFullscreenBtn: false
......@@ -88,19 +88,22 @@ export default {
created() {
const caseStorageData = JSON.parse(window.sessionStorage.caseData)
this.data = caseStorageData
// console.log(this.data, '12321')
console.log('casee', this.data)
this.formData.production_detail = caseStorageData.production_detail.map(item => {
item.content = ''
return item
})
if (this.formData.production_detail.length > 0) this.tabBtnText.push('产品概括')
this.formData.fund_detail = caseStorageData.fund_detail.map(item => {
item.content = ''
return item
})
if (this.formData.fund_detail.length > 0) this.tabBtnText.push('基金投资与净值表现')
this.formData.invest_detail = caseStorageData.invest_detail.map(item => {
item.content = ''
return item
})
if (this.formData.invest_detail.length > 0) this.tabBtnText.push('投资本基金涉及的费用')
console.log(this.formData, '=1233')
},
mounted() {
......@@ -289,6 +292,7 @@ export default {
li{
cursor: pointer;
flex: 1;
max-width:33%;
text-align: center;
font-size: 18px;
color: #666666;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论