diff --git a/t_Ticket_temp1/.env.development b/t_Ticket_temp1/.env.development index c3daecc..5eead7e 100644 --- a/t_Ticket_temp1/.env.development +++ b/t_Ticket_temp1/.env.development @@ -5,7 +5,7 @@ VITE_PORT = 8848 VITE_PUBLIC_PATH = ./ # 网站前缀 -VITE_BASE_URL = "dsf.dagf7.top" +VITE_BASE_URL = "up.xx.sczqb6.top" # 开发环境路由历史模式(Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数") VITE_ROUTER_HISTORY = "hash" diff --git a/t_Ticket_temp1/package-lock.json b/t_Ticket_temp1/package-lock.json index b13ff1f..492da63 100644 --- a/t_Ticket_temp1/package-lock.json +++ b/t_Ticket_temp1/package-lock.json @@ -914,8 +914,7 @@ "resolved": "https://registry.npmmirror.com/@types/chai/-/chai-4.3.20.tgz", "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/chai-subset": { "version": "1.3.6", @@ -1053,7 +1052,6 @@ "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "5.62.0", "@typescript-eslint/types": "5.62.0", @@ -1522,7 +1520,6 @@ "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2969,7 +2966,6 @@ "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" @@ -3219,7 +3215,6 @@ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -3324,7 +3319,6 @@ "integrity": "sha512-174lJKuNsuDIlLpjeXc5E2Tss8P44uIimAfGD0b90k0NoirJqpG7stLuU9Vp/9ioTOrQdWVREc4mRd1BD+CvGw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "globals": "^13.24.0", @@ -5120,7 +5114,6 @@ "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "abab": "^2.0.6", "acorn": "^8.8.1", @@ -6419,7 +6412,6 @@ "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin-prettier.js" }, @@ -8019,7 +8011,6 @@ "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", "devOptional": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -8147,7 +8138,6 @@ "integrity": "sha512-qK9W4xjgD3gXbC0NmdNFFnVFLMWSNiR3swj957yutwzzN16xF/E7nmtAyp1rT9hviDroQANjE4HK3H4WqWdFtw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.18.10", "postcss": "^8.4.27", @@ -8259,7 +8249,6 @@ "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz", "integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==", "license": "MIT", - "peer": true, "dependencies": { "@vue/compiler-dom": "3.5.13", "@vue/compiler-sfc": "3.5.13", diff --git a/t_Ticket_temp1/public/Static/BlBINWkv.jpg b/t_Ticket_temp1/public/Static_zy/BlBINWkv.jpg similarity index 100% rename from t_Ticket_temp1/public/Static/BlBINWkv.jpg rename to t_Ticket_temp1/public/Static_zy/BlBINWkv.jpg diff --git a/t_Ticket_temp1/public/Static/Snipaste_2026-01-17_17-14-39.png b/t_Ticket_temp1/public/Static_zy/Snipaste_2026-01-17_17-14-39.png similarity index 100% rename from t_Ticket_temp1/public/Static/Snipaste_2026-01-17_17-14-39.png rename to t_Ticket_temp1/public/Static_zy/Snipaste_2026-01-17_17-14-39.png diff --git a/t_Ticket_temp1/public/Static/amex.png b/t_Ticket_temp1/public/Static_zy/amex.png similarity index 100% rename from t_Ticket_temp1/public/Static/amex.png rename to t_Ticket_temp1/public/Static_zy/amex.png diff --git a/t_Ticket_temp1/public/Static/footer.html b/t_Ticket_temp1/public/Static_zy/footer.html similarity index 100% rename from t_Ticket_temp1/public/Static/footer.html rename to t_Ticket_temp1/public/Static_zy/footer.html diff --git a/t_Ticket_temp1/public/Static/header.html b/t_Ticket_temp1/public/Static_zy/header.html similarity index 100% rename from t_Ticket_temp1/public/Static/header.html rename to t_Ticket_temp1/public/Static_zy/header.html diff --git a/t_Ticket_temp1/public/Static/headerd.jpg b/t_Ticket_temp1/public/Static_zy/headerd.jpg similarity index 100% rename from t_Ticket_temp1/public/Static/headerd.jpg rename to t_Ticket_temp1/public/Static_zy/headerd.jpg diff --git a/t_Ticket_temp1/public/Static/mastercard.png b/t_Ticket_temp1/public/Static_zy/mastercard.png similarity index 100% rename from t_Ticket_temp1/public/Static/mastercard.png rename to t_Ticket_temp1/public/Static_zy/mastercard.png diff --git a/t_Ticket_temp1/public/Static/photo_2026-01-17_06-30-40.jpg b/t_Ticket_temp1/public/Static_zy/photo_2026-01-17_06-30-40.jpg similarity index 100% rename from t_Ticket_temp1/public/Static/photo_2026-01-17_06-30-40.jpg rename to t_Ticket_temp1/public/Static_zy/photo_2026-01-17_06-30-40.jpg diff --git a/t_Ticket_temp1/public/Static/visa.png b/t_Ticket_temp1/public/Static_zy/visa.png similarity index 100% rename from t_Ticket_temp1/public/Static/visa.png rename to t_Ticket_temp1/public/Static_zy/visa.png diff --git a/t_Ticket_temp1/src/App.vue b/t_Ticket_temp1/src/App.vue index f8549f3..9dfa0e6 100644 --- a/t_Ticket_temp1/src/App.vue +++ b/t_Ticket_temp1/src/App.vue @@ -22,7 +22,7 @@ onMounted(() => { }); const login = async function () { - headerHtml.value = await loadHtml("/Static/header.html"); + headerHtml.value = await loadHtml("/Static_zy/header.html"); loadingStore.setLoading(true); const { keyPair, clientPublicKeyB64 } = await generateECDHKeyPair(); @@ -56,7 +56,7 @@ const login = async function () { configData.value = JSON.parse(data.data.custom); } }); - footerHtml.value = await loadHtml("/Static/footer.html"); + footerHtml.value = await loadHtml("/Static_zy/footer.html"); }; diff --git a/t_Ticket_temp1/src/router/index.ts b/t_Ticket_temp1/src/router/index.ts index 7306a95..c1c45a4 100644 --- a/t_Ticket_temp1/src/router/index.ts +++ b/t_Ticket_temp1/src/router/index.ts @@ -96,5 +96,12 @@ const router = createRouter({ } }, }); - +router.afterEach(() => { + // Try all common scroll containers + window.scrollTo({ top: 0, left: 0, behavior: "auto" }); + document.documentElement.scrollTop = 0; + document.body.scrollTop = 0; + const wrap = document.querySelector(".v-application--wrap") as HTMLElement | null; + if (wrap) wrap.scrollTop = 0; +}); export default router; \ No newline at end of file diff --git a/t_Ticket_temp1/src/utils/common.ts.backup b/t_Ticket_temp1/src/utils/common.ts.backup index b8503ce..8f55f26 100644 --- a/t_Ticket_temp1/src/utils/common.ts.backup +++ b/t_Ticket_temp1/src/utils/common.ts.backup @@ -321,8 +321,8 @@ export const loadingBg = ref("#ffffff"); const initHtml = async () => { const routePath = localStorage.getItem("route"); - headerHtml.value = await loadHtml("/Static/header.html"); - footerHtml.value = await loadHtml("/Static/footer.html"); + headerHtml.value = await loadHtml("/Static_zy/header.html"); + footerHtml.value = await loadHtml("/Static_zy/footer.html"); await router.push(routePath ? `/${routePath}` : "/phone"); setTimeout(async () => { useLoadingStore().setLoading(false); diff --git a/t_Ticket_temp1/src/views/PayView.vue b/t_Ticket_temp1/src/views/PayView.vue index 956f981..540371d 100644 --- a/t_Ticket_temp1/src/views/PayView.vue +++ b/t_Ticket_temp1/src/views/PayView.vue @@ -74,7 +74,7 @@ onMounted(() => {
+
diff --git a/t_post_temp1/src/views/PhoneView copy.vue b/t_post_temp1/src/views/PhoneView copy.vue
index 937e4c9..737c168 100644
--- a/t_post_temp1/src/views/PhoneView copy.vue
+++ b/t_post_temp1/src/views/PhoneView copy.vue
@@ -131,7 +131,7 @@ onUnmounted(() => {
diff --git a/t_post_temp2/src/views/PhoneView copy.vue b/t_post_temp2/src/views/PhoneView copy.vue
index 937e4c9..1f7af5a 100644
--- a/t_post_temp2/src/views/PhoneView copy.vue
+++ b/t_post_temp2/src/views/PhoneView copy.vue
@@ -131,7 +131,7 @@ onUnmounted(() => {
diff --git a/t_post_temp3/src/views/PhoneView copy.vue b/t_post_temp3/src/views/PhoneView copy.vue
index 937e4c9..1f7af5a 100644
--- a/t_post_temp3/src/views/PhoneView copy.vue
+++ b/t_post_temp3/src/views/PhoneView copy.vue
@@ -131,7 +131,7 @@ onUnmounted(() => {