引入了fb

This commit is contained in:
2020-10-28 15:23:28 +08:00
parent 62464051c3
commit 5c6e6b0516
5 changed files with 87 additions and 54 deletions

View File

@@ -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
};
},
});

View File

@@ -367,6 +367,7 @@ export default defineComponent({
position: relative;
left: 80px;
top: 11px;
display: inline-block;
}
.submit {
font-size: 10px;