story#7189,type默认'full'

This commit is contained in:
2025-09-10 13:38:43 +08:00
parent 65e5bd2814
commit c6c6f9e6a9
5 changed files with 6 additions and 16 deletions

View File

@ -9,7 +9,8 @@
</van-radio-group>
</div>
<div class="photoWrap" v-if="inSure == 1">
<van-uploader :after-read="(file) => afterRead(file,'urlList')" class="customUploadMul" :max-count="3" :disabled="!showFun()">
<van-uploader :after-read="(file) => afterRead(file,'urlList')" class="customUploadMul"
:max-count="3" :disabled="!showFun()" deletable>
<template v-if="urlList.length > 0">
<div v-for="(item, index) in urlList" :key="'uploaded-' + index" class="uploaded-item">
<img class="photo_item" mode="widthFix" :src="item.replace(/http:\/\//g, 'https://')" />
@ -95,19 +96,8 @@ export default {
isInsure:'',
},
options:[{value:0,name:'否'},{value:1,name:'是'}],
localUrlList: [...this.urlList] // 使用本地副本操作
}
},
watch:{
// 监听父组件传入的urlList变化
urlList(newVal) {
this.localUrlList = [...newVal];
},
// 监听inSure变化
inSure(newVal) {
this.form.isInsure = newVal;
}
},
mounted() {
setTimeout(()=>{
this.form.isInsure=this.inSure