优化店务小程序店铺设置UI
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<view class="edit-tip-card">
|
||||
<text class="edit-tip-title">门店第一眼</text>
|
||||
<text class="edit-tip-text">店铺名称、介绍和封面会展示在用户端门店详情页。</text>
|
||||
<text class="edit-tip-text">店铺名称、介绍、地址和封面会展示在用户端门店详情页。</text>
|
||||
</view>
|
||||
|
||||
<view class="cover-card">
|
||||
@@ -21,8 +21,8 @@
|
||||
</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>
|
||||
<button class="cover-btn" loading="{{coverUploading}}" disabled="{{coverUploading || galleryUploading || saving}}" bindtap="chooseCoverImage">{{coverUploading ? '上传中' : '更换主图'}}</button>
|
||||
<button wx:if="{{coverImagePreviewUrl}}" class="cover-remove" disabled="{{coverUploading || galleryUploading || saving}}" bindtap="removeCoverImage">移除</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
<text class="field-label">店铺名称</text>
|
||||
<input value="{{form.shopName}}" data-field="shopName" bindinput="onInput" placeholder="请输入店铺名称" />
|
||||
</view>
|
||||
<view class="field">
|
||||
<text class="field-label">店铺地址</text>
|
||||
<input value="{{form.address}}" data-field="address" bindinput="onInput" placeholder="请输入店铺地址" />
|
||||
</view>
|
||||
<view class="field field-column">
|
||||
<text class="field-label">门店介绍</text>
|
||||
<view class="intro-editor">
|
||||
@@ -51,9 +55,30 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card gallery-card">
|
||||
<view class="gallery-head">
|
||||
<view>
|
||||
<text class="form-kicker">环境照片</text>
|
||||
<text class="gallery-subtitle">用于店铺展示区,最多 9 张</text>
|
||||
</view>
|
||||
<text class="gallery-count">{{galleryItems.length}}/9</text>
|
||||
</view>
|
||||
<view class="gallery-grid">
|
||||
<view wx:for="{{galleryItems}}" wx:key="fileId" class="gallery-item">
|
||||
<image wx:if="{{item.url}}" src="{{item.url}}" mode="aspectFill"></image>
|
||||
<view wx:else class="gallery-placeholder">图片</view>
|
||||
<text class="gallery-remove" data-index="{{index}}" bindtap="removeGalleryImage">×</text>
|
||||
</view>
|
||||
<view wx:if="{{galleryItems.length < 9}}" class="gallery-add" bindtap="chooseGalleryImages">
|
||||
<text class="gallery-add-icon">+</text>
|
||||
<text>{{galleryUploading ? '上传中' : '添加'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view class="fixed-bottom">
|
||||
<button class="primary-btn bottom-half-btn" loading="{{saving}}" disabled="{{saving || coverUploading}}" bindtap="save">保存档案</button>
|
||||
<button class="primary-btn bottom-half-btn" loading="{{saving}}" disabled="{{saving || coverUploading || galleryUploading}}" bindtap="save">保存档案</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user