init
This commit is contained in:
30
wx214944c362629fc7/pages/phone/phone.js
Normal file
30
wx214944c362629fc7/pages/phone/phone.js
Normal file
@@ -0,0 +1,30 @@
|
||||
var n = getApp();
|
||||
|
||||
Page({
|
||||
data: {},
|
||||
onLoad: function(n) {},
|
||||
getPhoneNumber: function(o) {
|
||||
console.log(o.detail.code);
|
||||
var e = this, t = o.detail.code;
|
||||
n._post_form("user/getphone", {
|
||||
code: t
|
||||
}, function(n) {
|
||||
console.log(n), wx.setStorageSync("phone", n.phone), e.onNavigateBack(1);
|
||||
}, !1, function() {});
|
||||
},
|
||||
onNavigateBack: function() {
|
||||
wx.navigateBack();
|
||||
},
|
||||
onNotLogin: function() {
|
||||
wx.redirectTo({
|
||||
url: "/pages/index/index"
|
||||
});
|
||||
},
|
||||
onReady: function() {},
|
||||
onShow: function() {},
|
||||
onHide: function() {},
|
||||
onUnload: function() {},
|
||||
onPullDownRefresh: function() {},
|
||||
onReachBottom: function() {},
|
||||
onShareAppMessage: function() {}
|
||||
});
|
||||
Reference in New Issue
Block a user