This commit is contained in:
zhouyanli
2026-06-18 16:40:27 +08:00
13 changed files with 226 additions and 195 deletions

View File

@@ -15,7 +15,7 @@
</view>
</view>
<!-- 添加按钮 -->
<view class="add-btn" @tap="choose">
<view class="add-btn" @tap="choose" v-if="innerList.length < props.limit">
<uni-icons color="#a6a6a6" type="plusempty" size="25"></uni-icons>
</view>
</view>
@@ -194,7 +194,9 @@ function remove(index) {
// 4. 预览图片
function preview(index) {
const urls = innerList.value.map(i => i.url)
console.log(innerList)
const urls = innerList.value.map(i => i.url).filter(Boolean)
if (urls.length <= 0) return
uni.previewImage({
urls: urls,
current: index