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

23 lines
558 B
JavaScript

var t = getApp().requirejs("core");
Page({
data: {},
onLoad: function(t) {
this.setData({
options: t
});
},
onShow: function() {
this.getData();
},
getData: function() {
var e = this;
t.get("commission/index", {}, function(t) {
7e4 != t.error ? (t.show = !0, e.setData(t), wx.setNavigationBarTitle({
title: t.set.texts.center
})) : wx.redirectTo({
url: "/commission/pages/register/index"
});
});
}
});