90a1c4d5 by joe

1

1 parent b47dc917
Showing 34 changed files with 97 additions and 27 deletions
......@@ -12,7 +12,7 @@
<![endif]-->
<title>平安人寿保险官网</title>
<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>
<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>
<body>
<noscript>
......@@ -22,6 +22,6 @@
<div id="app"></div>
<!-- built files will be auto injected -->
<script src="./js/unionrsa.js"></script>
<script type="text/javascript" src="static/js/app.1575985736565.js"></script></body>
<script type="text/javascript" src="static/js/app.1576033593271.js"></script></body>
</html>
......
......@@ -61,7 +61,8 @@ module.exports = {
path: "",
list: [{
name: "VHIS - Standard Plan",
path: "/empty"
path: "",
value: "gotoVHIS"
},
{
name: "Dividen Life Insurance",
......
......@@ -62,7 +62,8 @@ module.exports = {
path: "",
list: [{
name: "VHIS",
path: "/empty"
path: "",
value: "gotoVHIS"
},
{
name: "分紅終身",
......
......@@ -61,13 +61,13 @@ module.exports = {
path: "",
list: [{
name: "自愿医保基本计划",
path: "/empty"
path: "",
value: "gotoVHIS"
},
{
name: "分红终身寿险",
path: "/product"
}
]
}]
},
{
name: "客户服务",
......@@ -697,6 +697,8 @@ module.exports = {
menu7: "投诉受理",
menu8: "常用表格",
insuranceQuery: {
modify : "修改",
InsurantNumber: "保单号码",
Insurant: "受保人",
InsurantName: "险种名称",
......
......@@ -7,6 +7,8 @@ import {
httpPost
} from '@/api/fetch-api.js'
import { gotoVHIS } from '@/utils/biz.js';
export default {
name: "DropDownList",
data() {
......@@ -18,25 +20,25 @@ export default {
props: {
type: {
type: String,
default () {
default() {
return "nav";
}
},
dataObj: {
type: Object,
default () {
default() {
return {};
}
},
dataList: {
type: Array,
default () {
default() {
return [];
}
},
labelProperty: {
type: String,
default () {
default() {
return "name";
}
}
......@@ -85,15 +87,32 @@ export default {
this.sTitle = curData.name;
window.location.reload();
} else {
// console.log("curData.value == =", curData.value)
if (curData.value == "logout") {
// this.$store.commit("SET_USER_INFO", null);
this.loginHandler();
} else {
// 不是的话,跳转页面
// if (curData.value == "logout") {
// this.loginHandler();
// } else {
// this.$router.push({
// path: curData.path
// })
// }
console.log(curData);
let item = curData;
let path = item && item.path || "";
if (path) {
this.$router.push({
path: curData.path
path: path
})
} else {
let value = item && item.value || null;
if (value) {
switch (value) {
case "logout":
this.loginHandler();
break;
case "gotoVHIS":
gotoVHIS(this.locale);
break;
}
}
}
}
},
......@@ -115,5 +134,5 @@ export default {
return this.dataList[this.activeIndex][this.labelProperty];
}
},
created() {},
created() { },
};
......
......@@ -7,6 +7,8 @@ import {
httpPost
} from '@/api/fetch-api.js'
import { gotoVHIS } from '@/utils/biz.js';
export default {
name: "DropDownList",
data() {
......@@ -21,19 +23,19 @@ export default {
props: {
visible: {
type: Boolean,
default () {
default() {
return false;
}
},
type: {
type: String,
default () {
default() {
return "nav";
}
},
langList: {
type: Array,
default () {
default() {
return [];
}
},
......@@ -64,8 +66,28 @@ export default {
this.$router.push({
path: path
})
} else {
let value = item && item.value || null;
if (value) {
switch (value) {
case "logout":
this.loginHandler();
break;
case "gotoVHIS":
gotoVHIS(this.locale);
break;
}
}
}
},
loginHandler() {
httpPost({
url: api.logout
}).then(() => {
this.$store.commit("SET_USER_INFO", null);
this.showLogoutTip();
});
},
// 点击item
onChangeHandler(evt) {
this.activeIndex = evt;
......
......@@ -10,6 +10,8 @@ import {
} from "vuex";
var UA = require("ua-device");
import { gotoVHIS } from '@/utils/biz.js';
export default {
data() {
return {
......@@ -54,7 +56,9 @@ export default {
},
methods: {
toVhis(){
gotoVHIS(this.locale);
},
/**
* 推荐产品
*/
......
......@@ -38,6 +38,7 @@
.banner-img {
width: 100%;
height: 100%;
cursor: pointer;
}
}
......
......@@ -7,10 +7,10 @@
<div class="banner banner-pc">
<swiper :options="swiperOption">
<swiper-slide>
<img class="banner-img" :src="require('@/assets/images/index/banner-p1-'+locale+'.png')">
<img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-p1-'+locale+'.png')">
</swiper-slide>
<swiper-slide>
<img class="banner-img" :src="require('@/assets/images/index/banner-p2-'+locale+'.png')">
<img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-p2-'+locale+'.png')">
</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
......@@ -19,10 +19,10 @@
<div class="banner banner-mobile">
<swiper class="swiper" :options="swiperOption">
<swiper-slide>
<img class="banner-img" :src="require('@/assets/images/index/banner-m1-'+locale+'.jpg')">
<img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-m1-'+locale+'.jpg')">
</swiper-slide>
<swiper-slide>
<img class="banner-img" :src="require('@/assets/images/index/banner-m2-'+locale+'.jpg')">
<img @click="toVhis" class="banner-img" :src="require('@/assets/images/index/banner-m2-'+locale+'.jpg')">
</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
......
/**
*
* @param {string} lan 语言
*/
export function gotoVHIS(lan) {
let url = "https://icpois-stg1.pingan.com/vhis/insurIndex";
switch (lan) {
case 'zh':
url += "?language=zh-cn";
break;
case 'en':
url += "?language=en";
break;
default:
url += "?language=zh-hk";
break;
}
url += "&partnerId=PA001&productCode=VHIS001";
window.location.href = url;
}
\ No newline at end of file