Browse Source

修改用户协议

sunshibo 3 weeks ago
parent
commit
0d4186864e
2 changed files with 12 additions and 9 deletions
  1. 4 7
      pages/components/LoginModal.vue
  2. 8 2
      pages/personal/index.vue

+ 4 - 7
pages/components/LoginModal.vue

@@ -146,18 +146,15 @@ const handleGetPhoneNumber = async (e) => {
 };
 
 // 处理隐私协议:跳转 webview 打开
-const PRIVACY_URL = 'https://ossfile.ailien.shop/privacy/U店在哪-隐私协议946827.htm';
+const PRIVACY_URL = 'https://ossfile.ailien.shop/privacy/%E9%9A%90%E7%A7%81%E5%8D%8F%E8%AE%AE931648.html';
 const handlePrivacy = () => {
   go(`/pages/webview/index?url=${encodeURIComponent(PRIVACY_URL)}`);
 };
 
-// 处理用户协议
+// 处理用户协议:与隐私协议一致,跳转 webview 打开
+const USER_AGREEMENT_URL = 'https://ossfile.ailien.shop/privacy/U%E5%BA%97%E5%9C%A8%E8%BF%99-%E5%B9%B3%E5%8F%B0%E8%A7%84%E5%88%99456793.htm';
 const handleUserAgreement = () => {
-  // TODO: 跳转到用户协议页面
-  uni.showToast({
-    title: '用户协议',
-    icon: 'none'
-  });
+  go(`/pages/webview/index?url=${encodeURIComponent(USER_AGREEMENT_URL)}`);
 };
 </script>
 

+ 8 - 2
pages/personal/index.vue

@@ -50,7 +50,7 @@
 							</image>
 						</view>
 					</view>
-					<view class="card-list" hover-class="hover-active">
+					<view class="card-list" hover-class="hover-active" @click="handleUserAgreement">
 						<view class='left'>
 							<image :src="getFileUrl('img/personal/yhxy.png')" mode="widthFix" class="card-icon"></image>
 							<view class="title">用户协议</view>
@@ -177,11 +177,17 @@ const handleLoginCancel = () => {
 };
 
 // 隐私政策:跳转 webview 打开
-const PRIVACY_URL = 'https://ossfile.ailien.shop/privacy/U店在哪-隐私协议946827.htm';
+const PRIVACY_URL = 'https://ossfile.ailien.shop/privacy/%E9%9A%90%E7%A7%81%E5%8D%8F%E8%AE%AE931648.html';
 const handlePrivacyPolicy = () => {
 	go(`/pages/webview/index?url=${encodeURIComponent(PRIVACY_URL)}`);
 };
 
+// 用户协议:跳转 webview 打开(U店在这-平台规则)
+const USER_AGREEMENT_URL = 'https://ossfile.ailien.shop/privacy/U%E5%BA%97%E5%9C%A8%E8%BF%99-%E5%B9%B3%E5%8F%B0%E8%A7%84%E5%88%99456793.htm';
+const handleUserAgreement = () => {
+	go(`/pages/webview/index?url=${encodeURIComponent(USER_AGREEMENT_URL)}`);
+};
+
 </script>
 
 <style scoped lang="scss">