Commit d24dbaf6c07a5d32bea3dc36d84f40b0c52cac17
1 parent
d660e2f8
快捷登录的修改
Showing
3 changed files
with
9 additions
and
4 deletions
pages/togoin/togoin.wxml
... | ... | @@ -4,8 +4,10 @@ |
4 | 4 | <view > |
5 | 5 | <view class="logins flex-center2 ali-c flex" style="position: relative;top: 120rpx;"> |
6 | 6 | <image mode="widthFix" bindtap="go_index" class="login_img_back" src="{{imghots}}/miniapp/images/loginbg.jpg"></image> |
7 | - <image bindtap="go_index" class="login_img" src="{{store_logo}}" binderror="bind_bnerr" lazy-load="true" data-errorimg="store_logo"></image> | |
8 | - <view style="position: absolute; margin-top:140rpx">{{store.store_name}}</view> | |
7 | + <view class="middle_view"> | |
8 | + <image bindtap="go_index" class="login_img" src="{{store_logo}}" binderror="bind_bnerr" lazy-load="true" data-errorimg="store_logo"></image> | |
9 | + <view>{{store.store_name}}</view> | |
10 | + </view> | |
9 | 11 | </view> |
10 | 12 | </view> |
11 | 13 | ... | ... |
pages/togoin/togoin.wxss
... | ... | @@ -14,7 +14,6 @@ page{ |
14 | 14 | width: 192rpx; |
15 | 15 | height: 192rpx; |
16 | 16 | border-radius: 50%; |
17 | - position: absolute; | |
18 | 17 | } |
19 | 18 | .phones{ |
20 | 19 | margin-bottom: 48rpx; |
... | ... | @@ -62,3 +61,7 @@ button{ |
62 | 61 | .f2 { |
63 | 62 | flex: 2 0; |
64 | 63 | } |
64 | + | |
65 | +.middle_view{ | |
66 | + position: absolute; left: 0; width: 100%; text-align: center; | |
67 | +} | ... | ... |
utils/auth.js
... | ... | @@ -213,7 +213,7 @@ module.exports = { |
213 | 213 | var userInfo = a.userInfo; |
214 | 214 | if (userInfo==undefined){ |
215 | 215 | //判断本地是数据是否正确 |
216 | - n.goto("/pages/togoin/togoin"); | |
216 | + if(n.globalData.wxapp_buy_obj && n.globalData.wxapp_buy_obj.isbuy==1 && n.globalData.wxapp_buy_obj.isout==0 ) n.goto("/pages/togoin/togoin"); | |
217 | 217 | |
218 | 218 | }else{ |
219 | 219 | a && void 0 != a ? (n.globalData.wechatUser = a, o.login(t, a, e)) : o.goGetUserInfo(); | ... | ... |