提交 bf7980e5 编写于 作者: D devil_gong

小程序优化

上级 29dc315a
...@@ -554,7 +554,7 @@ Page({ ...@@ -554,7 +554,7 @@ Page({
var value = e.currentTarget.dataset.value || null; var value = e.currentTarget.dataset.value || null;
if (value != null) { if (value != null) {
swan.previewImage({ swan.previewImage({
current: 0, current: value,
urls: [value] urls: [value]
}); });
} }
...@@ -567,7 +567,7 @@ Page({ ...@@ -567,7 +567,7 @@ Page({
all.push(this.data.goods_photo[i]['images']); all.push(this.data.goods_photo[i]['images']);
} }
swan.previewImage({ swan.previewImage({
current: index, current: all[index],
urls: all urls: all
}); });
}, },
......
...@@ -130,7 +130,7 @@ Page({ ...@@ -130,7 +130,7 @@ Page({
preview_event() { preview_event() {
if (app.data.default_user_head_src != this.data.avatar) { if (app.data.default_user_head_src != this.data.avatar) {
swan.previewImage({ swan.previewImage({
current: 0, current: this.data.avatar,
urls: [this.data.avatar] urls: [this.data.avatar]
}); });
} }
......
...@@ -628,7 +628,7 @@ Page({ ...@@ -628,7 +628,7 @@ Page({
if(value != null) if(value != null)
{ {
wx.previewImage({ wx.previewImage({
current: 0, current: value,
urls: [value] urls: [value]
}); });
} }
...@@ -642,7 +642,7 @@ Page({ ...@@ -642,7 +642,7 @@ Page({
all.push(this.data.goods_photo[i]['images']); all.push(this.data.goods_photo[i]['images']);
} }
wx.previewImage({ wx.previewImage({
current: index, current: all[index],
urls: all urls: all
}); });
}, },
......
...@@ -147,7 +147,7 @@ Page({ ...@@ -147,7 +147,7 @@ Page({
if(app.data.default_user_head_src != this.data.avatar) if(app.data.default_user_head_src != this.data.avatar)
{ {
wx.previewImage({ wx.previewImage({
current: 0, current: this.data.avatar,
urls: [this.data.avatar] urls: [this.data.avatar]
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册