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

bug fixes

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