重构店铺设置展示与编辑流程
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
<view class="page no-tab shop-profile-page">
|
||||
<view wx:if="{{loading}}" class="loading-state">店铺档案加载中</view>
|
||||
<block wx:else>
|
||||
<view class="page-heading">
|
||||
<text class="page-title">编辑店铺档案</text>
|
||||
<text class="page-subtitle">让客人先认识你的店,再决定要不要预约。</text>
|
||||
</view>
|
||||
|
||||
<view class="edit-tip-card">
|
||||
<text class="edit-tip-title">门店第一眼</text>
|
||||
<text class="edit-tip-text">店铺名称、介绍和封面会展示在用户端门店详情页。</text>
|
||||
</view>
|
||||
|
||||
<view class="cover-card">
|
||||
<view wx:if="{{coverImagePreviewUrl}}" class="cover-preview">
|
||||
<image src="{{coverImagePreviewUrl}}" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view wx:else class="cover-preview cover-empty">
|
||||
<text class="cover-empty-title">店铺封面</text>
|
||||
<text class="cover-empty-desc">上传一张能代表风格的作品图</text>
|
||||
</view>
|
||||
<view class="cover-badge">门店封面</view>
|
||||
<view class="cover-actions">
|
||||
<button class="cover-btn" loading="{{coverUploading}}" disabled="{{coverUploading || saving}}" bindtap="chooseCoverImage">{{coverUploading ? '上传中' : '更换主图'}}</button>
|
||||
<button wx:if="{{coverImagePreviewUrl}}" class="cover-remove" disabled="{{coverUploading || saving}}" bindtap="removeCoverImage">移除</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card form-card">
|
||||
<view class="form-header">
|
||||
<text class="form-kicker">门店档案</text>
|
||||
<text class="form-title">保存后返回主页面查看展示效果</text>
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label">店铺名称</text>
|
||||
<input value="{{form.shopName}}" data-field="shopName" bindinput="onInput" placeholder="请输入店铺名称" />
|
||||
</view>
|
||||
<view class="field field-column">
|
||||
<text class="field-label">门店介绍</text>
|
||||
<view class="intro-editor">
|
||||
<textarea
|
||||
value="{{form.rule}}"
|
||||
data-field="rule"
|
||||
bindinput="onInput"
|
||||
maxlength="120"
|
||||
auto-height="{{false}}"
|
||||
placeholder="写下门店风格、擅长方向、服务氛围"
|
||||
placeholder-class="intro-placeholder"
|
||||
></textarea>
|
||||
<text class="intro-count">{{introLength}}/120</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view class="fixed-bottom">
|
||||
<button class="secondary-btn bottom-half-btn" disabled="{{saving || coverUploading}}" bindtap="back">取消</button>
|
||||
<button class="primary-btn bottom-half-btn" loading="{{saving}}" disabled="{{saving || coverUploading}}" bindtap="save">保存档案</button>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user