Browse Source

fix: 更新用户协议和隐私政策链接为新的文件名

更新登录页面、个人资料编辑页面和隐私政策对话框中的用户协议和隐私政策链接。将原有的中文链接从 `yhxy.html` 和 `ysxy.html` 分别更新为语义更清晰的 `user_agreement.html` 和 `privacy_policy.html`。英文链接也相应地从 `yhxy_en.html` 和 `ysxy_en.html` 更新为 `user_agreement_en.html` 和 `privacy_policy_en.html`。这确保了当用户点击相关链接时,能够跳转到正确且最新的文档页面。
newdev_shunjiawei
lxm 7 months ago
parent
commit
b99be2b252
  1. 10
      lib/modules/common/widgets/privacy_policy_dialog.dart
  2. 9
      lib/modules/login/views/login_view.dart
  3. 8
      lib/modules/profile/views/profile_view.dart

10
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 {
),
);
}
}
}

9
lib/modules/login/views/login_view.dart

@ -596,10 +596,10 @@ class LoginView extends GetView<LoginController> {
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<LoginController> {
),
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(

8
lib/modules/profile/views/profile_view.dart

@ -696,11 +696,11 @@ class EditProfileView extends GetView<ProfileController> {
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<ProfileController> {
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,

Loading…
Cancel
Save