Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
1c28de4c
Commit
1c28de4c
authored
May 13, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
463e9668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
74 deletions
+74
-74
apps/basic/Tpl/default/Passport/login_w3g.html
+74
-74
No files found.
apps/basic/Tpl/default/Passport/login_w3g.html
View file @
1c28de4c
...
@@ -45,86 +45,86 @@
...
@@ -45,86 +45,86 @@
<a class="fr" href="{:U('home/Repwd/index')}">忘记密码</a>
<a class="fr" href="{:U('home/Repwd/index')}">忘记密码</a>
</div> -->
</div> -->
<div
id=
"app"
>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<div
class=
"layout_v"
>
<span
class=
"text_26_600 color_333333 login_title"
>
账号登录
</span>
<span
class=
"text_26_600 color_333333 login_title"
>
账号登录
</span>
<div
class=
"login_input_frame layout_v"
>
<div
class=
"login_input_frame layout_v"
>
<van-field
class=
"login_input"
left-icon=
"__THEME__/img/account_icon.png"
v-model=
"phone"
type=
"tel"
placeholder=
"请输入手机号"
></van-field>
<van-field
class=
"login_input"
left-icon=
"__THEME__/img/account_icon.png"
v-model=
"phone"
type=
"tel"
placeholder=
"请输入手机号"
></van-field>
<van-field
class=
"login_input"
left-icon=
"__THEME__/img/pwd_icon.png"
v-model=
"password"
type=
"password"
placeholder=
"请输入8~16位密码"
></van-field>
<van-field
class=
"login_input"
left-icon=
"__THEME__/img/pwd_icon.png"
v-model=
"password"
type=
"password"
placeholder=
"请输入8~16位密码"
></van-field>
<div
class=
"van-hairline--bottom"
style=
"transform: scaleY(.5);"
></div>
<div
class=
"van-hairline--bottom"
style=
"transform: scaleY(.5);"
></div>
</div>
</div>
<div
class=
"layout_h_b login_action_bar"
>
<div
class=
"layout_h_b login_action_bar"
>
<a
href=
"{:U('basic/Passport/reg')}"
><span
class=
"text_12_400 color_primary"
>
立即注册
</span></a>
<a
href=
"{:U('basic/Passport/reg')}"
><span
class=
"text_12_400 color_primary"
>
立即注册
</span></a>
<a><span
class=
"text_12_400 color_666666"
>
忘记密码?
</span></a>
<a><span
class=
"text_12_400 color_666666"
>
忘记密码?
</span></a>
</div>
</div>
<div
@
click=
"onConfirm"
:class=
"isOk ? 'confirm_button' : 'confirm_button_disable'"
style=
"margin-top: 6.625rem;"
>
<div
@
click=
"onConfirm"
:class=
"isOk ? 'confirm_button' : 'confirm_button_disable'"
style=
"margin-top: 6.625rem;"
>
<span>
登录
</span>
<span>
登录
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
<script>
$
(
function
()
{
$
(
function
()
{
// $('.loginbox').height($('.loginbox')[0].clientHeight);
// $('.login_btn').click(function(){
// if($('#account_input').val() == ''){
// ui.error('登录名或登录账号不能为空');
// return;
// }
// if($('#pwd_input').val() == ''){
// ui.error('登录密码不能为空');
// return;
// }
// $.post(U('basic/Passport/doLogin'),$('#ajax_login_form').serialize(),function(data){
// if(data.status == 1){
// ui.success('登录成功');
// var reurl = "{$reurl}";
// if(reurl) {
// window.location.href = reurl;
// } else {
// window.location.href = data.data;;
// }
// } else {
// ui.error(data.info);
// return false;
// }
// },'json');
// });
$
(
"#preloader"
).
hide
();
$
(
"#preloader"
).
hide
();
});
});
String
.
prototype
.
isMobile
=
function
()
{
String
.
prototype
.
isMobile
=
function
()
{
return
(
/^1
[
3|4|5|6|7|8|9
]\d{9}
$/
.
test
(
this
));
return
(
/^1
[
3|4|5|6|7|8|9
]\d{9}
$/
.
test
(
this
));
}
}
String
.
prototype
.
isPwd
=
function
()
{
String
.
prototype
.
isPwd
=
function
()
{
return
this
.
length
>=
8
&&
this
.
length
<=
16
return
this
.
length
>=
8
&&
this
.
length
<=
16
}
}
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
data
:
function
()
{
data
:
function
()
{
return
{
return
{
phone
:
''
,
phone
:
''
,
password
:
''
password
:
''
}
}
},
},
computed
:
{
computed
:
{
isOk
:
function
()
{
isOk
:
function
()
{
return
this
.
phone
.
isMobile
()
&&
this
.
password
.
isPwd
()
return
this
.
phone
.
isMobile
()
&&
this
.
password
.
isPwd
()
}
}
},
},
methods
:
{
methods
:
{
onConfirm
:
function
()
{
onConfirm
:
function
()
{
let
phone
=
this
.
phone
}
let
pwd
=
this
.
password
}
})
if
(
phone
==
''
)
{
ui
.
error
(
'登录名或登录账号不能为空'
);
return
;
}
if
(
pwd
==
''
)
{
ui
.
error
(
'登录密码不能为空'
);
return
;
}
$
.
post
(
U
(
'basic/Passport/doLogin'
),
{
login_email
:
phone
,
login_password
:
pwd
},
function
(
data
)
{
if
(
data
.
status
==
1
)
{
ui
.
success
(
'登录成功'
)
var
reurl
=
"{$reurl}"
if
(
reurl
)
{
window
.
location
.
href
=
reurl
}
else
{
window
.
location
.
href
=
data
.
data
}
}
else
{
ui
.
error
(
data
.
info
)
return
false
}
},
'json'
)
}
}
})
</script>
</script>
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