更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-14
View File
@@ -1,10 +1,5 @@
<template>
<view class="page">
<!--
小程序端 web-view 组件会自动铺满整屏(不受样式约束),
因此该端使用原生导航栏(pages.json 里 navigationStyle 保持 default);
H5 / App 端 web-view 渲染为 iframe,需要自绘标题栏。
-->
<!-- #ifndef MP-WEIXIN -->
<view class="bar">
<view class="bar-btn" @tap="goBack">
@@ -34,12 +29,6 @@ import { resolveWebConsoleURL, resolveWebSSOURL } from '@/api/config.js'
const url = ref('')
const title = ref('功能')
/**
* 参数解码。
* 各端行为不一致:H5(vue-router)会先解一次码,小程序不会。
* 这里对纯 ASCII 参数(path / ticket)重复解码是幂等的,安全;
* 含中文的 title 解码一次后已无可解字符,再解也是空操作。
*/
function decodeParam(v) {
if (!v) return ''
try {
@@ -60,7 +49,6 @@ onLoad((options) => {
return
}
// 带票据 → 走 Web 端免登录兑换页;否则按普通深链打开
if (ticket) {
url.value = resolveWebSSOURL(raw, ticket)
} else if (/^https?:\/\//i.test(raw)) {
@@ -81,7 +69,6 @@ function goBack() {
}
}
// 重新加载:改 src 强制 webview/iframe 刷新
function onReload() {
const cur = url.value
if (!cur) return
@@ -90,7 +77,6 @@ function onReload() {
}
function onMessage() {
// 预留:Web 端 postMessage 回传(如通知外层刷新数据)
}
</script>