+
@@ -475,8 +475,20 @@ export default {
}
},
// 打开图片
- onViewPicture(currentUrl) {
- this.$store.dispatch("previewImage", $A.mainUrl(currentUrl))
+ onViewPicture(currentUrl, datas, type) {
+ if (type == 1) {
+ datas = datas.split(',')
+ }
+ if (type == 2) {
+ datas = this.getPictures(datas)
+ }
+ const list = datas.map(src => {
+ return {
+ src: $A.mainUrl(src)
+ }
+ });
+ const index = list.findIndex(({ src }) => src === $A.mainUrl(currentUrl));
+ this.$store.dispatch("previewImage", { index, list })
}
}
}
diff --git a/resources/views/push/bot.blade.php b/resources/views/push/bot.blade.php
index 4df84e457..a1a9bda71 100755
--- a/resources/views/push/bot.blade.php
+++ b/resources/views/push/bot.blade.php
@@ -159,11 +159,7 @@
[图片]
@endif