Commit 5c994e5a authored by Mac's avatar Mac

1

parent a28ac795
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
v-for="(item, index) in x.CommentList[1].CommentImgList" :key="index" v-for="(item, index) in x.CommentList[1].CommentImgList" :key="index"
mode="aspectFill" mode="aspectFill"
:src="item" :src="item"
@click="previewImage(index,x.CommentList[1].CommentImgList)"
:style="{'width':san,'height':san}" :style="{'width':san,'height':san}"
/> />
</view> </view>
...@@ -87,6 +88,7 @@ ...@@ -87,6 +88,7 @@
v-for="(item, index) in x.CommentList[0].CommentImgList" :key="index" v-for="(item, index) in x.CommentList[0].CommentImgList" :key="index"
mode="aspectFill" mode="aspectFill"
:src="item" :src="item"
@click="previewImage(index,x.CommentList[0].CommentImgList)"
:style="{'width':san,'height':san}" :style="{'width':san,'height':san}"
/> />
</view> </view>
...@@ -186,6 +188,12 @@ export default { ...@@ -186,6 +188,12 @@ export default {
this.loading = true; this.loading = true;
this.init(); this.init();
}, },
previewImage(index, images) {
uni.previewImage({
urls: images,
current: index,
});
},
init() { init() {
this.loading = true; this.loading = true;
......
...@@ -210,8 +210,8 @@ ...@@ -210,8 +210,8 @@
content: "评价成功,感谢您的反馈", content: "评价成功,感谢您的反馈",
showCancel: false, showCancel: false,
confirmText: "确认", confirmText: "确认",
success: function(res) { success: function(res2) {
if (res.confirm) { if (res2.confirm) {
uni.navigateBack({ uni.navigateBack({
delta: 1, delta: 1,
success: function() { success: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment