Commit d2e6b095ee3144e53f4d281f09ab5b9b19090929
1 parent
aadb3c44
分销功能
Showing
6 changed files
with
16 additions
and
0 deletions
app.js
... | ... | @@ -603,6 +603,22 @@ App({ |
603 | 603 | }) |
604 | 604 | }) |
605 | 605 | }, |
606 | + | |
607 | + | |
608 | + // 判断是否登录 | |
609 | + isLogin() { | |
610 | + return new Promise(function(resolve, reject) { | |
611 | + let user_info = getApp().globalData.userInfo; | |
612 | + if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | |
613 | + wx.navigateTo({ | |
614 | + url: '/pages/togoin/togoin', | |
615 | + }) | |
616 | + return false; | |
617 | + } else { | |
618 | + resolve(); | |
619 | + }; | |
620 | + }); | |
621 | + }, | |
606 | 622 | |
607 | 623 | |
608 | 624 | ... | ... |
public/static/images/model/car.png deleted
1.79 KB
public/static/images/model/nav.png deleted
1.16 KB
public/static/images/model/notice.png deleted
1.77 KB
public/static/images/model/select.png deleted
1.45 KB
public/static/images/model/time.png deleted
1.32 KB