test页面上传

This commit is contained in:
2021-12-03 09:25:06 +08:00
parent 941031591d
commit c1e9c3f66d
3 changed files with 1436 additions and 159 deletions

View File

@@ -1,79 +1,91 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"
/>
<title>宁波房屋征收</title>
<script>
// function getQueryString(name) {
// var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
// var r = window.location.search.substr(1).match(reg);
// if (r != null) return unescape(r[2]); return null;
// }
// //debugger
// var ticket = getQueryString('ticket');
// console.log('1201-ticket' + ticket)
// if (ticket)
// window.sessionStorage.setItem('ticket', ticket)
// else {
// if (window.sessionStorage.getItem('ticket') == null) {
// setTimeout(function () { window.close() }, 10);
// //window.open('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
// location.replace('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs')
// }
// }
</script>
<script
type="text/javascript"
src="https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085"
></script>
<script
type="text/javascript"
src="//jssdk.yyhj.zjzwfw.gov.cn/jsbridge/v2.0.0/bridge.min.js"
></script>
<!-- 引入ZWJSBridge -->
<script
type="text/javascript"
src="//assets.zjzwfw.gov.cn/assets/ZWJSBridge/1.0.1/zwjsbridge.js"
></script>
</head>
<head> <body>
<meta charset="utf-8" /> <div id="app"></div>
<meta name="viewport" <!-- built files will be auto injected -->
content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0" /> <script>
<title>宁波房屋征收</title> (function(w, d, s, q, i) {
<script> w[q] = w[q] || [];
function getQueryString(name) { var f = d.getElementsByTagName(s)[0];
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var j = d.createElement(s);
var r = window.location.search.substr(1).match(reg); j.async = true;
if (r != null) return unescape(r[2]); return null; j.id = "beacon-aplus";
} j.src = "https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085";
//debugger f.parentNode.insertBefore(j, f);
var ticket = getQueryString('ticket'); })(window, document, "script", "aplus_queue");
console.log('1201-ticket' + ticket) aplus_queue.push({
if (ticket) action: "aplus.setMetaInfo",
window.sessionStorage.setItem('ticket', ticket) arguments: ["aplus-rhost-v", "alog.zjzwfw.gov.cn"]
else { });
if (window.sessionStorage.getItem('ticket') == null) { aplus_queue.push({
setTimeout(function () { window.close() }, 10); action: "aplus.setMetaInfo",
//window.open('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs') arguments: ["aplus-rhost-g", "alog.zjzwfw.gov.cn"]
location.replace('https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs') });
} // 这个会落到 app_key 字段上
} aplus_queue.push({
</script> action: "aplus.setMetaInfo",
<script type="text/javascript" src="https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085"></script> arguments: ["appId", "60506758"]
<script type="text/javascript" src="//jssdk.yyhj.zjzwfw.gov.cn/jsbridge/v2.0.0/bridge.min.js"></script> });
<!-- 引入ZWJSBridge --> // 单页应用 或 “单个页面”需异步补充 PV 日志参数还需进行如下埋点:
<script type="text/javascript" src="//assets.zjzwfw.gov.cn/assets/ZWJSBridge/1.0.1/zwjsbridge.js"></script> aplus_queue.push({
</head> action: "aplus.setMetaInfo",
arguments: ["aplus-waiting", "MAN"]
<body> });
<div id="app"></div> // 单页应用路由切换后 或 在异步获取到 pv 日志所需的参数后再执行 sendPV
<!-- built files will be auto injected --> aplus_queue.push({
<script> action: "aplus.sendPV",
(function (w, d, s, q, i) { arguments: [
w[q] = w[q] || []; {
var f = d.getElementsByTagName(s)[0]; is_auto: false
var j = d.createElement(s); },
j.async = true; {
j.id = "beacon-aplus"; isMini: true,
j.src = "https://d.alicdn.com/alilog/mlog/aplus.js?id=202951085"; miniAppId: "2001833218", //'应用开发管理平台-应用 ID
f.parentNode.insertBefore(j, f); miniAppName: "房屋征收"
})(window, document, "script", "aplus_queue"); }
aplus_queue.push({ ]
action: "aplus.setMetaInfo", });
arguments: ["aplus-rhost-v", "alog.zjzwfw.gov.cn"] </script>
}); </body>
aplus_queue.push({
action: "aplus.setMetaInfo",
arguments: ["aplus-rhost-g", "alog.zjzwfw.gov.cn"]
});
// 这个会落到 app_key 字段上
aplus_queue.push({
action: "aplus.setMetaInfo",
arguments: ["appId", "60506758"]
});
// 单页应用 或 “单个页面”需异步补充 PV 日志参数还需进行如下埋点:
aplus_queue.push({
action: "aplus.setMetaInfo",
arguments: ["aplus-waiting", "MAN"]
});
// 单页应用路由切换后 或 在异步获取到 pv 日志所需的参数后再执行 sendPV
aplus_queue.push({
action: "aplus.sendPV",
arguments: [{
is_auto: false
}, {
isMini: true,
miniAppId: "2001833218", //'应用开发管理平台-应用 ID
miniAppName: "房屋征收"
}]
});
</script>
</body>
</html> </html>

