预览图片

This commit is contained in:
bb_pan 2025-08-04 14:56:19 +08:00
parent dd4a54dc52
commit f167cf3537
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@
<div v-for="(img, index) in imgList" :key="index" class="upload-item"> <div v-for="(img, index) in imgList" :key="index" class="upload-item">
<image :src="img.url" style="width: 160rpx; height: 160rpx" mode="aspectFill"></image> <image :src="img.url" style="width: 160rpx; height: 160rpx" mode="aspectFill"></image>
<view class="delete-btn" @click.stop="deleteImage(index)">×</view> <view class="delete-btn" @click.stop="deleteImage(index)">×</view>
<PreviewImg :imgUrl="img.url" />
</div> </div>
<div class="upload" @click="uploadImg" v-if="imgList.length < 3">+</div> <div class="upload" @click="uploadImg" v-if="imgList.length < 3">+</div>
</div> </div>
@ -114,6 +115,7 @@ import ScanQrCode from '@/pages/devicesSearch/ScanQrCode.vue'
import { baseURL } from '@/utils/http' import { baseURL } from '@/utils/http'
import { useMemberStore } from '@/stores' import { useMemberStore } from '@/stores'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm' import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
import PreviewImg from '@/components/PreviewImg/index.vue'
const memberStore = useMemberStore() const memberStore = useMemberStore()
const backPerson = ref('') const backPerson = ref('')
const phone = ref('') const phone = ref('')