feat: 新增用户协议

新增用户协议
This commit is contained in:
Theo
2024-11-29 16:38:07 +08:00
parent 2e224a5093
commit dc856f9aa9
5 changed files with 161 additions and 5 deletions

View File

@@ -29,6 +29,12 @@
</view>
</wd-form>
</view>
<view class="agreement-text">
登录即同意
<text class="link" clickable @click="goToUserAgreement">用户协议</text>
<text class="link" clickable @click="goToPrivacy">隐私政策</text>
</view>
</view>
</template>
@@ -72,6 +78,16 @@ const handleLogin = () => {
}
});
};
const goToUserAgreement = () => {
uni.navigateTo({
url: "/pages/mine/user-agreement/index",
});
};
const goToPrivacy = () => {
uni.navigateTo({
url: "/pages/mine/privacy/index",
});
};
</script>
<style lang="scss" scoped>
@@ -82,4 +98,18 @@ const handleLogin = () => {
justify-content: center;
height: calc(100vh - 50px);
}
.agreement-text {
position: fixed;
bottom: 30px;
width: 100%;
margin-top: 20px;
font-size: 12px;
color: #666;
text-align: center;
.link {
color: #2979ff;
cursor: pointer;
}
}
</style>