90a1c4d5 by joe

1

1 parent b47dc917
Showing 34 changed files with 97 additions and 27 deletions
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
12 12
13 <![endif]--> 13 <![endif]-->
14 <title>平安人寿保险官网</title> 14 <title>平安人寿保险官网</title>
15 <link href="static/js/0.1575985736565.js" rel="prefetch"><link href="static/js/1.1575985736565.js" rel="prefetch"><link href="static/js/10.1575985736565.js" rel="prefetch"><link href="static/js/11.1575985736565.js" rel="prefetch"><link href="static/js/12.1575985736565.js" rel="prefetch"><link href="static/js/13.1575985736565.js" rel="prefetch"><link href="static/js/14.1575985736565.js" rel="prefetch"><link href="static/js/15.1575985736565.js" rel="prefetch"><link href="static/js/16.1575985736565.js" rel="prefetch"><link href="static/js/17.1575985736565.js" rel="prefetch"><link href="static/js/18.1575985736565.js" rel="prefetch"><link href="static/js/19.1575985736565.js" rel="prefetch"><link href="static/js/2.1575985736565.js" rel="prefetch"><link href="static/js/20.1575985736565.js" rel="prefetch"><link href="static/js/21.1575985736565.js" rel="prefetch"><link href="static/js/22.1575985736565.js" rel="prefetch"><link href="static/js/3.1575985736565.js" rel="prefetch"><link href="static/js/4.1575985736565.js" rel="prefetch"><link href="static/js/5.1575985736565.js" rel="prefetch"><link href="static/js/6.1575985736565.js" rel="prefetch"><link href="static/js/7.1575985736565.js" rel="prefetch"><link href="static/js/8.1575985736565.js" rel="prefetch"><link href="static/js/9.1575985736565.js" rel="prefetch"><link href="static/js/app.1575985736565.js" rel="preload" as="script"></head> 15 <link href="static/js/0.1576033593271.js" rel="prefetch"><link href="static/js/1.1576033593271.js" rel="prefetch"><link href="static/js/10.1576033593271.js" rel="prefetch"><link href="static/js/11.1576033593271.js" rel="prefetch"><link href="static/js/12.1576033593271.js" rel="prefetch"><link href="static/js/13.1576033593271.js" rel="prefetch"><link href="static/js/14.1576033593271.js" rel="prefetch"><link href="static/js/15.1576033593271.js" rel="prefetch"><link href="static/js/16.1576033593271.js" rel="prefetch"><link href="static/js/17.1576033593271.js" rel="prefetch"><link href="static/js/18.1576033593271.js" rel="prefetch"><link href="static/js/19.1576033593271.js" rel="prefetch"><link href="static/js/2.1576033593271.js" rel="prefetch"><link href="static/js/20.1576033593271.js" rel="prefetch"><link href="static/js/21.1576033593271.js" rel="prefetch"><link href="static/js/22.1576033593271.js" rel="prefetch"><link href="static/js/3.1576033593271.js" rel="prefetch"><link href="static/js/4.1576033593271.js" rel="prefetch"><link href="static/js/5.1576033593271.js" rel="prefetch"><link href="static/js/6.1576033593271.js" rel="prefetch"><link href="static/js/7.1576033593271.js" rel="prefetch"><link href="static/js/8.1576033593271.js" rel="prefetch"><link href="static/js/9.1576033593271.js" rel="prefetch"><link href="static/js/app.1576033593271.js" rel="preload" as="script"></head>
16 16
17 <body> 17 <body>
18 <noscript> 18 <noscript>
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
22 <div id="app"></div> 22 <div id="app"></div>
23 <!-- built files will be auto injected --> 23 <!-- built files will be auto injected -->
24 <script src="./js/unionrsa.js"></script> 24 <script src="./js/unionrsa.js"></script>
25 <script type="text/javascript" src="static/js/app.1575985736565.js"></script></body> 25 <script type="text/javascript" src="static/js/app.1576033593271.js"></script></body>
26 26
27 </html> 27 </html>
......
...@@ -61,7 +61,8 @@ module.exports = { ...@@ -61,7 +61,8 @@ module.exports = {
61 path: "", 61 path: "",
62 list: [{ 62 list: [{
63 name: "VHIS - Standard Plan", 63 name: "VHIS - Standard Plan",
64 path: "/empty" 64 path: "",
65 value: "gotoVHIS"
65 }, 66 },
66 { 67 {
67 name: "Dividen Life Insurance", 68 name: "Dividen Life Insurance",
......
...@@ -62,7 +62,8 @@ module.exports = { ...@@ -62,7 +62,8 @@ module.exports = {
62 path: "", 62 path: "",
63 list: [{ 63 list: [{
64 name: "VHIS", 64 name: "VHIS",
65 path: "/empty" 65 path: "",
66 value: "gotoVHIS"
66 }, 67 },
67 { 68 {
68 name: "分紅終身", 69 name: "分紅終身",
......
...@@ -61,13 +61,13 @@ module.exports = { ...@@ -61,13 +61,13 @@ module.exports = {
61 path: "", 61 path: "",
62 list: [{ 62 list: [{
63 name: "自愿医保基本计划", 63 name: "自愿医保基本计划",
64 path: "/empty" 64 path: "",
65 value: "gotoVHIS"
65 }, 66 },
66 { 67 {
67 name: "分红终身寿险", 68 name: "分红终身寿险",
68 path: "/product" 69 path: "/product"
69 } 70 }]
70 ]
71 }, 71 },
72 { 72 {
73 name: "客户服务", 73 name: "客户服务",
...@@ -697,6 +697,8 @@ module.exports = { ...@@ -697,6 +697,8 @@ module.exports = {
697 menu7: "投诉受理", 697 menu7: "投诉受理",
698 menu8: "常用表格", 698 menu8: "常用表格",
699 insuranceQuery: { 699 insuranceQuery: {
700 modify : "修改",
701
700 InsurantNumber: "保单号码", 702 InsurantNumber: "保单号码",
701 Insurant: "受保人", 703 Insurant: "受保人",
702 InsurantName: "险种名称", 704 InsurantName: "险种名称",
......
...@@ -7,6 +7,8 @@ import { ...@@ -7,6 +7,8 @@ import {
7 httpPost 7 httpPost
8 } from '@/api/fetch-api.js' 8 } from '@/api/fetch-api.js'
9 9
10 import { gotoVHIS } from '@/utils/biz.js';
11
10 export default { 12 export default {
11 name: "DropDownList", 13 name: "DropDownList",
12 data() { 14 data() {
...@@ -18,25 +20,25 @@ export default { ...@@ -18,25 +20,25 @@ export default {
18 props: { 20 props: {
19 type: { 21 type: {
20 type: String, 22 type: String,
21 default () { 23 default() {
22 return "nav"; 24 return "nav";
23 } 25 }
24 }, 26 },
25 dataObj: { 27 dataObj: {
26 type: Object, 28 type: Object,
27 default () { 29 default() {
28 return {}; 30 return {};
29 } 31 }
30 }, 32 },
31 dataList: { 33 dataList: {
32 type: Array, 34 type: Array,
33 default () { 35 default() {
34 return []; 36 return [];
35 } 37 }
36 }, 38 },
37 labelProperty: { 39 labelProperty: {
38 type: String, 40 type: String,
39 default () { 41 default() {
40 return "name"; 42 return "name";
41 } 43 }
42 } 44 }
...@@ -85,15 +87,32 @@ export default { ...@@ -85,15 +87,32 @@ export default {
85 this.sTitle = curData.name; 87 this.sTitle = curData.name;
86 window.location.reload(); 88 window.location.reload();
87 } else { 89 } else {
88 // console.log("curData.value == =", curData.value) 90 // if (curData.value == "logout") {
89 if (curData.value == "logout") { 91 // this.loginHandler();
90 // this.$store.commit("SET_USER_INFO", null); 92 // } else {
91 this.loginHandler(); 93 // this.$router.push({
92 } else { 94 // path: curData.path
93 // 不是的话,跳转页面 95 // })
96 // }
97 console.log(curData);
98 let item = curData;
99 let path = item && item.path || "";
100 if (path) {
94 this.$router.push({ 101 this.$router.push({
95 path: curData.path 102 path: path
96 }) 103 })
104 } else {
105 let value = item && item.value || null;
106 if (value) {
107 switch (value) {
108 case "logout":
109 this.loginHandler();
110 break;
111 case "gotoVHIS":
112 gotoVHIS(this.locale);
113 break;
114 }
115 }
97 } 116 }
98 } 117 }
99 }, 118 },
...@@ -115,5 +134,5 @@ export default { ...@@ -115,5 +134,5 @@ export default {
115 return this.dataList[this.activeIndex][this.labelProperty]; 134 return this.dataList[this.activeIndex][this.labelProperty];
116 } 135 }
117 }, 136 },
118 created() {}, 137 created() { },
119 }; 138 };
......
...@@ -7,6 +7,8 @@ import { ...@@ -7,6 +7,8 @@ import {
7 httpPost 7 httpPost
8 } from '@/api/fetch-api.js' 8 } from '@/api/fetch-api.js'
9 9
10 import { gotoVHIS } from '@/utils/biz.js';
11
10 export default { 12 export default {
11 name: "DropDownList", 13 name: "DropDownList",
12 data() { 14 data() {
...@@ -21,19 +23,19 @@ export default { ...@@ -21,19 +23,19 @@ export default {
21 props: { 23 props: {
22 visible: { 24 visible: {
23 type: Boolean, 25 type: Boolean,
24 default () { 26 default() {
25 return false; 27 return false;
26 } 28 }
27 }, 29 },
28 type: { 30 type: {
29 type: String, 31 type: String,
30 default () { 32 default() {
31 return "nav"; 33 return "nav";
32 } 34 }
33 }, 35 },
34 langList: { 36 langList: {
35 type: Array, 37 type: Array,
36 default () { 38 default() {
37 return []; 39 return [];
38 } 40 }
39 }, 41 },
...@@ -64,7 +66,27 @@ export default { ...@@ -64,7 +66,27 @@ export default {
64 this.$router.push({ 66 this.$router.push({
65 path: path 67 path: path
66 }) 68 })
69 } else {
70 let value = item && item.value || null;
71 if (value) {
72 switch (value) {
73 case "logout":
74 this.loginHandler();
75 break;
76 case "gotoVHIS":
77 gotoVHIS(this.locale);
78 break;
79 }
67 } 80 }
81 }
82 },
83 loginHandler() {
84 httpPost({
85 url: api.logout
86 }).then(() => {
87 this.$store.commit("SET_USER_INFO", null);
88 this.showLogoutTip();
89 });
68 }, 90 },
69 // 点击item 91 // 点击item
70 onChangeHandler(evt) { 92 onChangeHandler(evt) {
......
...@@ -10,6 +10,8 @@ import { ...@@ -10,6 +10,8 @@ import {
10 } from "vuex"; 10 } from "vuex";
11 var UA = require("ua-device"); 11 var UA = require("ua-device");
12 12
13 import { gotoVHIS } from '@/utils/biz.js';
14
13 export default { 15 export default {
14 data() { 16 data() {
15 return { 17 return {
...@@ -54,7 +56,9 @@ export default { ...@@ -54,7 +56,9 @@ export default {
54 56
55 }, 57 },
56 methods: { 58 methods: {
57 59 toVhis(){
60 gotoVHIS(this.locale);
61 },
58 /** 62 /**
59 * 推荐产品 63 * 推荐产品
60 */ 64 */
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
38 .banner-img { 38 .banner-img {
39 width: 100%; 39 width: 100%;
40 height: 100%; 40 height: 100%;
41 cursor: pointer;
41 } 42 }
42 } 43 }
43 44
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
7 <div class="banner banner-pc"> 7 <div class="banner banner-pc">
8 <swiper :options="swiperOption"> 8 <swiper :options="swiperOption">
9 <swiper-slide> 9 <swiper-slide>
10 <img class="banner-img" :src="require('@/assets/images/index/banner-p1-'+locale+'.png')"> 10 <img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-p1-'+locale+'.png')">
11 </swiper-slide> 11 </swiper-slide>
12 <swiper-slide> 12 <swiper-slide>
13 <img class="banner-img" :src="require('@/assets/images/index/banner-p2-'+locale+'.png')"> 13 <img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-p2-'+locale+'.png')">
14 </swiper-slide> 14 </swiper-slide>
15 <div class="swiper-pagination" slot="pagination"></div> 15 <div class="swiper-pagination" slot="pagination"></div>
16 </swiper> 16 </swiper>
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
19 <div class="banner banner-mobile"> 19 <div class="banner banner-mobile">
20 <swiper class="swiper" :options="swiperOption"> 20 <swiper class="swiper" :options="swiperOption">
21 <swiper-slide> 21 <swiper-slide>
22 <img class="banner-img" :src="require('@/assets/images/index/banner-m1-'+locale+'.jpg')"> 22 <img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-m1-'+locale+'.jpg')">
23 </swiper-slide> 23 </swiper-slide>
24 <swiper-slide> 24 <swiper-slide>
25 <img class="banner-img" :src="require('@/assets/images/index/banner-m2-'+locale+'.jpg')"> 25 <img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-m2-'+locale+'.jpg')">
26 </swiper-slide> 26 </swiper-slide>
27 <div class="swiper-pagination" slot="pagination"></div> 27 <div class="swiper-pagination" slot="pagination"></div>
28 </swiper> 28 </swiper>
......
1 /**
2 *
3 * @param {string} lan 语言
4 */
5 export function gotoVHIS(lan) {
6 let url = "https://icpois-stg1.pingan.com/vhis/insurIndex";
7 switch (lan) {
8 case 'zh':
9 url += "?language=zh-cn";
10 break;
11 case 'en':
12 url += "?language=en";
13 break;
14 default:
15 url += "?language=zh-hk";
16 break;
17 }
18 url += "&partnerId=PA001&productCode=VHIS001";
19 window.location.href = url;
20 }
...\ No newline at end of file ...\ No newline at end of file