add customer photo tips

This commit is contained in:
Timi
2026-08-20 22:15:16 +08:00
parent e1fc007a67
commit 5ee7bf7980
2 changed files with 45 additions and 29 deletions
+21 -9
View File
@@ -53,15 +53,18 @@
/>
</t-form-item>
<t-form-item label-width="0">
<photo-scroller
v-model="photoList"
:photo-items="photoItemList"
:add-actions="photoAddActions"
:loading="isPhotoUploading"
@add-photo="openPhotoPicker('PHOTO')"
@add-point-card="openPhotoPicker('POINT_CARD')"
@add-other="openPhotoPicker('OTHER')"
/>
<div class="photo">
<photo-scroller
v-model="photoList"
:photo-items="photoItemList"
:add-actions="photoAddActions"
:loading="isPhotoUploading"
@add-photo="openPhotoPicker('PHOTO')"
@add-point-card="openPhotoPicker('POINT_CARD')"
@add-other="openPhotoPicker('OTHER')"
/>
<div class="tips orange" v-if="!hasCustomerDeletePermission">当前账户权限编辑客户需要上传照片和积分卡</div>
</div>
</t-form-item>
<t-form-item label="性别">
<t-radio-group class="sex" v-model="formData.gender" variant="default-filled">
@@ -684,6 +687,15 @@ function buildAttachmentList(): Attachment[] {
display: flex;
}
.photo {
width: 100%;
.tips {
font-size: .875rem;
text-align: center;
margin-top: .5rem;
}
}
}
.file-input {