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
ac651390
Commit
ac651390
authored
Jun 18, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
55eb5749
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
apps/basic/Lib/Action/PassportAction.class.php
+4
-2
apps/basic/Tpl/default/Passport/login_w3g.html
+10
-10
No files found.
apps/basic/Lib/Action/PassportAction.class.php
View file @
ac651390
...
...
@@ -79,19 +79,21 @@ class PassportAction extends CommonAction
$_SESSION
[
'return_uri'
]
=
$_SERVER
[
'HTTP_REFERER'
];
}
// 微信登录
$reurl2
=
''
;
$ua
=
$_SERVER
[
'HTTP_USER_AGENT'
];
if
(
strpos
(
$ua
,
'MicroMessenger'
)
==
false
&&
strpos
(
$ua
,
'Windows Phone'
)
==
false
)
{
}
else
{
$pageKeyData
=
model
(
'Xdata'
)
->
get
(
'admin_Config:wxpay'
);
if
(
!
empty
(
$pageKeyData
[
'mp_appid'
]))
{
if
(
!
empty
(
$
_GET
[
'code'
])
&&
!
empty
(
$
pageKeyData
[
'mp_appid'
]))
{
$appId
=
$pageKeyData
[
'mp_appid'
];
$redirect_uri
=
urlencode
(
'http://'
.
$_SERVER
[
'SERVER_NAME'
]
.
$_SERVER
[
'REQUEST_URI'
]);
$reurl2
=
"https://open.weixin.qq.com/connect/oauth2/authorize?appid=
$appId
&redirect_uri=
$redirect_uri
&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
;
$this
->
assign
(
'wxUrl'
,
$reurl2
);
}
}
$this
->
assign
(
'wxUrl'
,
$reurl2
);
// $this->assign('login_bg', $login_bg);
$this
->
assign
(
'this_mhm_id'
,
$this_mhm_id
);
...
...
apps/basic/Tpl/default/Passport/login_w3g.html
View file @
ac651390
...
...
@@ -50,7 +50,7 @@
<div
class=
"layout_v"
>
<span
class=
"text_26_600 color_333333 login_title"
>
账号登录
</span>
{$wxUrl}
<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/pwd_icon.png"
v-model=
"password"
type=
"password"
maxlength=
"18"
placeholder=
"请输入6~18位密码"
></van-field>
...
...
@@ -88,20 +88,20 @@
}
},
methods
:
{
onConfirm
:
function
()
{
let
phone
=
this
.
phone
let
pwd
=
this
.
password
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
(
'登录成功'
)
...
...
@@ -119,4 +119,4 @@
}
}
})
</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