Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f817f0cf
authored
Jun 20, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
20098f0a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
yazhaiTest/lib/demo.js
yazhaiTest/lib/login.js
yazhaiTest/login/login.html
yazhaiTest/pc.html
yazhaiTest/lib/demo.js
0 → 100644
View file @
f817f0cf
alert
(
12121
)
\ No newline at end of file
yazhaiTest/lib/login.js
View file @
f817f0cf
...
...
@@ -5,7 +5,7 @@ function loginGo(){
html
+=
' <div style="display: none;" class="login-box1">'
;
html
+=
' <div class="login-title">登入</div>'
;
html
+=
' <div class="phone-login-btn"></div>'
;
html
+=
' <div class="google-login-btn"></div>'
;
html
+=
' <div class="g
-signin2" data-onsuccess="onSignIn" data-theme="dark" class="g
oogle-login-btn"></div>'
;
html
+=
' <div class="more-login"><img src="http://test.ybact.ishuaji.cn/active2022/footseen/images/more-login.png" alt=""></div>'
;
html
+=
' <div class="more-login-box">'
;
html
+=
' <div class="more-login-icon"><img src="http://test.ybact.ishuaji.cn/active2022/footseen/images/login-icon2.png" alt=""></div>'
;
...
...
@@ -125,7 +125,20 @@ function loginGo(){
html
+=
'<div class="login-face-out">跳過,稍後再決定</div>'
;
html
+=
'</div>'
;
$
(
".login-content"
).
html
(
html
);
function
onSignIn
(
googleUser
)
{
// Useful data for your client-side scripts:
var
profile
=
googleUser
.
getBasicProfile
();
console
.
log
(
"ID: "
+
profile
.
getId
());
// Don't send this directly to your server!
console
.
log
(
'Full Name: '
+
profile
.
getName
());
console
.
log
(
'Given Name: '
+
profile
.
getGivenName
());
console
.
log
(
'Family Name: '
+
profile
.
getFamilyName
());
console
.
log
(
"Image URL: "
+
profile
.
getImageUrl
());
console
.
log
(
"Email: "
+
profile
.
getEmail
());
// The ID token you need to pass to your backend:
var
id_token
=
googleUser
.
getAuthResponse
().
id_token
;
console
.
log
(
"ID Token: "
+
id_token
);
}
var
html
=
[];
html
+=
'<div style="display: none;" class=nav-login-btn>登入/註冊</div>'
;
html
+=
'<div style="display: none;" class="nav-login">'
;
...
...
yazhaiTest/login/login.html
0 → 100644
View file @
f817f0cf
This diff is collapsed.
Click to expand it.
yazhaiTest/pc.html
View file @
f817f0cf
...
...
@@ -5,6 +5,7 @@
</script>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
...
...
@@ -15,6 +16,7 @@
<link
rel=
"stylesheet"
href=
"css/layer.css"
>
<link
rel=
"stylesheet"
href=
"css/neck.css"
>
<link
rel=
"stylesheet"
href=
"css/login.css"
>
<script
class=
"google-login"
async
defer
></script>
</head>
<body
style=
"background: #F4F5F8"
>
...
...
@@ -313,6 +315,11 @@
<script
src=
"lib/login.js"
></script>
<script>
$
(
function
(){
var
html
=
[]
html
+=
'
<
meta
name
=
"google-signin-scope"
content
=
"profile email"
>
'
html+='
<
meta
name
=
"google-signin-client_id"
content
=
"534183685500.apps.googleusercontent.com"
>
'
$("head").append(html)
$(".google-login").attr("src","https://apis.google.com/js/platform.js")
loginGo()
var scrollOk=true;
var pageNumber=1
...
...
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