Commit 996ee4620a4a5e161bf7bf0dadda8912275fd80f
1 parent
02f90d69
注册提示语的优化
Showing
5 changed files
with
26 additions
and
7 deletions
packageA/pages/profile/profile.js
... | ... | @@ -1066,7 +1066,7 @@ Page({ |
1066 | 1066 | return false; |
1067 | 1067 | } |
1068 | 1068 | else { |
1069 | - return ut.m_toast("授权登入失败!" + e.data.msg); | |
1069 | + return app.my_warnning("授权登入失败!" + e.data.msg,0,th); | |
1070 | 1070 | } |
1071 | 1071 | getApp().globalData.login_back = 1; |
1072 | 1072 | wx.setStorageSync("userinfo", e.data.data); | ... | ... |
packageD/components/diy_login/login.js
... | ... | @@ -379,7 +379,7 @@ Component({ |
379 | 379 | return false; |
380 | 380 | } |
381 | 381 | else { |
382 | - return app.showWarning("授权登入失败!" + e.data.msg); | |
382 | + return app.my_warnning("授权登入失败!" + e.data.msg,0,th); | |
383 | 383 | } |
384 | 384 | getApp().globalData.login_back = 1; |
385 | 385 | wx.setStorageSync("userinfo", e.data.data); | ... | ... |
packageE/pages/qy/contactMe/contactMe.js
... | ... | @@ -615,8 +615,21 @@ Page({ |
615 | 615 | success: function (e) { |
616 | 616 | if (e.data.code == 0) { |
617 | 617 | app.globalData.user_id = e.data.data.user_id; |
618 | - } else { | |
619 | - return app.showWarning("授权登入失败!" + e.data.msg); | |
618 | + } | |
619 | + else if(e.data.code==-3){ | |
620 | + wx.showModal({ | |
621 | + title: e.data.msg, | |
622 | + success: function (e) { | |
623 | + if(e.confirm){ | |
624 | + dd.isreplacemobile=1; | |
625 | + th.zu_ce(dd); | |
626 | + } | |
627 | + } | |
628 | + }); | |
629 | + return false; | |
630 | + } | |
631 | + else { | |
632 | + return app.my_warnning("授权登入失败!" + e.data.msg,0,th); | |
620 | 633 | } |
621 | 634 | getApp().globalData.login_back = 1; |
622 | 635 | wx.setStorageSync("userinfo", e.data.data); | ... | ... |
packageE/pages/togoin/togoin.js
... | ... | @@ -448,6 +448,7 @@ Page({ |
448 | 448 | |
449 | 449 | wx.hideLoading(); |
450 | 450 | th.setData({ sub: 0 }); |
451 | + | |
451 | 452 | |
452 | 453 | if (e.data.code == 0) { |
453 | 454 | app.globalData.user_id = e.data.data.user_id; |
... | ... | @@ -466,7 +467,7 @@ Page({ |
466 | 467 | return false; |
467 | 468 | } |
468 | 469 | else { |
469 | - return app.showWarning("授权登入失败!" + e.data.msg); | |
470 | + return app.my_warnning("授权登入失败!" + e.data.msg,0,th); | |
470 | 471 | } |
471 | 472 | getApp().globalData.login_back = 1; |
472 | 473 | wx.setStorageSync("userinfo", e.data.data); | ... | ... |
packageE/pages/user/labels/labels.js
... | ... | @@ -256,6 +256,9 @@ Page({ |
256 | 256 | data: getApp().globalData.zc_dd, |
257 | 257 | success: function (e) { |
258 | 258 | wx.hideLoading(); |
259 | + | |
260 | + e.data.code=-5; | |
261 | + | |
259 | 262 | if (e.data.code == 0) { |
260 | 263 | app.globalData.user_id = e.data.data.user_id; |
261 | 264 | } |
... | ... | @@ -276,7 +279,7 @@ Page({ |
276 | 279 | |
277 | 280 | else { |
278 | 281 | th.setData({loading: 0,is_check:0}); |
279 | - return app.showWarning("授权登入失败!" + e.data.msg); | |
282 | + return app.my_warnning("授权登入失败!" + e.data.msg,0,th); | |
280 | 283 | } |
281 | 284 | |
282 | 285 | getApp().globalData.login_back = 1; |
... | ... | @@ -464,6 +467,8 @@ Page({ |
464 | 467 | wx.hideLoading(); |
465 | 468 | th.setData({loading: 0,is_check:0}); |
466 | 469 | |
470 | + e.data.code=-5; | |
471 | + | |
467 | 472 | if (e.data.code == 0) { |
468 | 473 | app.globalData.user_id = e.data.data.user_id; |
469 | 474 | } |
... | ... | @@ -484,7 +489,7 @@ Page({ |
484 | 489 | } |
485 | 490 | |
486 | 491 | else { |
487 | - return app.showWarning("授权登入失败!" + e.data.msg); | |
492 | + return app.my_warnning("授权登入失败!" + e.data.msg,0,th); | |
488 | 493 | } |
489 | 494 | getApp().globalData.login_back = 1; |
490 | 495 | wx.setStorageSync("userinfo", e.data.data); | ... | ... |