wpfw_ewei_wxapp/pages/creditshop/verify/index.js
2023-02-26 08:10:18 +08:00

47 lines
1.1 KiB
JavaScript

var e = getApp(), i = e.requirejs("core");
e.requirejs("icons"), e.requirejs("foxui"), e.requirejs("wxParse/wxParse"), e.requirejs("jquery");
Page({
data: {
eno: 0,
qrcode: "",
logid: 0,
options: []
},
onLoad: function(e) {
var i = this;
e = e || {}, wx.getSystemInfo({
success: function(e) {
i.setData({
windowWidth: e.windowWidth,
windowHeight: e.windowHeight
});
}
}), i.setData({
options: e,
logid: e.id
});
},
onReady: function() {},
onShow: function() {
e.getCache("isIpx") ? this.setData({
isIpx: !0,
iphonexnavbar: "fui-iphonex-navbar"
}) : this.setData({
isIpx: !1,
iphonexnavbar: ""
}), this.getDetail();
},
getDetail: function(e) {
var t = this;
i.get("creditshop/exchange/qrcode", {
id: t.data.logid
}, function(e) {
t.setData({
eno: e.eno,
qrcode: e.qrcode
});
});
}
});