- Updated the login modal to include a user agreement section with clickable links to the user agreement and privacy policy. - Improved button styling and layout for better user experience. - Refactored avatar selection process to utilize local image paths, enhancing compatibility and reliability across different environments. - Added utility functions for resolving avatar file paths and selecting images from the gallery or camera. This update aims to streamline user interactions during login and avatar selection, ensuring a smoother experience.
29 lines
1.9 KiB
Plaintext
29 lines
1.9 KiB
Plaintext
<!-- Soul 创业派对 - 公用登录弹窗 -->
|
|
<view class="modal-overlay" wx:if="{{show}}" bindtap="onClose">
|
|
<view class="modal-content login-modal" catchtap="stopPropagation">
|
|
<view class="modal-close" bindtap="onClose"><icon name="x" size="36" color="#8e8e93"></icon></view>
|
|
<view class="login-icon"><icon name="lock" size="80" color="#00CED1"></icon></view>
|
|
<text class="login-title">登录 卡若创业派对</text>
|
|
<text class="login-desc">{{desc}}</text>
|
|
|
|
<view class="login-agree-row" catchtap="onToggleAgree">
|
|
<view class="agree-checkbox {{agreeProtocol ? 'agree-checked' : ''}}"><icon wx:if="{{agreeProtocol}}" name="check" size="24" color="#34C759"></icon></view>
|
|
<text class="agree-text">我已阅读并同意</text>
|
|
<text class="agree-link" catchtap="onOpenUserProtocol">《用户协议》</text>
|
|
<text class="agree-text">和</text>
|
|
<text class="agree-link" catchtap="onOpenPrivacy">《隐私政策》</text>
|
|
</view>
|
|
|
|
<button id="agree-phone-btn" class="btn-login {{agreeProtocol ? '' : 'btn-login-disabled'}}" open-type="getPhoneNumber|agreePrivacyAuthorization" bindgetphonenumber="onPhoneLogin" bindagreeprivacyauthorization="onAgreePrivacy" disabled="{{isLoggingIn || !agreeProtocol}}" hover-class="btn-login-hover">
|
|
<icon class="btn-login-icon" name="smartphone" size="36" color="#ffffff"></icon>
|
|
<text>{{isLoggingIn ? '登录中...' : '手机号快捷登录'}}</text>
|
|
</button>
|
|
|
|
<view class="privacy-wechat-row" wx:if="{{showPrivacyModal}}">
|
|
<text class="privacy-wechat-desc">为获取手机号,请先同意《用户隐私保护指引》</text>
|
|
<button id="agree-privacy-btn" class="privacy-agree-btn" open-type="agreePrivacyAuthorization" bindagreeprivacyauthorization="onAgreePrivacy" hover-class="privacy-agree-btn-hover">同意</button>
|
|
</view>
|
|
<view class="login-modal-cancel" wx:if="{{showCancel}}" bindtap="onClose">取消</view>
|
|
</view>
|
|
</view>
|