vhis-modal.vue
6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<template>
<div>
<div class="comp" v-if="policyDetail && showPolicy">
<div @click="handleIgnorePolicy" class="overlay"></div>
<div class="border">
<!-- <div class="close" @click="onOverLayHandler()"><img src="@/assets/images/vhis/close.png"></div> -->
<div class="modal">
<div class="modal-content">
<div class="title">{{$t('vhis.title')}}{{$t('vhis.titleAft')}}</div>
<div class="statement">
<div class="desc orange" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.desc1')}}</div>
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.desc2')}}</div>
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.desc3')}}</div>
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.desc4')}}</div>
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.desc5')}}</div>
</div>
<hr class="line1">
<div class="form ">
<div class="form-item">
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.label1')}}:</div>
<div class="value orange">
<span>{{policyDetail.policyCode}}</span>
</div>
</div>
<div class="form-item">
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.label2')}}:</div>
<div class="value orange">
<span>{{formatPolicyName(policyDetail.productCode,policyDetail.productName)}}</span>
</div>
</div>
<div class="form-item">
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.label3')}}:</div>
<div class="value">
<span class="orange">{{policyDetail.ymd1}}</span>
<span>{{$t('vhis.ymd1')}}</span>
<span class="orange">{{policyDetail.ymd2}}</span>
<span>{{$t('vhis.ymd2')}}</span>
<span class="orange">{{policyDetail.ymd3}}</span>
<span>{{$t('vhis.ymd3')}}</span>
</div>
</div>
<div class="form-item">
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.label4')}}:</div>
<div class="value orange">
<template v-if="locale == 'en'">
<span>{{policyDetail.clientNameEn ? policyDetail.clientNameEn : policyDetail.clientNameCn}}</span>
</template>
<template v-else>
<span>{{policyDetail.clientNameCn ? policyDetail.clientNameCn : policyDetail.clientNameEn}}</span>
</template>
</div>
</div>
<div class="form-item">
<div class="desc" :class="{'ltr-zero':locale == 'en'}">{{$t('vhis.label5')}}:</div>
<div class="value orange">
<template v-if="locale == 'en'">
<span>{{policyDetail.insuredNameEn ? policyDetail.insuredNameEn : policyDetail.insuredNameCn}}</span>
</template>
<template v-else>
<span>{{policyDetail.insuredNameCn ? policyDetail.insuredNameCn : policyDetail.insuredNameEn}}</span>
</template>
</div>
</div>
</div>
<div class="download">
<!-- 下载冷静期通知书 -->
<div class="border2 download-item" @click="downloadPolicy2">
<div class="cont">
<div class="icon-wrap">
<img class="icon" src="@/assets/images/vhis/vhis-download.png">
</div>
<span class="t1">{{$t('vhis.btn0')}}</span>
</div>
</div>
<!-- 下载电子保单 -->
<div class="border2 download-item" @click="downloadPolicy">
<div class="cont">
<div class="icon-wrap">
<img class="icon" src="@/assets/images/vhis/vhis-download.png">
</div>
<span class="t1">{{$t('vhis.btn1')}}</span>
</div>
</div>
</div>
<hr class="line1">
<div class="bottom-wrap ">
<!-- <div class="notice" :class="{'ltz':locale == 'en'}">
<span>{{$t('vhis.tip1')}}</span>
<span class="orange">
<template v-if="locale == 'en'">
{{policyDetail.clientNameEn ? policyDetail.clientNameEn : policyDetail.clientNameCn}}
</template>
<template v-else>
{{policyDetail.clientNameCn ? policyDetail.clientNameCn : policyDetail.clientNameEn}}
</template>
</span>
<span>{{$t('vhis.tip2')}}</span>
<span class="orange">{{policyDetail.nowYmd1}}</span>
<span>{{$t('vhis.ymd1')}}</span>
<span class="orange">{{policyDetail.nowYmd2}}</span>
<span>{{$t('vhis.ymd2')}}</span>
<span class="orange">{{policyDetail.nowYmd3}}</span>
<span>{{$t('vhis.ymd3')}}{{$t('vhis.tip3')}}</span>
</div> -->
<div class="notice">
<div class="check" @click="onCheckHandler">
<img class="notice-item-icon" :src="require('@/assets/images/clarms/'+(checked?'checked':'uncheck')+'.png')">
</div>
<div class="desc">
<div>
{{$t('vhis.notice')}}
</div>
<div class="validator">
<div class="tips-wrap" v-if="errtipsVisible">
<img src="@/assets/images/common/icon-notice.png" alt="">
<div class="tips">{{$t('vhis.agreeTips')}}</div>
</div>
</div>
</div>
</div>
<div class="btn-wrap">
<div class="submit-btn flex-center" :class="{'disable':!checked}" @click="handleConfirmPolicy">
<van-loading v-if="loading" /> {{$t('vhis.confirmNow')}}
</div>
<!-- <div class="submit-btn " @click="handleIgnorePolicy">{{$t('vhis.btn3')}}</div> -->
</div>
<div class="flex-center contact">
{{$t('vhis.tip4')}}
<span class="pointer" @click="toContact()">{{$t('vhis.tip5')}}</span>
</div>
</div>
</div>
</div>
</div>
</div>
<modal2-comp :visible="showSuccessTip" :close="()=>{showSuccessTip = false}" :content="$t('vhis.tip6')" :target="$t('vhis.tip7')" @targetCallbak="toTarget"></modal2-comp>
<modal2-comp :visible="showDownloadError" :close="()=>{showDownloadError = false}" :content="$t('glbalTips.sysError')"></modal2-comp>
</div>
</template>
<script src="./vhis-modal.js"></script>
<style lang="scss" scoped>
@import "./vhis-modal.scss";
</style>