feat: 支持游客免登录浏览核心页面
未登录用户可先浏览衣橱、穿搭、运势、分享等内容,登录改为用户主动选择,并在登录页增加协议勾选确认与暂不登录入口。
This commit is contained in:
@@ -23,12 +23,22 @@
|
||||
<view class="wechat-icon"></view>
|
||||
<text>{{loading ? '登录中…' : '微信一键登录'}}</text>
|
||||
</view>
|
||||
<view class="lg-terms">
|
||||
<text>登录即代表同意</text>
|
||||
<text class="link" data-type="user" bindtap="openAgreement">《用户协议》</text>
|
||||
<text>和</text>
|
||||
<text class="link" data-type="privacy" bindtap="openAgreement">《隐私政策》</text>
|
||||
|
||||
<!-- 协议同意:默认不勾选,由用户阅读后自行选择是否同意 -->
|
||||
<view class="lg-consent">
|
||||
<view class="lg-check {{agreed ? 'is-on' : ''}}" bindtap="onToggleAgree">
|
||||
<view class="icon icon-check"></view>
|
||||
</view>
|
||||
<view class="lg-consent-t" bindtap="onToggleAgree">
|
||||
<text>我已阅读并同意</text>
|
||||
<text class="link" data-type="user" catchtap="openAgreement">《用户协议》</text>
|
||||
<text>和</text>
|
||||
<text class="link" data-type="privacy" catchtap="openAgreement">《隐私政策》</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 暂不登录:返回衣橱继续浏览,不做任何授权 -->
|
||||
<view class="lg-browse" bindtap="onBrowse">暂不登录,先逛逛</view>
|
||||
</view>
|
||||
|
||||
<!-- 新手礼包:居中玻璃卡 -->
|
||||
@@ -65,4 +75,15 @@
|
||||
bind:confirm="onBirthConfirm"
|
||||
bind:cancel="onBirthCancel"
|
||||
/>
|
||||
|
||||
<!-- 未勾选协议的二次确认:是否同意由用户自行选择 -->
|
||||
<v2-overlay
|
||||
visible="{{consentVisible}}"
|
||||
type="modal"
|
||||
title="请先阅读并同意协议"
|
||||
content="登录前请阅读《用户协议》和《隐私政策》,同意后我们才会为你创建账号并保存衣橱数据。"
|
||||
buttons="{{consentButtons}}"
|
||||
bind:confirm="onConsentConfirm"
|
||||
bind:cancel="onConsentCancel"
|
||||
/>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user