Commit 8317b49e authored by 郝聪敏's avatar 郝聪敏

fix: 添加神策,调整ui,修改bug

parent d0bd9af2
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"core-js": "^3.6.5", "core-js": "^3.6.5",
"date-fns": "^2.15.0", "date-fns": "^2.15.0",
"lodash": "^4.17.19", "lodash": "^4.17.19",
"sa-sdk-javascript": "^1.15.16",
"vant": "^2.10.2", "vant": "^2.10.2",
"vconsole": "^3.3.4", "vconsole": "^3.3.4",
"vue": "2.6.11", "vue": "2.6.11",
......
...@@ -123,5 +123,23 @@ export default { ...@@ -123,5 +123,23 @@ export default {
q: "如何在华泰官网进行保单验真?", q: "如何在华泰官网进行保单验真?",
a: "请登录投保成功短信中提示的华泰官网查询网http://agt.ehuatai.com/nonautoquery/。填写登录信息时,类别选择“家庭财产、意外伤害保险”,保单号在投保成功的短信中,密码填写被保险人身份证号,即可登录查询保单承保信息。" a: "请登录投保成功短信中提示的华泰官网查询网http://agt.ehuatai.com/nonautoquery/。填写登录信息时,类别选择“家庭财产、意外伤害保险”,保单号在投保成功的短信中,密码填写被保险人身份证号,即可登录查询保单承保信息。"
} }
] ],
processDetail: [
{
title: "报案",
desc: "请拨打百年人寿客服电话:95542进行报案。百年人寿会有理赔专员1对1指导理赔事宜。 "
},
{
title: "准备材料",
desc: `专业理赔人员会远程协助您准备好理赔材料。`
},
{
title: "理赔审核",
desc: `将准备好的理赔材料寄送至保险公司。`
},
{
title: "结案",
desc: `保险公司会将理赔金给付至指定账户`
}
],
}; };
...@@ -180,10 +180,10 @@ export default { ...@@ -180,10 +180,10 @@ export default {
{ title: "保险条款", id: 0 }, { title: "保险条款", id: 0 },
{ title: "投保须知与声明", id: 2 }, { title: "投保须知与声明", id: 2 },
{ title: "服务协议", id: 3 }, { title: "服务协议", id: 3 },
{ title: "转账授权书", id: 1 }, { title: "转账授权书", id: 11 },
{ title: "人身保险投保提示书", id: 8 }, { title: "人身保险投保提示书", id: 8 },
{ title: "税收居民身份证明", id: 3 }, { title: "税收居民身份证明", id: 9 },
{ title: "风控查询授权书", id: 3 } { title: "风控查询授权书", id: 10 }
], ],
caseInfo: { caseInfo: {
name: "张先生", name: "张先生",
......
src/assets/logo-top.png

5.77 KB | W: | H:

src/assets/logo-top.png

4.5 KB | W: | H:

src/assets/logo-top.png
src/assets/logo-top.png
src/assets/logo-top.png
src/assets/logo-top.png
  • 2-up
  • Swipe
  • Onion skin
let protocol = window.location.protocol;
export default { export default {
// basicHost: "http://yapi.quantgroups.com/mock/329/", basicHost: "http://yapi.quantgroups.com/mock/329/",
basicHost: "https://hathaway-mg.liangkebang.net/", // basicHost: "https://hathaway-mg.liangkebang.net/",
// basicHost: "http://192.168.29.211:8964/", // basicHost: "http://192.168.29.211:8964/",
wxAppId: "wx514de17b23d53a20" wxAppId: "wx514de17b23d53a20",
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, // 神策数据请求地址
test: false
}; };
let protocol = window.location.protocol;
export default { export default {
// basicHost: "http://192.168.29.211:8964/", // basicHost: "http://192.168.29.211:8964/",
// basicHost: "http://127.0.0.1:8964/", // basicHost: "http://127.0.0.1:8964/",
basicHost: "https://hathaway-mg.liangkebang.net/", basicHost: "https://hathaway-mg.liangkebang.net/",
wxAppId: "wx514de17b23d53a20" wxAppId: "wx514de17b23d53a20",
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, // 神策数据请求地址
test: false
}; };
...@@ -6,8 +6,10 @@ import store from "./store"; ...@@ -6,8 +6,10 @@ import store from "./store";
import "./style/index.less"; import "./style/index.less";
import "amfe-flexible"; import "amfe-flexible";
import vConsole from "vconsole"; import vConsole from "vconsole";
import sa from "sa-sdk-javascript";
import "@/assets/icons/index"; import "@/assets/icons/index";
import "@/service/cherry-ui"; import "@/service/cherry-ui";
import config from "@/config";
Vue.config.productionTip = false; Vue.config.productionTip = false;
new Vue({ new Vue({
...@@ -16,6 +18,27 @@ new Vue({ ...@@ -16,6 +18,27 @@ new Vue({
render: h => h(App) render: h => h(App)
}).$mount("#app"); }).$mount("#app");
// 初始化
sa.init({
server_url: config.shenceUrl,
heatmap: {
//是否开启点击图,默认 default 表示开启,自动采集 $WebClick 事件,可以设置 'not_collect' 表示关闭
clickmap: "default",
//是否开启触达注意力图,默认 default 表示开启,自动采集 $WebStay 事件,可以设置 'not_collect' 表示关闭
scroll_notice_map: "default"
//判断外层是否有 App 的 SDK ,如果有的话,会往 App 的 SDK 发数据。如果没有,就正常发送数据。
// use_app_track: true,
},
show_log: config.test
});
// 添加公共属性
sa.registerPage({ platformType: "H5" });
router.afterEach(() => {
Vue.nextTick(() => {
sa.quick("autoTrackSinglePage");
});
});
window.addEventListener( window.addEventListener(
"popstate", "popstate",
() => { () => {
......
...@@ -35,6 +35,17 @@ router.beforeEach((to, from, next) => { ...@@ -35,6 +35,17 @@ router.beforeEach((to, from, next) => {
next(); next();
}); });
// 路由异常错误处理,尝试解析一个异步组件时发生错误,重新渲染目标页面
// router.onError(error => {
// console.log("router error:", error.message);
// const pattern = /Loading chunk (\d)+ failed/g;
// const isChunkLoadFailed = error.message.match(pattern);
// const targetPath = router.history.pending.fullPath;
// if (isChunkLoadFailed) {
// router.replace(targetPath);
// }
// });
async function getAuthInfo(xyqbToken) { async function getAuthInfo(xyqbToken) {
if (localStorage.get("xyqbToken")) return; if (localStorage.get("xyqbToken")) return;
const res = await authByxyqb({ xyqbToken }); const res = await authByxyqb({ xyqbToken });
...@@ -46,8 +57,11 @@ async function getAuthInfo(xyqbToken) { ...@@ -46,8 +57,11 @@ async function getAuthInfo(xyqbToken) {
} }
async function getWxOpenId(code) { async function getWxOpenId(code) {
if (localStorage.get("openId")) return;
const res = await getwxOpenId({ code, appId: cfg.wxAppId }); const res = await getwxOpenId({ code, appId: cfg.wxAppId });
if (localStorage.get("openId") && res.openId !== localStorage.get("openId")) {
console.log("切换账号");
localStorage.clear();
}
localStorage.set("openId", res.openId); localStorage.set("openId", res.openId);
} }
......
...@@ -153,8 +153,11 @@ export function parseTime(time, cFormat) { ...@@ -153,8 +153,11 @@ export function parseTime(time, cFormat) {
if (String(time).indexOf("T") > -1) { if (String(time).indexOf("T") > -1) {
time = time.replace(/T/g, " ").replace(/\..*/g, ""); time = time.replace(/T/g, " ").replace(/\..*/g, "");
} }
if (String(time).indexOf("-") > -1 && String(time).indexOf("T") == -1) { if (
time = time.replace(/-/g, "/"); (String(time).indexOf("-") > -1 || String(time).indexOf(".") > -1) &&
String(time).indexOf("T") == -1
) {
time = time.replace(/-|\./g, "/");
} }
date = new Date(time); date = new Date(time);
} }
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
position: absolute; position: absolute;
top: 22px; top: 22px;
left: 0; left: 0;
width: 100px; width: 93px;
height: 32px; height: 33px;
content: ''; content: '';
background: url('../../../assets/logo-top.png') no-repeat 0 0 /cover; background: url('../../../assets/logo-top.png') no-repeat 0 0 /contain;
} }
&-detail { &-detail {
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
} }
.Aa-container-qrcode { .Aa-container-qrcode {
margin: 18px 0 16px; padding: 18px 0 16px;
width: 140px; width: 140px;
height: 140px; height: 140px;
} }
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
position: absolute; position: absolute;
top: 26px; top: 26px;
left: 0; left: 0;
width: 100px; width: 93px;
height: 32px; height: 33px;
content: ''; content: '';
background: url('../../assets/logo-top.png') no-repeat 0 0 /cover; background: url('../../assets/logo-top.png') no-repeat 0 0 /contain;
} }
&-button { &-button {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<script> <script>
import pdf from "vue-pdf"; import pdf from "vue-pdf";
import { mapActions } from "vuex"; import { mapActions } from "vuex";
let CMAP_URL = "https://cdn.jsdelivr.net/npm/pdfjs-dist@2.2.228/cmaps/"; let CMAP_URL = "https://cdn.jsdelivr.net/npm/pdfjs-dist@2.5.207/cmaps/";
export default { export default {
name: "PolicyVirtualDetail", name: "PolicyVirtualDetail",
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
z-index: 100; z-index: 100;
} }
@{deep} .cr-tabbar { @{deep} .cr-tabbar {
background-color: #f5f5f5; background-color: #FFFFFF;
font-size: @font-size-16; font-size: @font-size-16;
padding: @padding-lg+1 0; padding: @padding-lg+1 0;
&-item { &-item {
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
&::after { &::after {
position: absolute; position: absolute;
left: 0; left: 0;
top: 26px; top: 33px;
// transition: width .2s linear;
content: " "; content: " ";
display: block; display: block;
width: 0; width: 0;
...@@ -236,7 +235,7 @@ ...@@ -236,7 +235,7 @@
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin: 0 16px 32px; margin: 10px 16px 32px;
height: 374px; height: 374px;
background: #FFFFFF; background: #FFFFFF;
border-radius:14px; border-radius:14px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment