Files
JayuCloud/JC-Salon-WeChat/pages/login/index.wxml
T

54 lines
4.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="login-page">
<view class="login-main">
<view class="brand-area">
<image class="login-logo" src="/assets/images/app-icon.png" mode="aspectFill"></image><text class="brand-name">{{appName}}</text><text class="brand-sub">Salon 门店工作台</text>
</view>
<view wx:if="{{loginState && loginState.status !== 'READY' && loginState.status !== 'NEW_USER'}}" class="state-line"><text class="state-title">{{loginState.status === 'PENDING_REVIEW' ? '申请审核中' : loginState.status === 'REJECTED' ? '申请需要修改' : loginState.status === 'DISABLED' ? '账号暂不可用' : loginState.status === 'ERROR' ? '连接失败' : '账号状态'}}</text><text class="state-message">{{loginState.registrationRejectReason || loginState.message}}</text></view>
<view class="action-area">
<button class="quick-btn" loading="{{loading}}" disabled="{{loading || agreementLoading}}" bindtap="quickLogin"><text>快捷登录</text></button>
<view class="remember-row" bindtap="toggleRememberMe">
<view class="check {{rememberMe ? 'checked' : ''}}">{{rememberMe ? '✓' : ''}}</view><text>记住登录,后续可快速登录</text>
</view>
</view>
<view class="agreement-line" bindtap="toggleAgreement">
<view class="check small {{agreementAccepted ? 'checked' : ''}}">{{agreementAccepted ? '✓' : ''}}</view>
<view class="agreement-copy"><text>登录即表示已阅读并同意</text><text class="agreement-link" data-type="USER_TERMS" catchtap="openAgreement">《用户协议》</text><text>和</text><text class="agreement-link" data-type="PRIVACY_POLICY" catchtap="openAgreement">《隐私政策》</text></view>
</view>
</view>
<view class="agreement-footer">
<view wx:if="{{agreementError}}" class="agreement-error" bindtap="loadAgreements">{{agreementError}},点击重试</view>
</view>
<view wx:if="{{agreementPromptVisible}}" class="agreement-prompt-mask" catchtouchmove="stopTap" catchtap="stopTap">
<view class="agreement-prompt" catchtap="stopTap">
<text class="agreement-prompt-title">用户协议与隐私政策提示</text>
<view class="agreement-prompt-body">
<view class="agreement-prompt-paragraph">
<text>您需要完全同意</text><text class="agreement-prompt-link" data-type="USER_TERMS" catchtap="openAgreement">《用户协议》</text><text>和</text><text class="agreement-prompt-link" data-type="PRIVACY_POLICY" catchtap="openAgreement">《隐私政策》</text><text>后,才能使用 Salon 小程序服务。如您不同意,我们无法继续为您提供服务。</text>
</view>
<view class="agreement-prompt-paragraph">
<text>您可阅读</text><text class="agreement-prompt-link" data-type="USER_TERMS" catchtap="openAgreement">《用户协议》</text><text>和</text><text class="agreement-prompt-link" data-type="PRIVACY_POLICY" catchtap="openAgreement">《隐私政策》</text><text>了解详细内容。如您同意,请点击“同意并继续”开始使用我们的服务。</text>
</view>
</view>
<view class="agreement-prompt-actions">
<button class="agreement-prompt-button agreement-prompt-decline" bindtap="declineAgreementPrompt">不同意并退出</button>
<view class="agreement-prompt-divider"></view>
<button class="agreement-prompt-button agreement-prompt-accept" bindtap="acceptAgreementPrompt">同意并继续</button>
</view>
</view>
</view>
<view wx:if="{{agreementModalVisible}}" class="modal-mask agreement-document-modal" catchtouchmove="stopTap">
<view class="agreement-sheet"><text class="modal-title">{{selectedAgreement.title || '隐私保护提示'}}</text><text class="modal-version">版本 {{selectedAgreement.version || '-'}}</text>
<scroll-view class="modal-body" scroll-y><text>{{selectedAgreement.content || '暂无协议内容'}}</text></scroll-view>
<view class="sheet-actions"><button class="sheet-btn secondary" bindtap="closeAgreementModal">关闭</button><button class="sheet-btn primary" bindtap="acceptAgreementModal">同意并继续</button></view>
</view>
</view>
<view wx:if="{{shopSelectVisible}}" class="modal-mask center">
<view class="shop-dialog"><text class="modal-title">选择本次登录门店</text>
<view wx:for="{{shopOptions}}" wx:key="id" class="shop-option" data-id="{{item.id}}" bindtap="selectShop">
<view class="shop-icon">店</view><text>{{item.name}}</text><text class="shop-arrow">›</text>
</view><text wx:if="{{switchingShop}}" class="switching">正在进入门店…</text>
</view>
</view>
</view>