引入了fb
This commit is contained in:
parent
62464051c3
commit
5c6e6b0516
@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh_CN">
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
@ -60,12 +61,27 @@
|
||||
}
|
||||
})(1366, 1024);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
||||
Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
<script>
|
||||
window.fbAsyncInit = function () {
|
||||
FB.init({
|
||||
appId: '277826133389999',
|
||||
autoLogAppEvents: true,
|
||||
xfbml: true,
|
||||
version: 'v8.0'
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
2
src/import-png.d.ts
vendored
2
src/import-png.d.ts
vendored
@ -12,3 +12,5 @@ declare module "ant-design-vue/es/locale/zh_CN" {
|
||||
const value: any;
|
||||
export default value;
|
||||
}
|
||||
|
||||
declare var FB: any;
|
@ -53,6 +53,7 @@ export default createStore({
|
||||
setUserInfo(state, userinfo){
|
||||
userinfo.money = userinfo.money.toString()
|
||||
state.userinfo = userinfo
|
||||
state.islogin = true;
|
||||
},
|
||||
login(state, islogin: boolean){
|
||||
state.islogin = islogin;
|
||||
|
@ -92,7 +92,7 @@
|
||||
<div class="icons">
|
||||
<img src="@/static/images/weixin.png" alt="" class="icon" />
|
||||
<img src="@/static/images/weibo.png" alt="" class="icon" />
|
||||
<img src="@/static/images/facebook.png" alt="" class="icon" />
|
||||
<img src="@/static/images/facebook.png" alt="" class="icon" @click="slogin(3)" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -249,6 +249,18 @@ export default defineComponent({
|
||||
function navto(){
|
||||
router.push("/about")
|
||||
}
|
||||
|
||||
function slogin(index: number){
|
||||
console.log(index)
|
||||
if(index == 3){
|
||||
window.FB.login(function(response: any){
|
||||
console.log(response)
|
||||
// handle the response
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
formLayout,
|
||||
tabselected,
|
||||
@ -265,7 +277,8 @@ export default defineComponent({
|
||||
sublogin,
|
||||
videolist,
|
||||
tovideoxq,
|
||||
navto
|
||||
navto,
|
||||
slogin
|
||||
};
|
||||
},
|
||||
});
|
||||
|
@ -367,6 +367,7 @@ export default defineComponent({
|
||||
position: relative;
|
||||
left: 80px;
|
||||
top: 11px;
|
||||
display: inline-block;
|
||||
}
|
||||
.submit {
|
||||
font-size: 10px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user