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

27 lines
714 B
JavaScript

var e = getApp().requirejs("core");
Page({
data: {
showimage: !1
},
onLoad: function(e) {},
onShow: function() {
this.getData();
},
getData: function() {
var o = this;
e.get("commission/qrcode", {}, function(e) {
70001 != e.error ? (e.show = !0, o.setData(e), o.getImage()) : wx.redirectTo({
url: "/pages/member/info/index"
});
});
},
getImage: function() {
var o = this;
e.post("commission/qrcode", {}, function(e) {
70001 != e.error ? (e.showimage = !0, o.setData(e)) : wx.redirectTo({
url: "/pages/member/info/index"
});
});
}
});