合并鼎诚919

This commit is contained in:
邓晓坤
2019-09-19 18:04:30 +08:00
parent 1c4edae07f
commit d5ca72a7fc
73 changed files with 3805 additions and 2281 deletions

View File

@@ -2,7 +2,7 @@
<template>
<div class="proposal-list-container">
<van-sticky>
<van-tabs :line-width="45" title-inactive-color="#999999" v-model="active" @change="tabChange" title-active-color="#E9332E">
<van-tabs :line-width="45" title-inactive-color="#999999" v-model="active" @change="tabChange" title-active-color="#4fc6b3">
<van-tab title="制作中" name="1"></van-tab>
<van-tab title="已制作" name="2"></van-tab>
<van-tab title="转投保" name="3"></van-tab>
@@ -50,7 +50,7 @@
</div>
<div class="mv10 pl45 flex" v-for="(addtion, addtionIndex) in mainRisk.addtion" :key="addtionIndex">
<span class="mr10" style="flex-shrink: 0">
<van-tag mark color="#DDF2EF" text-color="#E9332E">附加</van-tag>
<van-tag mark color="#DDF2EF" text-color="#4FC6B3">附加</van-tag>
</span>
<span class="fs13">{{ addtion.riskName }}</span>
</div>
@@ -59,7 +59,7 @@
<div class="flex fs15 c-gray-dark justify-content-s mt5 mb5">
<span class="c-gray-darker fwb">首期总保费</span>
<span class="yellow fwb">{{ item.firstPrem }}</span>
<span class="yellow fwb">{{ item.firstPrem | moneyFormat }}</span>
</div>
<div class="text-right pv5">
<van-button v-if="active == 2" round size="small" @click="toInsurance(item)" class="mr5" type="danger">转投保</van-button>
@@ -72,7 +72,7 @@
</div>
</div>
<div v-else class="text-center">
<img class="mt40 w200" src="@/assets/images/pic_page-non.png" />
<img class="mt40 w250" src="@/assets/images/pic_page-non.png" />
<div class="fs17 c-gray-dark mt40">暂无建议书</div>
</div>
</van-list>
@@ -109,7 +109,7 @@ export default {
}
},
created() {
document.body.style.backgroundColor = '#F5F5F5'
// document.body.style.backgroundColor = '#F5F5F5'
},
mounted() {
this.loadMore()
@@ -127,7 +127,6 @@ export default {
getList(request).then(res => {
if (res.result == '0') {
this.isSuccess = true
console.log(res)
let content = res.content
this.morePage++
let list = content.list
@@ -139,6 +138,7 @@ export default {
list = formatRiskList(list, 'insuredDTOs', 'riskDTOLst') //格式化数据为本地显示结果
this.proposalList = this.proposalList.concat(list)
console.log(this.proposalList.length)
if (this.proposalList.length == 0) {
this.isSuccess = false
}
@@ -167,6 +167,8 @@ export default {
this.morePage = 1
this.active = index
this.proposalList = []
;[this.loading, this.finished] = [true, false]
this.finishedText = '正在加载...'
this.loadMore()
},
@@ -184,7 +186,7 @@ export default {
className: 'dialog-delete',
title: '提示',
message: '确认删除建议书?',
cancelButtonColor: '#E9332E',
cancelButtonColor: '#4FC6B3',
confirmButtonColor: '#FFFFFF'
})
.then(() => {
@@ -192,8 +194,8 @@ export default {
if (res.result == '0') {
this.proposalList = []
this.morePage = 1
;[this.loading, this.finished] = [true, false]
this.loadMore()
;[this.loading, this.finished] = [false, false]
}
})
})