Files
2024-08-22 12:53:28 +08:00

35 lines
799 B
JavaScript

var t = getApp();
Page({
data: {
imageUrlList: []
},
preview: function(t) {
var a = t.currentTarget.dataset.src;
console.log(a);
var e = this.data.imageUrlList;
console.log(e), wx.previewImage({
current: a,
urls: e
});
},
pays: function() {
var a = this;
t._get("index/payList", {}, function(t) {
var e = t.data, r = [];
e.res.pays.forEach(function(t) {
r.push(t.url);
}), a.setData(e), a.setData({
imageUrlList: r
});
});
},
ToOrder: function() {
wx.redirectTo({
url: "../order/index?type=payment"
});
},
onLoad: function(t) {
this.pays();
}
});