Commit 34c54a400b892b9fbc17cf43e76c646f09d6c2d3
1 parent
943f9186
去缓存
Showing
2 changed files
with
35 additions
and
0 deletions
index.html
@@ -9,9 +9,30 @@ | @@ -9,9 +9,30 @@ | ||
9 | <meta http-equiv="Pragma" content="no-cache" /> | 9 | <meta http-equiv="Pragma" content="no-cache" /> |
10 | <meta http-equiv="Expires" content="0" /> | 10 | <meta http-equiv="Expires" content="0" /> |
11 | <title>停车支付</title> | 11 | <title>停车支付</title> |
12 | + <script> | ||
13 | + window.addEventListener( | ||
14 | + "error", | ||
15 | + function(e) { | ||
16 | + var jsLoadedErrorReload = window.sessionStorage.getItem( | ||
17 | + "jsLoadedErrorReload" // 跳转的标识,存入sessionStorage。用于不可控情况下,防止一直满足条件,触发死循环性的跳转页面 | ||
18 | + ); | ||
19 | + const fileReg = /\/js\/((chunk-vendors)|(app))\.[a-zA-Z0-9]+/; | ||
20 | + const filename = e.filename || e.target.src || ""; | ||
21 | + if (jsLoadedErrorReload !== "true" && filename.match(fileReg)) { | ||
22 | + window.sessionStorage.setItem("jsLoadedErrorReload", true); // 满足条件则,存入标识 | ||
23 | + let url = window.location.href; | ||
24 | + const timeStr = `timeStr=${Date.now()}`; | ||
25 | + url = /\?/.test(url) ? url + "&" + timeStr : url + "?" + timeStr; | ||
26 | + window.location.replace(url); // 跳转时添加了时间戳 | ||
27 | + } | ||
28 | + }, | ||
29 | + true | ||
30 | + ); | ||
31 | + </script> | ||
12 | </head> | 32 | </head> |
13 | <body> | 33 | <body> |
14 | <div id="app"></div> | 34 | <div id="app"></div> |
15 | <!-- built files will be auto injected --> | 35 | <!-- built files will be auto injected --> |
36 | + | ||
16 | </body> | 37 | </body> |
17 | </html> | 38 | </html> |
src/views/parkPay/plateNumber.vue
@@ -92,6 +92,14 @@ | @@ -92,6 +92,14 @@ | ||
92 | 92 | ||
93 | 93 | ||
94 | </div> | 94 | </div> |
95 | + <div class="iphone-wrap"> | ||
96 | + <p>任你停赤峰 | ||
97 | + </p> | ||
98 | + | ||
99 | + <p> | ||
100 | + 联系电话:400-6345688 | ||
101 | + </p> | ||
102 | + </div> | ||
95 | <div class="first-word-wrap" | 103 | <div class="first-word-wrap" |
96 | v-if="firstWrapStatus"> | 104 | v-if="firstWrapStatus"> |
97 | <div class="first-word" | 105 | <div class="first-word" |
@@ -909,4 +917,10 @@ export default { | @@ -909,4 +917,10 @@ export default { | ||
909 | cursor: pointer; | 917 | cursor: pointer; |
910 | } | 918 | } |
911 | } | 919 | } |
920 | + .iphone-wrap{ | ||
921 | + position: absolute; | ||
922 | + width: 100%; | ||
923 | + bottom: 10px; | ||
924 | + text-align: center; | ||
925 | + } | ||
912 | </style> | 926 | </style> |