048f25f580
Show privacy popup on launch, gate login on legal consent, and link user agreement and privacy policy pages in the mini program. Co-authored-by: Cursor <cursoragent@cursor.com>
82 lines
3.4 KiB
Plaintext
82 lines
3.4 KiB
Plaintext
<view class="page login-page">
|
|
<view class="brand">
|
|
<text class="brand-title">TKMind</text>
|
|
<text class="brand-subtitle">微信小程序工作台</text>
|
|
</view>
|
|
|
|
<view class="panel login-card">
|
|
<view wx:if="{{touristWarning}}" class="warn-box">{{touristWarning}}</view>
|
|
<view wx:if="{{envHint}}" class="info-box">{{envHint}}</view>
|
|
|
|
<button
|
|
class="primary-button"
|
|
loading="{{wechatLoading}}"
|
|
bindtap="handleWechatLogin"
|
|
>
|
|
微信一键登录
|
|
</button>
|
|
|
|
<view class="divider"><text>或使用 H5 账号</text></view>
|
|
|
|
<input class="field" placeholder="用户名 / 邮箱" value="{{username}}" bindinput="handleUsername" />
|
|
<input class="field" placeholder="密码" password value="{{password}}" bindinput="handlePassword" />
|
|
<button
|
|
class="secondary-button"
|
|
loading="{{passwordLoading}}"
|
|
bindtap="handlePasswordLogin"
|
|
>
|
|
账号登录
|
|
</button>
|
|
|
|
<view wx:if="{{showLegalConsent}}" class="consent-box">
|
|
<checkbox-group bindchange="handleConsentChange">
|
|
<label class="consent-row">
|
|
<checkbox value="agreed" checked="{{agreedToLegal}}" color="#0f766e" />
|
|
<view class="consent-text">
|
|
<text>我已阅读并同意</text>
|
|
<text class="consent-link" catchtap="openTerms">《用户服务协议》</text>
|
|
<text>和</text>
|
|
<text class="consent-link" catchtap="openPrivacy">《隐私政策》</text>
|
|
<text>,并授权 TKMind 为账号登录、身份验证及提供 AI 对话服务,收集和使用我的用户名、邮箱、登录密码(加密传输)及微信登录标识。</text>
|
|
</view>
|
|
</label>
|
|
</checkbox-group>
|
|
</view>
|
|
|
|
<text wx:if="{{error}}" class="error">{{error}}</text>
|
|
</view>
|
|
|
|
<view class="legal-footer">
|
|
<text class="consent-link" bindtap="openTerms">用户服务协议</text>
|
|
<text class="legal-sep">|</text>
|
|
<text class="consent-link" bindtap="openPrivacy">隐私政策</text>
|
|
<text class="legal-sep">|</text>
|
|
<text class="consent-link" bindtap="openLegalCenter">隐私与协议</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{showConsentModal}}" class="consent-modal-mask">
|
|
<view class="consent-modal panel">
|
|
<text class="consent-modal-title">个人信息收集说明</text>
|
|
<text class="consent-modal-body">
|
|
为完成账号登录并提供 AI 对话、会话管理等服务,TKMind 将收集以下信息:用户名/邮箱、登录密码(加密传输)、微信登录标识、会话与聊天记录。
|
|
</text>
|
|
<text class="consent-modal-body">
|
|
收集目的:账号验证、身份识别、提供服务与安全保障。收集方式:由您主动填写或授权微信登录后获取。使用范围:仅用于本小程序及相关服务,不会出售给第三方。
|
|
</text>
|
|
<text class="consent-modal-body">
|
|
请阅读
|
|
<text class="consent-link" bindtap="openTerms">《用户服务协议》</text>
|
|
和
|
|
<text class="consent-link" bindtap="openPrivacy">《隐私政策》</text>
|
|
后勾选同意。仅在您同意后,我们才会处理相关个人信息。
|
|
</text>
|
|
<view class="consent-modal-actions">
|
|
<button class="consent-decline-button" bindtap="declineConsentModal">暂不同意</button>
|
|
<button class="consent-accept-button" bindtap="acceptConsentModal">我已阅读并同意</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<privacy-popup />
|