Commit 19b5008e4f4593d7a620251d44ecc5fd398f6900

Authored by abson
1 parent 3d7ee4c2

注册推送

Showing 1 changed file with 2 additions and 23 deletions
pages/togoin/togoin.js
... ... @@ -68,33 +68,12 @@ Page({
68 68 return app.my_warnning("登录需要授权手机号码!", 0, this);
69 69 return false;
70 70 }
71   - var th=this;
72 71 var sessionKey = getApp().globalData.sessionKey;
73 72 var openid = getApp().globalData.openid;
74   - var r=getApp().globalData.getu;
75   -
76   - if(e){
77   - wx.showModal({
78   - title: '授权通知',
79   - content:'是否接受注册成功通知',
80   - success(res){
81   - if(res.confirm){
82   - th.sendsm(function (){
83   - th.save_the_data(r,e,sessionKey,openid)
84   - })
85   - }else if(res.cancel){
86   - th.save_the_data(r,e,sessionKey,openid)
87   - }
88   - }
89   -
90   - })
91   - }
92   -
93   -
  73 + var r=getApp().globalData.getu;
  74 + this.save_the_data(r,e,sessionKey,openid)
94 75 },
95   - requestSubscribe(){
96 76  
97   - },
98 77  
99 78 //-- 会员授权 --
100 79 bindGetUserInfo: function(ee) {
... ...