Commit 8554a655 authored by lvtz's avatar lvtz

fix

parent de36c86f
......@@ -29,6 +29,10 @@ Page({
warnTip: ''
},
onLoad: function(options) { // Do some initialize when page load.
const {mobile} = options;
this.setData({
'params.mobile': mobile || ''
})
wx.hideShareMenu()
},
onReady: function() { // Do something when page ready.
......
......@@ -4,7 +4,7 @@
<view class="left-iconbox">
<image class="left-icon icon-phone" src="{{localImageRoot}}2b/loginregistermgt/icon_phone.png?{{imageVersion}}"></image>
</view>
<input type="number" maxlength="11" bindinput="mobileInput" placeholder-class="placeholderclass" value="" placeholder="请输入您的手机号码" />
<input type="number" maxlength="11" bindinput="mobileInput" placeholder-class="placeholderclass" value="{{params.mobile}}" placeholder="请输入您的手机号码" />
<button class="btn-getcode {{hasSend || params.mobile.length!=11 ? 'btn-getcode-disabled': ''}}" bindtap="sendVerify" disabled="{{hasSend}}">{{hasSend ? '重新获取('+countdownTime+'s)': '获取验证码'}}</button>
</view>
<view class="form-item">
......
......@@ -103,6 +103,7 @@ Page({
this.setData({
type:!this.data.type
})
console.log(this.data.params)
},
psdShowOrHide(e){
const {flag} = e.currentTarget.dataset;
......
......@@ -4,7 +4,7 @@
<view class="login-type1" wx:if="{{type}}">
<view class="form-item">
<view class="left-iconbox">
<image class="left-icon" src="{{localImageRoot}}2b/loginregistermgt/icon_phone.png?{{imageVersion}}" style="width:40rpx;height:50rpx"></image>
<image class="left-icon icon-phone" src="{{localImageRoot}}2b/loginregistermgt/icon_phone.png?{{imageVersion}}"></image>
</view>
<input type="number" placeholder-class="placeholderclass" value="{{params.mobile}}" bindinput="mobileInput" maxlength="11" placeholder="请输入您的手机号码" />
<button class="btn-getcode {{hasSend || params.mobile.length<11 ? 'codesended': ''}}" bindtap="sendVerify"
......@@ -18,9 +18,9 @@
</view>
<view class="form-item">
<view class="left-iconbox">
<image class="left-icon" src="{{localImageRoot}}2b/loginregistermgt/icon_code.png?{{imageVersion}}" style="width:28rpx;height:20rpx"></image>
<image class="left-icon icon-code" src="{{localImageRoot}}2b/loginregistermgt/icon_code.png?{{imageVersion}}"></image>
</view>
<input type="number" maxlength="4" bindinput="codeInput" placeholder-class="placeholderclass" value="" placeholder="请输入验证码" />
<input type="number" maxlength="4" bindinput="codeInput" placeholder-class="placeholderclass" value="{{params.verify_code}}" placeholder="请输入验证码" />
<view class="warnbox" hover-class="none" hover-stop-propagation="false" hidden="{{!codeWrong}}">
<icon class="warnicon" type="warn" size="12" color="">
</icon>
......@@ -32,17 +32,17 @@
<view class="login-type2" wx:else>
<view class="form-item">
<view class="left-iconbox">
<image class="left-icon" src="{{localImageRoot}}2b/loginregistermgt/icon_phone.png?{{imageVersion}}" style="width:40rpx;height:50rpx"></image>
<image class="left-icon icon-phone" src="{{localImageRoot}}2b/loginregistermgt/icon_phone.png?{{imageVersion}}"></image>
</view>
<input type="number" placeholder-class="placeholderclass" value="{{params.mobile}}" bindinput="mobileInput" maxlength="11" placeholder="请输入账号" />
</view>
<view class="form-item">
<view class="left-iconbox">
<image class="left-icon" src="{{imageRoot}}2b/login/psdicon.png?{{imageVersion}}" style="width:23rpx;height:27rpx"></image>
<image class="left-icon icon-psd" src="{{localImageRoot}}2b/loginregistermgt/icon_psd.png?{{imageVersion}}"></image>
</view>
<input type="{{psdIsShow?'text':'password'}}" placeholder-class="placeholderclass" value="{{params.password}}" bindinput="passwordInput" placeholder="请输入密码" />
<image class="icon-psdstatus" src="{{localImageRoot}}2b/loginregistermgt/psd_hide.png?{{imageVersion}}" style="width:38rpx;height:18rpx" wx:if="{{!psdIsShow}}" data-flag="{{true}}" bindtap="psdShowOrHide"></image>
<image class="icon-psdstatus" src="{{localImageRoot}}2b/loginregistermgt/psd_show.png?{{imageVersion}}" style="width:38rpx;height:18rpx" data-flag="{{false}}" bindtap="psdShowOrHide" wx:else></image>
<image class="icon-psdstatus icon-psdhide" src="{{localImageRoot}}2b/loginregistermgt/psd_hide.png?{{imageVersion}}" wx:if="{{!psdIsShow}}" data-flag="{{true}}" bindtap="psdShowOrHide"></image>
<image class="icon-psdstatus icon-psdshow" src="{{localImageRoot}}2b/loginregistermgt/psd_show.png?{{imageVersion}}" data-flag="{{false}}" bindtap="psdShowOrHide" wx:else></image>
<view class="warnbox clearfix" hover-class="none" hover-stop-propagation="false" hidden="{{!psdWrong}}">
<icon class="warnicon" type="warn" size="12" color="">
</icon>
......@@ -51,8 +51,9 @@
</view>
</view>
</view>
<form bindsubmit="login" report-submit="true">
<button class="{{params.mobile.length==11&&((!type&&params.password) || (type&&params.verify_code))?'formBtn':'formBtn formBtn-dark'}} " form-type="submit">{{submiting ? '登录中...' : '登录'}}</button>
<form bindsubmit="login" report-submit="true" >
<button class="formBtn" form-type="submit" disabled="{{params.mobile.length!=11 || !params.verify_code}}" wx:if="{{type}}">{{submiting ? '登录中...' : '登录'}}</button>
<button class="formBtn" form-type="submit" disabled="{{params.mobile.length!=11 || !params.password}}" wx:else>{{submiting ? '登录中...' : '登录'}}</button>
</form>
<view class="form-box-bottom" style="{{!type?'':'justify-content:center'}}">
<view class="tab-btn" bindtap="tabChange">{{ type? '密码登录':'验证码登录'}}</view>
......
......@@ -52,13 +52,4 @@
color: #F76260;
float: left;
line-height: 1;
}
.formBtn-dark{
font-size:26rpx;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(253,253,253,1);
}
.formBtn{
color:rgba(253,253,253,1);
}
\ No newline at end of file
......@@ -186,7 +186,7 @@ Page({
registerPost(Object.assign(commitParams, {
source: '8bcb4259b2771cc9',
union_id: visitor && visitor.unionid,
open_id: visitor && visitor.openid,
min_open_id: visitor && visitor.openid,
nickname: visitor && visitor.userInfo && visitor.userInfo.nickName,
avator: visitor && visitor.userInfo && visitor.userInfo.avatarUrl,
......@@ -212,6 +212,7 @@ Page({
mobile: commitParams.mobile,
// role: 1 // 1是校长 2是老师
})
LocalStorage.setItem('dakarole', 1);
formIdCreate({
formId
})
......
......@@ -37,6 +37,7 @@ export default {
1140: '提现金额有误', // amount is invalid
1141: '你的账号已在其他设备登录', // user has logged in other places
1142: '登录参数错误', // login force is invalid
3362: '获取验证码频繁,稍后再试', //ip requests too much
20000: '未查到微信认证信息',
30000: '班级不存在',
30001: '你已经提交加入班级申请等待待审核',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment