diff --git a/src/components/Signin.vue b/src/components/Signin.vue index 02a791a..45698bc 100644 --- a/src/components/Signin.vue +++ b/src/components/Signin.vue @@ -79,6 +79,27 @@ const handleLogin = () => { }, }); }; + +const openServiceLink = () => { + uni.navigateTo({ + url: + "/pages/webview?url=" + + encodeURIComponent( + "https://static.shelingxingqiu.com/shootServiceAgreement.html" + ), + }); +}; + +const openPrivacyLink = () => { + uni.navigateTo({ + url: + "/pages/webview?url=" + + encodeURIComponent( + "https://static.shelingxingqiu.com/shootPrivacyPolicy.html" + ), + }); +}; + onShow(() => { loading.value = false; }); @@ -128,12 +149,13 @@ onShow(() => { - 已同意并阅读《用户协议》《隐私协议》内容 + + 已同意并阅读 + 《用户协议》 + + 《隐私协议》 + 内容 + @@ -200,6 +222,13 @@ onShow(() => { margin-right: 10px; border: 1px solid #fff; } +.protocol > view:last-child { + display: flex; + align-items: center; +} +.protocol > view:last-child > view { + color: #fff; +} .login-btn { line-height: 55px; width: 80%; diff --git a/src/pages.json b/src/pages.json index d1a5d81..8fd7d83 100644 --- a/src/pages.json +++ b/src/pages.json @@ -9,7 +9,7 @@ { "path": "pages/webview", "style": { - "navigationBarTitleText": "网页浏览" + "navigationBarTitleText": "" } }, { diff --git a/src/pages/webview.vue b/src/pages/webview.vue index f3ce07e..13eb278 100644 --- a/src/pages/webview.vue +++ b/src/pages/webview.vue @@ -5,7 +5,6 @@ import { onLoad } from "@dcloudio/uni-app"; const url = ref(""); onLoad((options) => { url.value = decodeURIComponent(options.url); - console.log(url.value); });