引入了fb
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user