View File

@@ -5,81 +5,80 @@ Vue.use(Router);
const router = new Router({ const router = new Router({
mode: "hash", mode: "hash",
routes: [{ routes: [
path: "/", {
name: "index", path: "/",
meta: { index: 1, title: "宁波房屋征收" }, name: "index",
component: () => meta: { index: 1, title: "宁波房屋征收" },
import("../views/transit") component: () => import("../views/transit")
}, },
// 选择项目页面 // 选择项目页面
{ {
path: "/project-select", path: "/project-select",
name: "projectSelect", name: "projectSelect",
meta: { index: 2, title: "征收信息查询" }, meta: { index: 2, title: "征收信息查询" },
component: () => component: () => import("../views/project")
import("../views/project") },
}, // 评估结果一级页面
// 评估结果一级页面 {
{ path: "/report/evalute",
path: "/report/evalute", name: "evalute",
name: "evalute", meta: { index: 3, title: "评估结果" },
meta: { index: 3, title: "评估结果" }, component: () => import("../views/report/evalute")
component: () => },
import("../views/report/evalute") // 协议结果页面
}, {
// 协议结果页面 path: "/report/agreement",
{ name: "reportAgreement",
path: "/report/agreement", meta: { index: 4, title: "协议结果" },
name: "reportAgreement", component: () => import("../views/report/agreement")
meta: { index: 4, title: "协议结果" }, },
component: () => // 补偿协议pdf
import("../views/report/agreement") {
}, path: "/showPdf",
// 补偿协议pdf name: "showPdf",
{ meta: { index: 5, title: "协议详情" },
path: "/showPdf", component: () => import("../views/pdf/pdf")
name: "showPdf", },
meta: { index: 5, title: "协议详情" }, // 评估结果二级页面(表格页面)
component: () => {
import("../views/pdf/pdf") path: "/evaluatePage",
}, name: "evaluatePage",
// 评估结果二级页面(表格页面) meta: { index: 6, title: "评估报告" },
{ component: () => import("../views/report/evaluatePage")
path: "/evaluatePage", },
name: "evaluatePage", // 评估结果二级页面(pdf页面)
meta: { index: 6, title: "评估报告" }, {
component: () => path: "/evaluateResultPdf",
import("../views/report/evaluatePage") name: "evaluateResultPdf",
}, meta: { index: 7, title: "评估报告" },
// 评估结果二级页面(pdf页面) component: () => import("../views/pdf/evaluateResultPdf")
{ },
path: "/evaluateResultPdf", // 政策详情页面
name: "evaluateResultPdf", {
meta: { index: 7, title: "评估报告" }, path: "/policyInfo",
component: () => name: "policyInfo",
import("../views/pdf/evaluateResultPdf") meta: { index: 8, title: "政策详情" },
}, component: () => import("../views/policyInfo/policyInfo")
// 政策详情页面 },
{ {
path: "/policyInfo", path: "/final",
name: "policyInfo", name: "final",
meta: { index: 8, title: "政策详情" }, meta: { index: 9, title: "宁波房屋征收" },
component: () => component: () => import("../views")
import("../views/policyInfo/policyInfo") },
}, { {
path: "/final", path: "/aaa",
name: "final", name: "test",
meta: { index: 9, title: "宁波房屋征收" }, meta: { index: 9, title: "宁波房屋征收" },
component: () => component: () => import("../views/test")
import("../views") }
}
] ]
}); });
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
//debugger //debugger
console.log('1201-进入路由1--form-to:' + from.name + "->" + to.name); console.log("1201-进入路由1--form-to:" + from.name + "->" + to.name);
if (to.meta.title) { if (to.meta.title) {
document.title = to.meta.title; document.title = to.meta.title;
} }
@@ -87,21 +86,26 @@ router.beforeEach((to, from, next) => {
// router.push('/transit'); // router.push('/transit');
// next(); // next();
// } else { // } else {
if (from.name == 'final' && to.name == 'index') { if (from.name == "final" && to.name == "index") {
console.log('1201-进入判断2--form-to:' + from.name + "->" + to.name); console.log("1201-进入判断2--form-to:" + from.name + "->" + to.name);
ZWJSBridge.close().then((result) => { ZWJSBridge.close()
console.log('1201-进入close回调3--form-to:' + from.name + "->" + to.name); .then(result => {
console.log(
"1201-进入close回调3--form-to:" + from.name + "->" + to.name
);
console.log(result); console.log(result);
}).catch((error) => { })
console.log('1201-进入close回调异常4--form-to:' + from.name + "->" + to.name); .catch(error => {
console.log(
"1201-进入close回调异常4--form-to:" + from.name + "->" + to.name
);
console.log(error); console.log(error);
}); });
console.log('1201-退出之前5--form-to:' + from.name + "->" + to.name); console.log("1201-退出之前5--form-to:" + from.name + "->" + to.name);
} } else {
else { console.log("1201-next之前6--form-to:" + from.name + "->" + to.name);
console.log('1201-next之前6--form-to:' + from.name + "->" + to.name); next();
next(); }
}
// } // }
}); });

File diff suppressed because it is too large Load Diff