23 lines
558 B
JavaScript
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"
|
|
});
|
|
});
|
|
}
|
|
}); |