From 9b3968bfd5520222eac8e2739a8a7a2b1e8295f5 Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Mon, 16 Mar 2026 11:11:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=92=8C=E9=9A=90=E7=A7=81=E6=94=BF=E7=AD=96?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E4=B8=BA=E6=96=B0=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新登录页面、个人资料编辑页面和隐私政策对话框中的用户协议和隐私政策链接。将原有的中文链接从 `yhxy.html` 和 `ysxy.html` 分别更新为语义更清晰的 `user_agreement.html` 和 `privacy_policy.html`。英文链接也相应地从 `yhxy_en.html` 和 `ysxy_en.html` 更新为 `user_agreement_en.html` 和 `privacy_policy_en.html`。这确保了当用户点击相关链接时,能够跳转到正确且最新的文档页面。 --- lib/modules/common/widgets/privacy_policy_dialog.dart | 10 +++++----- lib/modules/login/views/login_view.dart | 9 ++++----- lib/modules/profile/views/profile_view.dart | 8 ++++---- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/lib/modules/common/widgets/privacy_policy_dialog.dart b/lib/modules/common/widgets/privacy_policy_dialog.dart index b6863e2f3..16ecc154e 100644 --- a/lib/modules/common/widgets/privacy_policy_dialog.dart +++ b/lib/modules/common/widgets/privacy_policy_dialog.dart @@ -78,11 +78,11 @@ class PrivacyPolicyDialog extends StatelessWidget { child: GestureDetector( onTap: () { String url = - 'https://www.voitrans.net/doc/ysxy.html'; // 隐私政策链接 + 'https://www.voitrans.net/doc/privacy_policy.html'; if (Get.locale?.languageCode != 'zh' || Get.locale?.countryCode != 'CN') { url = - 'https://www.voitrans.net/doc/ysxy_en.html'; // 隐私政策英文链接 + 'https://www.voitrans.net/doc/privacy_policy_en.html'; } Get.to(() => WebViewPage( url: url, @@ -110,11 +110,11 @@ class PrivacyPolicyDialog extends StatelessWidget { child: GestureDetector( onTap: () { String url = - 'https://www.voitrans.net/doc/yhxy.html'; // 用户协议链接 + 'https://www.voitrans.net/doc/user_agreement.html'; if (Get.locale?.languageCode != 'zh' || Get.locale?.countryCode != 'CN') { url = - 'https://www.voitrans.net/doc/yhxy_en.html'; // 用户协议英文链接 + 'https://www.voitrans.net/doc/user_agreement_en.html'; } Get.to(() => WebViewPage( url: url, @@ -197,4 +197,4 @@ class PrivacyPolicyDialog extends StatelessWidget { ), ); } -} \ No newline at end of file +} diff --git a/lib/modules/login/views/login_view.dart b/lib/modules/login/views/login_view.dart index bfe280e28..b5a82f869 100644 --- a/lib/modules/login/views/login_view.dart +++ b/lib/modules/login/views/login_view.dart @@ -596,10 +596,10 @@ class LoginView extends GetView { children: [ GestureDetector( onTap: () { - String url = 'https://www.voitrans.net/doc/yhxy.html'; // 用户协议链接 + String url = 'https://www.voitrans.net/doc/user_agreement.html'; if (Get.locale?.languageCode != 'zh' || Get.locale?.countryCode != 'CN') { - url = 'https://www.voitrans.net/doc/yhxy_en.html'; // 用户协议英文链接 + url = 'https://www.voitrans.net/doc/user_agreement_en.html'; } Get.to(() => WebViewPage( url: url, @@ -623,11 +623,10 @@ class LoginView extends GetView { ), GestureDetector( onTap: () { - String url = 'https://www.voitrans.net/doc/ysxy.html'; // 隐私政策链接 - + String url = 'https://www.voitrans.net/doc/privacy_policy.html'; if (Get.locale?.languageCode != 'zh' || Get.locale?.countryCode != 'CN') { - url = 'https://www.voitrans.net/doc/ysxy_en.html'; // 隐私政策英文链接 + url = 'https://www.voitrans.net/doc/privacy_policy_en.html'; } Get.to(() => WebViewPage( diff --git a/lib/modules/profile/views/profile_view.dart b/lib/modules/profile/views/profile_view.dart index 1e9d8a268..d020d1290 100644 --- a/lib/modules/profile/views/profile_view.dart +++ b/lib/modules/profile/views/profile_view.dart @@ -696,11 +696,11 @@ class EditProfileView extends GetView { titleColor: isDarkMode ? Colors.white : Colors.black87, onTap: () { String url = - 'https://www.voitrans.net/doc/yhxy.html'; // 用户协议链接 + 'https://www.voitrans.net/doc/user_agreement.html'; if (Get.locale?.languageCode != 'zh' || Get.locale?.countryCode != 'CN') { url = - 'https://www.voitrans.net/doc/yhxy_en.html'; // 用户协议英文链接 + 'https://www.voitrans.net/doc/user_agreement_en.html'; } Get.to(() => WebViewPage( url: url, @@ -727,11 +727,11 @@ class EditProfileView extends GetView { titleColor: isDarkMode ? Colors.white : Colors.black87, onTap: () { String url = - 'https://www.voitrans.net/doc/ysxy.html'; // 隐私政策链接 + 'https://www.voitrans.net/doc/privacy_policy.html'; if (Get.locale?.languageCode != 'zh' || Get.locale?.countryCode != 'CN') { url = - 'https://www.voitrans.net/doc/ysxy_en.html'; // 隐私政策英文链接 + 'https://www.voitrans.net/doc/privacy_policy_en.html'; } Get.to(() => WebViewPage( url: url,