zhaoxiaohai %!s(int64=2) %!d(string=hai) anos
pai
achega
f6d7185133
Modificáronse 3 ficheiros con 5 adicións e 4 borrados
  1. 1 1
      pages/login/modules/phone.js
  2. 3 1
      pages/login/phone.js
  3. 1 2
      pages/login/phone.wxml

+ 1 - 1
pages/login/modules/phone.js

@@ -68,7 +68,7 @@ Component({
             getCurrentPages().forEach(v => {
                 if (['pages/login/phone'].includes(v.__route__)) {
                     v.setData({
-                        disabled: this.data.phonenumber && this.data.password.length
+                        disabled: this.data.phonenumber.length == 0 || this.data.password.length == 0
                     })
                 }
             })

+ 3 - 1
pages/login/phone.js

@@ -1,5 +1,6 @@
 import Toast from '@vant/weapp/toast/toast';
-const _Http = getApp().globalData.http;
+const _Http = getApp().globalData.http,
+    loginMsg = require("./modules/login");
 Page({
 
     /**
@@ -25,6 +26,7 @@ Page({
                         wechat_code: res.code,
                         "systemclient": "wechatsaletool"
                     }).then(res => {
+                        console.log("微信快捷登录", res)
                         if (res.code == 0) return wx.showToast({
                             title: res.msg,
                             icon: "none"

+ 1 - 2
pages/login/phone.wxml

@@ -6,7 +6,6 @@
 <phone id='login' wx:if="{{site=='美大'}}" />
 <!-- 账号登录 -->
 <account wx:else id='login' />
-
 <view style="width: 100vw; text-align: center;margin-top: 60rpx;margin-bottom: 40rpx;">
     <van-button disabled='{{disabled}}' custom-class='login' bindtap="userLogin" loading='{{loading}}' loading-text="登陆中..." color='linear-gradient(90deg, #3874F6 0%, #095DE0 100%);'>登录</van-button>
 </view>
@@ -15,7 +14,7 @@
 <Agreement isAgree='{{isAgree}}' bindcallBack='agreementChange' />
 
 <!-- 快捷登录 -->
-<block wx:if="{{false}}">
+<block >
     <view style="height: 100rpx;" />
     <van-divider contentPosition="center">其他登录方式</van-divider>
     <view style="width: 100%; text-align: center;">