优化:统一小程序业务引用选择交互
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<view class="page no-tab employee-create-page">
|
||||
<view class="create-intro">
|
||||
<text class="create-title">录入员工账号</text>
|
||||
<text class="create-subtitle">{{pickerMode ? '保存后自动选择该员工' : '保存后即可用于预约指定和员工管理'}}</text>
|
||||
</view>
|
||||
|
||||
<view class="card avatar-card" bindtap="chooseAvatar">
|
||||
<image wx:if="{{form.avatarUrl}}" class="avatar-preview" src="{{form.avatarUrl}}" mode="aspectFill"></image>
|
||||
<image wx:else class="avatar-preview" src="/assets/images/default-user-avatar.png" mode="aspectFit"></image>
|
||||
<view class="avatar-copy">
|
||||
<text class="avatar-title">员工头像</text>
|
||||
<text class="avatar-tip">点击选择图片,可稍后补充</text>
|
||||
</view>
|
||||
<text class="avatar-action">{{avatarUploading ? '上传中' : '更换'}}</text>
|
||||
</view>
|
||||
<button wx:if="{{form.avatarUrl}}" class="remove-avatar" catchtap="removeAvatar">移除当前头像</button>
|
||||
|
||||
<view class="card form-card create-form">
|
||||
<view class="field">
|
||||
<text class="field-label required">姓名</text>
|
||||
<input value="{{form.nickname}}" data-field="nickname" bindinput="onInput" placeholder="请输入员工姓名" />
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label required">手机号</text>
|
||||
<input value="{{form.phone}}" data-field="phone" bindinput="onInput" type="number" maxlength="11" placeholder="请输入手机号" />
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label required">登录账号</text>
|
||||
<input value="{{form.account}}" data-field="account" bindinput="onInput" placeholder="默认跟随手机号" />
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label required">初始密码</text>
|
||||
<input value="{{form.password}}" data-field="password" bindinput="onInput" password placeholder="请输入初始密码" />
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label required">微信号</text>
|
||||
<input value="{{form.wechatId}}" data-field="wechatId" bindinput="onInput" placeholder="请输入微信号" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fixed-bottom">
|
||||
<button class="primary-btn" loading="{{creating}}" disabled="{{avatarUploading || creating}}" bindtap="submit">保存员工</button>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user