Files

59 lines
1.7 KiB
Plaintext

<!-- 头像与照片页 U08 -->
<view class="pp-page">
<ui-nav-bar
title="头像与照片"
status-bar-height="{{statusBarHeight}}"
nav-bar-height="{{navBarHeight}}"
bind:back="onBack"
/>
<view wx:if="{{loading}}" class="pp-loading">
<ui-loading mode="spinner" text="加载照片…" />
</view>
<view wx:else class="pp-body">
<!-- 主头像 -->
<view class="pp-section card-base">
<ui-section-header title="主头像" subtitle="必须上传 1 张清晰正面照" />
<view class="pp-uploader">
<ui-photo-uploader
photos="{{avatarPhotos}}"
max="{{1}}"
bind:add="onAddAvatar"
bind:remove="onRemoveAvatar"
bind:tap="onPreviewAvatar"
/>
</view>
</view>
<!-- 生活照 -->
<view class="pp-section card-base">
<ui-section-header title="生活照片" subtitle="最多 {{maxLifestyle}} 张(可选)" />
<view class="pp-uploader">
<ui-photo-uploader
photos="{{lifestylePhotos}}"
max="{{maxLifestyle}}"
bind:add="onAddLifestyle"
bind:remove="onRemoveLifestyle"
bind:tap="onPreviewLifestyle"
/>
</view>
</view>
<!-- 上传须知 -->
<view class="pp-section card-base">
<ui-section-header title="上传须知" />
<view class="pp-guidelines">
<view wx:for="{{guidelines}}" wx:key="*this" class="pp-guideline">
<view class="pp-guideline__dot"></view>
<text class="pp-guideline__text">{{item}}</text>
</view>
</view>
</view>
</view>
<view class="pp-actions">
<ui-button variant="primary" size="lg" block bind:tap="onNext">下一步</ui-button>
</view>
</view>