Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
8554a655
Commit
8554a655
authored
Jun 19, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
de36c86f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
20 deletions
+19
-20
findpsd.js
business/pages/loginregistermgt/findpsd.js
+4
-0
findpsd.wxml
business/pages/loginregistermgt/findpsd.wxml
+1
-1
login.js
business/pages/loginregistermgt/login.js
+1
-0
login.wxml
business/pages/loginregistermgt/login.wxml
+10
-9
login.wxss
business/pages/loginregistermgt/login.wxss
+0
-9
register.js
business/pages/loginregistermgt/register.js
+2
-1
messages.js
constants/messages.js
+1
-0
No files found.
business/pages/loginregistermgt/findpsd.js
View file @
8554a655
...
...
@@ -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.
...
...
business/pages/loginregistermgt/findpsd.wxml
View file @
8554a655
...
...
@@ -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">
...
...
business/pages/loginregistermgt/login.js
View file @
8554a655
...
...
@@ -103,6 +103,7 @@ Page({
this
.
setData
({
type
:
!
this
.
data
.
type
})
console
.
log
(
this
.
data
.
params
)
},
psdShowOrHide
(
e
){
const
{
flag
}
=
e
.
currentTarget
.
dataset
;
...
...
business/pages/loginregistermgt/login.wxml
View file @
8554a655
...
...
@@ -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&¶ms.password) || (type&¶ms.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>
...
...
business/pages/loginregistermgt/login.wxss
View file @
8554a655
...
...
@@ -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
business/pages/loginregistermgt/register.js
View file @
8554a655
...
...
@@ -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
})
...
...
constants/messages.js
View file @
8554a655
...
...
@@ -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
:
'你已经提交加入班级申请等待待审核'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment