预览图片
This commit is contained in:
parent
dd4a54dc52
commit
f167cf3537
|
|
@ -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('')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue