ソースを参照

显示手机绑定相关

junyuanz 4 年 前
コミット
f30fc79a6f
共有2 個のファイルを変更した6 個の追加5 個の削除を含む
  1. 5 4
      pages/user/all/all.js
  2. 1 1
      pages/user/all/all.wxml

+ 5 - 4
pages/user/all/all.js

@@ -247,7 +247,8 @@ Page({
       console.log(res)
       that.setData({
         info: res.data,
-        show: res.data.wx_user?res.data.wx_user.show_invite_mode:''
+        show: res.data.wx_user?res.data.wx_user.show_invite_mode:'',
+		bindTel: res.data.tel ? true : false
       })
     }
     _request.$get(url, params, success)
@@ -273,9 +274,9 @@ Page({
           that.getmerchant()
         }
         if (res.data.user_id > 0 && !that.data.bindTel) {
-          that.setData({
-            bindTel: true
-          })
+          // that.setData({
+          //   bindTel: true
+          // })
           that.getBalanceInfo()
           that.getIntegralInfo()
           that.info()

+ 1 - 1
pages/user/all/all.wxml

@@ -19,7 +19,7 @@
     <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 2}}">(身份:店长)</span>
     <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 3}}">(身份:区域代理)</span>
     
-    <view wx:if="{{userInfo != 'nologin' && !bindTel}}">
+    <view wx:if="{{userInfo != 'nologin' && !bindTel}}" style="left: 260rpx;position: absolute;width: 300rpx;top: 44rpx;">
       <view class="user-title">
         <text>尚未绑定手机 , </text>
       </view>