Commit d24dbaf6c07a5d32bea3dc36d84f40b0c52cac17

Authored by yvan.ni
1 parent d660e2f8

快捷登录的修改

pages/togoin/togoin.wxml
@@ -4,8 +4,10 @@ @@ -4,8 +4,10 @@
4 <view > 4 <view >
5 <view class="logins flex-center2 ali-c flex" style="position: relative;top: 120rpx;"> 5 <view class="logins flex-center2 ali-c flex" style="position: relative;top: 120rpx;">
6 <image mode="widthFix" bindtap="go_index" class="login_img_back" src="{{imghots}}/miniapp/images/loginbg.jpg"></image> 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 </view> 11 </view>
10 </view> 12 </view>
11 13
pages/togoin/togoin.wxss
@@ -14,7 +14,6 @@ page{ @@ -14,7 +14,6 @@ page{
14 width: 192rpx; 14 width: 192rpx;
15 height: 192rpx; 15 height: 192rpx;
16 border-radius: 50%; 16 border-radius: 50%;
17 - position: absolute;  
18 } 17 }
19 .phones{ 18 .phones{
20 margin-bottom: 48rpx; 19 margin-bottom: 48rpx;
@@ -62,3 +61,7 @@ button{ @@ -62,3 +61,7 @@ button{
62 .f2 { 61 .f2 {
63 flex: 2 0; 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,7 +213,7 @@ module.exports = {
213 var userInfo = a.userInfo; 213 var userInfo = a.userInfo;
214 if (userInfo==undefined){ 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 }else{ 218 }else{
219 a && void 0 != a ? (n.globalData.wechatUser = a, o.login(t, a, e)) : o.goGetUserInfo(); 219 a && void 0 != a ? (n.globalData.wechatUser = a, o.login(t, a, e)) : o.goGetUserInfo();