Files
JayuCloud/YumiNail-Admin-Program/pages/login/index.wxml
T

46 lines
2.4 KiB
Plaintext

<navigation-bar title="后台管理" back="{{false}}" color="#f6efe7" background="#081518"></navigation-bar>
<view class="page-shell">
<view class="page-stack login-stack">
<view class="hero-panel">
<text class="hero-kicker">YUMINAIL ADMIN</text>
<text class="hero-title">把日常经营带到手机上</text>
<text class="hero-desc">平台管理员、店长、美甲师共用一套后台能力。首版保持业务能力对齐,交互按移动端重构,不把网页表格硬搬到手机里。</text>
<view class="badge-row">
<text class="badge">平台管理员</text>
<text class="soft-badge">店长</text>
<text class="soft-badge">美甲师</text>
</view>
</view>
<view class="surface-card">
<text class="section-title">账号密码登录</text>
<text class="section-desc">输入后台账号后,会自动预加载可登录店铺。管理员在系统尚无店铺时,也可无店铺登录并先进入店铺管理。</text>
<view class="field-group">
<text class="field-label">后台账号</text>
<input class="field-input" placeholder="仅支持字母和数字" placeholder-class="placeholder" value="{{form.account}}" data-field="account" bindinput="handleInputChange"></input>
<text wx:if="{{accountStatusText}}" class="status-text {{accountStatusType}}">{{accountStatusText}}</text>
</view>
<view class="field-group">
<text class="field-label">登录密码</text>
<input class="field-input" password placeholder="请输入后台密码" placeholder-class="placeholder" value="{{form.password}}" data-field="password" bindinput="handleInputChange"></input>
</view>
<view wx:if="{{loginShops.length}}" class="field-group">
<text class="field-label">登录店铺</text>
<picker mode="selector" range="{{loginShops}}" range-key="shopName" value="{{loginShopIndex}}" bindchange="handleShopChange">
<view class="field-picker">{{loginShopDisplayName || '请选择本次登录店铺'}}</view>
</picker>
</view>
<view wx:if="{{allowShoplessLogin || loginShopMessage}}" class="hint-card">{{loginShopMessage || '当前账号允许无店铺登录,可先进入店铺管理完成初始化。'}}</view>
<view class="action-row">
<button class="primary-btn" loading="{{loading}}" disabled="{{loading}}" bindtap="handleSubmit">进入管理台</button>
</view>
</view>
</view>
</view>