Skip to content

Commit 129786e

Browse files
committed
问题反馈模板图片预览添加索引值
1 parent 3655432 commit 129786e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

platforms/app-plus/feedback/feedback.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<view class="uni-uploader__files">
2121
<block v-for="(image,index) in imageList" :key="index">
2222
<view class="uni-uploader__file" style="position: relative;">
23-
<image class="uni-uploader__img" :src="image" @tap="previewImage"></image>
23+
<image class="uni-uploader__img" :src="image" @tap="previewImage(index)"></image>
2424
<view class="close-view" @click="close(index)">x</view>
2525
</view>
2626
</block>
@@ -102,9 +102,10 @@
102102
chooseStar(e) { //点击评星
103103
this.sendDate.score = e;
104104
},
105-
previewImage() { //预览图片
105+
previewImage(index) { //预览图片
106106
uni.previewImage({
107-
urls: this.imageList
107+
urls: this.imageList,
108+
current:this.imageList[index]
108109
});
109110
},
110111
send() { //发送反馈

0 commit comments

Comments
 (0)