小程序优化
parent
29dc315a13
commit
bf7980e570
|
|
@ -554,7 +554,7 @@ Page({
|
|||
var value = e.currentTarget.dataset.value || null;
|
||||
if (value != null) {
|
||||
swan.previewImage({
|
||||
current: 0,
|
||||
current: value,
|
||||
urls: [value]
|
||||
});
|
||||
}
|
||||
|
|
@ -567,7 +567,7 @@ Page({
|
|||
all.push(this.data.goods_photo[i]['images']);
|
||||
}
|
||||
swan.previewImage({
|
||||
current: index,
|
||||
current: all[index],
|
||||
urls: all
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ Page({
|
|||
preview_event() {
|
||||
if (app.data.default_user_head_src != this.data.avatar) {
|
||||
swan.previewImage({
|
||||
current: 0,
|
||||
current: this.data.avatar,
|
||||
urls: [this.data.avatar]
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -628,7 +628,7 @@ Page({
|
|||
if(value != null)
|
||||
{
|
||||
wx.previewImage({
|
||||
current: 0,
|
||||
current: value,
|
||||
urls: [value]
|
||||
});
|
||||
}
|
||||
|
|
@ -642,7 +642,7 @@ Page({
|
|||
all.push(this.data.goods_photo[i]['images']);
|
||||
}
|
||||
wx.previewImage({
|
||||
current: index,
|
||||
current: all[index],
|
||||
urls: all
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ Page({
|
|||
if(app.data.default_user_head_src != this.data.avatar)
|
||||
{
|
||||
wx.previewImage({
|
||||
current: 0,
|
||||
current: this.data.avatar,
|
||||
urls: [this.data.avatar]
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue