diff --git a/public/index.html b/public/index.html index 013c5e4..30bfe4f 100644 --- a/public/index.html +++ b/public/index.html @@ -1,71 +1,87 @@ - + + <%= htmlWebpackPlugin.options.title %> - - + + +
- - + + + + + + \ No newline at end of file diff --git a/src/import-png.d.ts b/src/import-png.d.ts index 4f85ac9..48bb383 100644 --- a/src/import-png.d.ts +++ b/src/import-png.d.ts @@ -11,4 +11,6 @@ declare module "ant-design-vue/es/locale/en_US" { declare module "ant-design-vue/es/locale/zh_CN" { const value: any; export default value; -} \ No newline at end of file +} + +declare var FB: any; \ No newline at end of file diff --git a/src/store/index.ts b/src/store/index.ts index ff3c8ac..a281356 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -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; diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 57e59fb..5a93cbf 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -92,7 +92,7 @@
- +
@@ -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 }; }, }); diff --git a/src/views/mine/Cashout.vue b/src/views/mine/Cashout.vue index dfe20e8..5487add 100644 --- a/src/views/mine/Cashout.vue +++ b/src/views/mine/Cashout.vue @@ -367,6 +367,7 @@ export default defineComponent({ position: relative; left: 80px; top: 11px; + display: inline-block; } .submit { font-size: 10px;