xbx #204

Merged
theluyuan merged 3 commits from xbx into master 2020-12-01 10:55:03 +08:00
13 changed files with 62 additions and 11 deletions
Showing only changes of commit c5b57b62ba - Show all commits

4
dist/index.html vendored
View File

@ -61,11 +61,11 @@
left: 0; left: 0;
z-index: 1001; z-index: 1001;
display: none; display: none;
}</style><link href="/css/chunk-04e3a2fa.08ef3a2d.css" rel="prefetch"><link href="/css/chunk-05d3c41a.55076a31.css" rel="prefetch"><link href="/css/chunk-06828374.8e285ce3.css" rel="prefetch"><link href="/css/chunk-07015098.03da786d.css" rel="prefetch"><link href="/css/chunk-14e6a7cb.9cba31b5.css" rel="prefetch"><link href="/css/chunk-15125f63.0e433876.css" rel="prefetch"><link href="/css/chunk-1abac668.206f270b.css" rel="prefetch"><link href="/css/chunk-21d6a1b9.85832ac1.css" rel="prefetch"><link href="/css/chunk-2415f10c.0e433876.css" rel="prefetch"><link href="/css/chunk-27236dd2.3992b5d2.css" rel="prefetch"><link href="/css/chunk-2a197f09.b2772b24.css" rel="prefetch"><link href="/css/chunk-34d93bb8.4cba2bdb.css" rel="prefetch"><link href="/css/chunk-3706a68d.cbd49a68.css" rel="prefetch"><link href="/css/chunk-371ee143.78141e1e.css" rel="prefetch"><link href="/css/chunk-3c7641ed.f87c4e8b.css" rel="prefetch"><link href="/css/chunk-46e3b07d.9259aefd.css" rel="prefetch"><link href="/css/chunk-4e0b884c.48d44d85.css" rel="prefetch"><link href="/css/chunk-520d8a08.dd761c06.css" rel="prefetch"><link href="/css/chunk-623eb100.c75b32b7.css" rel="prefetch"><link href="/css/chunk-650d0cb1.47d38586.css" rel="prefetch"><link href="/css/chunk-68091c98.14c0db2d.css" rel="prefetch"><link href="/css/chunk-737c53fe.6caedc04.css" rel="prefetch"><link href="/css/chunk-74d6e86d.85aed290.css" rel="prefetch"><link href="/css/chunk-74d7e8d4.4686069f.css" rel="prefetch"><link href="/css/chunk-977f0f52.6081abf8.css" rel="prefetch"><link href="/css/chunk-ba7680ac.e4997ba6.css" rel="prefetch"><link href="/css/chunk-cc7ac8b2.cf93d877.css" rel="prefetch"><link href="/css/chunk-da7e1532.17a6e0e0.css" rel="prefetch"><link href="/css/chunk-ebdb96a0.d22f743d.css" rel="prefetch"><link href="/css/chunk-ef207110.a20941ed.css" rel="prefetch"><link href="/js/chunk-04e3a2fa.5c73601b.js" rel="prefetch"><link href="/js/chunk-05d3c41a.309217b8.js" rel="prefetch"><link href="/js/chunk-06828374.25d7860c.js" rel="prefetch"><link href="/js/chunk-07015098.1714873c.js" rel="prefetch"><link href="/js/chunk-14e6a7cb.5b3cdc94.js" rel="prefetch"><link href="/js/chunk-15125f63.65aeaec7.js" rel="prefetch"><link href="/js/chunk-1abac668.db10ff04.js" rel="prefetch"><link href="/js/chunk-21d6a1b9.a09d0530.js" rel="prefetch"><link href="/js/chunk-2415f10c.46bc3dde.js" rel="prefetch"><link href="/js/chunk-27236dd2.6a20330a.js" rel="prefetch"><link href="/js/chunk-2a197f09.ccd4de73.js" rel="prefetch"><link href="/js/chunk-34d93bb8.5765912a.js" rel="prefetch"><link href="/js/chunk-3706a68d.2cd69cd3.js" rel="prefetch"><link href="/js/chunk-371ee143.7a9d3662.js" rel="prefetch"><link href="/js/chunk-3c7641ed.3e2a9715.js" rel="prefetch"><link href="/js/chunk-46e3b07d.63da9fd1.js" rel="prefetch"><link href="/js/chunk-4e0b884c.362eb592.js" rel="prefetch"><link href="/js/chunk-520d8a08.76e69e99.js" rel="prefetch"><link href="/js/chunk-623eb100.a6c60ecd.js" rel="prefetch"><link href="/js/chunk-650d0cb1.80c408bc.js" rel="prefetch"><link href="/js/chunk-68091c98.6bc9c5f0.js" rel="prefetch"><link href="/js/chunk-737c53fe.2ca846cd.js" rel="prefetch"><link href="/js/chunk-74d6e86d.0149b918.js" rel="prefetch"><link href="/js/chunk-74d7e8d4.cbdff638.js" rel="prefetch"><link href="/js/chunk-977f0f52.456f221b.js" rel="prefetch"><link href="/js/chunk-ba7680ac.7a2e65a4.js" rel="prefetch"><link href="/js/chunk-cc7ac8b2.fe8f450b.js" rel="prefetch"><link href="/js/chunk-da7e1532.4b71bb2c.js" rel="prefetch"><link href="/js/chunk-ebdb96a0.cbefff6f.js" rel="prefetch"><link href="/js/chunk-ef207110.e64e7ebf.js" rel="prefetch"><link href="/css/app.feddf0de.css" rel="preload" as="style"><link href="/css/chunk-vendors.d0a33139.css" rel="preload" as="style"><link href="/js/app.73b01816.js" rel="preload" as="script"><link href="/js/chunk-vendors.5e652f88.js" rel="preload" as="script"><link href="/css/chunk-vendors.d0a33139.css" rel="stylesheet"><link href="/css/app.feddf0de.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but beelink doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><div id="make"></div><script>window.fbAsyncInit = function () { }</style><link href="/css/chunk-04e3a2fa.08ef3a2d.css" rel="prefetch"><link href="/css/chunk-05d3c41a.55076a31.css" rel="prefetch"><link href="/css/chunk-06828374.8e285ce3.css" rel="prefetch"><link href="/css/chunk-07015098.03da786d.css" rel="prefetch"><link href="/css/chunk-0d9de69e.0e433876.css" rel="prefetch"><link href="/css/chunk-14e6a7cb.9cba31b5.css" rel="prefetch"><link href="/css/chunk-1abac668.206f270b.css" rel="prefetch"><link href="/css/chunk-21d6a1b9.85832ac1.css" rel="prefetch"><link href="/css/chunk-2415f10c.0e433876.css" rel="prefetch"><link href="/css/chunk-27236dd2.3992b5d2.css" rel="prefetch"><link href="/css/chunk-2a197f09.b2772b24.css" rel="prefetch"><link href="/css/chunk-34d93bb8.4cba2bdb.css" rel="prefetch"><link href="/css/chunk-3706a68d.cbd49a68.css" rel="prefetch"><link href="/css/chunk-371ee143.78141e1e.css" rel="prefetch"><link href="/css/chunk-3c7641ed.f87c4e8b.css" rel="prefetch"><link href="/css/chunk-46e3b07d.9259aefd.css" rel="prefetch"><link href="/css/chunk-4e0b884c.48d44d85.css" rel="prefetch"><link href="/css/chunk-520d8a08.dd761c06.css" rel="prefetch"><link href="/css/chunk-623eb100.c75b32b7.css" rel="prefetch"><link href="/css/chunk-650d0cb1.47d38586.css" rel="prefetch"><link href="/css/chunk-68091c98.14c0db2d.css" rel="prefetch"><link href="/css/chunk-737c53fe.6caedc04.css" rel="prefetch"><link href="/css/chunk-74d6e86d.85aed290.css" rel="prefetch"><link href="/css/chunk-74d7e8d4.4686069f.css" rel="prefetch"><link href="/css/chunk-977f0f52.6081abf8.css" rel="prefetch"><link href="/css/chunk-ba7680ac.e4997ba6.css" rel="prefetch"><link href="/css/chunk-cc7ac8b2.cf93d877.css" rel="prefetch"><link href="/css/chunk-da7e1532.17a6e0e0.css" rel="prefetch"><link href="/css/chunk-ebdb96a0.d22f743d.css" rel="prefetch"><link href="/css/chunk-ef207110.a20941ed.css" rel="prefetch"><link href="/js/chunk-04e3a2fa.5c73601b.js" rel="prefetch"><link href="/js/chunk-05d3c41a.309217b8.js" rel="prefetch"><link href="/js/chunk-06828374.25d7860c.js" rel="prefetch"><link href="/js/chunk-07015098.1714873c.js" rel="prefetch"><link href="/js/chunk-0d9de69e.5551e621.js" rel="prefetch"><link href="/js/chunk-14e6a7cb.5b3cdc94.js" rel="prefetch"><link href="/js/chunk-1abac668.db10ff04.js" rel="prefetch"><link href="/js/chunk-21d6a1b9.a09d0530.js" rel="prefetch"><link href="/js/chunk-2415f10c.46bc3dde.js" rel="prefetch"><link href="/js/chunk-27236dd2.6a20330a.js" rel="prefetch"><link href="/js/chunk-2a197f09.ccd4de73.js" rel="prefetch"><link href="/js/chunk-34d93bb8.5765912a.js" rel="prefetch"><link href="/js/chunk-3706a68d.2cd69cd3.js" rel="prefetch"><link href="/js/chunk-371ee143.7a9d3662.js" rel="prefetch"><link href="/js/chunk-3c7641ed.3e2a9715.js" rel="prefetch"><link href="/js/chunk-46e3b07d.63da9fd1.js" rel="prefetch"><link href="/js/chunk-4e0b884c.362eb592.js" rel="prefetch"><link href="/js/chunk-520d8a08.76e69e99.js" rel="prefetch"><link href="/js/chunk-623eb100.a6c60ecd.js" rel="prefetch"><link href="/js/chunk-650d0cb1.80c408bc.js" rel="prefetch"><link href="/js/chunk-68091c98.6bc9c5f0.js" rel="prefetch"><link href="/js/chunk-737c53fe.2ca846cd.js" rel="prefetch"><link href="/js/chunk-74d6e86d.0149b918.js" rel="prefetch"><link href="/js/chunk-74d7e8d4.cbdff638.js" rel="prefetch"><link href="/js/chunk-977f0f52.456f221b.js" rel="prefetch"><link href="/js/chunk-ba7680ac.7a2e65a4.js" rel="prefetch"><link href="/js/chunk-cc7ac8b2.fe8f450b.js" rel="prefetch"><link href="/js/chunk-da7e1532.4b71bb2c.js" rel="prefetch"><link href="/js/chunk-ebdb96a0.cbefff6f.js" rel="prefetch"><link href="/js/chunk-ef207110.e64e7ebf.js" rel="prefetch"><link href="/css/app.feddf0de.css" rel="preload" as="style"><link href="/css/chunk-vendors.d0a33139.css" rel="preload" as="style"><link href="/js/app.973cd793.js" rel="preload" as="script"><link href="/js/chunk-vendors.5e652f88.js" rel="preload" as="script"><link href="/css/chunk-vendors.d0a33139.css" rel="stylesheet"><link href="/css/app.feddf0de.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but beelink doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><div id="make"></div><script>window.fbAsyncInit = function () {
FB.init({ FB.init({
appId: '277826133389999', appId: '277826133389999',
autoLogAppEvents: true, autoLogAppEvents: true,
xfbml: true, xfbml: true,
version: 'v8.0' version: 'v8.0'
}); });
};</script><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script><script src="/js/cropper.min.js"></script><script src="/js/chunk-vendors.5e652f88.js"></script><script src="/js/app.73b01816.js"></script></body></html> };</script><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script><script src="/js/cropper.min.js"></script><script src="/js/chunk-vendors.5e652f88.js"></script><script src="/js/app.973cd793.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/js/app.973cd793.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/app.973cd793.js.map vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/js/chunk-0d9de69e.5551e621.js vendored Normal file
View File

@ -0,0 +1,2 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d9de69e"],{4083:function(e,c,t){"use strict";t("65de")},"65de":function(e,c,t){},c10c:function(e,c,t){"use strict";t.r(c);var n=t("7a23"),i=Object(n["withScopeId"])("data-v-5fc93bec"),o=i((function(e,c,t,i,o,d){return Object(n["openBlock"])(),Object(n["createBlock"])("div")})),d=t("79f6"),r=t("89df"),a=t("afbc"),s=t("0613"),b=t("48b8"),u=t("f64c"),f=t("6c02"),p=Object(n["defineComponent"])({setup:function(){var e=Object(f["d"])().query.code;Object(d["a"])(e).then((function(e){console.log(e),Object(d["d"])(e.uid,2).then((function(e){if(1==e.redirect)sessionStorage.setItem("mid",e.memberid),a["a"].push("/sign");else{if(!Object(b["e"])("token",e.api_token)&&!Object(b["e"])("memberid",e.memberid))return u["a"].error("存储错误, 请允许网页使用本地存储!"),!1;Object(r["e"])(),s["a"].commit("login",!0),s["a"].dispatch("setUserInfo"),a["a"].push("/mine/archives")}}))}))}});t("4083");p.render=o,p.__scopeId="data-v-5fc93bec";c["default"]=p}}]);
//# sourceMappingURL=chunk-0d9de69e.5551e621.js.map

File diff suppressed because one or more lines are too long

View File

@ -1,2 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15125f63"],{"51ac":function(c,e,n){},c10c:function(c,e,n){"use strict";n.r(e);var t=n("7a23"),o=Object(t["withScopeId"])("data-v-6510aea8"),a=o((function(c,e,n,o,a,u){return Object(t["openBlock"])(),Object(t["createBlock"])("div")})),u=n("79f6"),i=n("6c02"),d=Object(t["defineComponent"])({setup:function(){var c=Object(i["d"])().query.code;Object(u["a"])(c).then((function(c){console.log(c)}))}});n("ca16");d.render=a,d.__scopeId="data-v-6510aea8";e["default"]=d},ca16:function(c,e,n){"use strict";n("51ac")}}]);
//# sourceMappingURL=chunk-15125f63.65aeaec7.js.map

View File

@ -1 +0,0 @@
{"version":3,"sources":["webpack:///./src/views/login/wblogin.vue","webpack:///./src/views/login/wblogin.vue?0d29","webpack:///./src/views/login/wblogin.vue?668d","webpack:///./src/views/login/wblogin.vue?834c"],"names":["setup","code","query","then","res","console","log","render","__scopeId"],"mappings":"yQACI,yBAAW,U,wBCMA,+BAAiB,CAC5BA,MAD4B,WAEzB,IAAMC,EAAa,iBAAWC,MAAMD,KACpC,eAAYA,GAAME,MAAK,SAACC,GACpBC,QAAQC,IAAIF,S,UCNvB,EAAOG,OAAS,EAChB,EAAOC,UAAY,kBAEJ,gB,kCCRf","file":"js/chunk-15125f63.65aeaec7.js","sourcesContent":["<template>\r\n <div></div>\r\n</template>\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>\r\n<script lang=\"ts\">\r\nimport { accessToken } from \"@/api\";\r\nimport axios from \"axios\";\r\nimport { defineComponent } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\n\r\n\r\nexport default defineComponent(({\r\n setup(){\r\n const code: any = useRoute().query.code;\r\n accessToken(code).then((res)=>{\r\n console.log(res)\r\n })\r\n // window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`\r\n }\r\n}))\r\n</script>","\r\nimport { accessToken } from \"@/api\";\r\nimport axios from \"axios\";\r\nimport { defineComponent } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\n\r\n\r\nexport default defineComponent(({\r\n setup(){\r\n const code: any = useRoute().query.code;\r\n accessToken(code).then((res)=>{\r\n console.log(res)\r\n })\r\n // window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`\r\n }\r\n}))\r\n","import { render } from \"./wblogin.vue?vue&type=template&id=6510aea8&scoped=true&bindings={}\"\nimport script from \"./wblogin.vue?vue&type=script&lang=ts\"\nexport * from \"./wblogin.vue?vue&type=script&lang=ts\"\n\nimport \"./wblogin.vue?vue&type=style&index=0&id=6510aea8&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-6510aea8\"\n\nexport default script","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./wblogin.vue?vue&type=style&index=0&id=6510aea8&lang=scss&scoped=true\""],"sourceRoot":""}

30
dist/zhibo.html vendored
View File

@ -125,6 +125,17 @@
font-size: 11rem; font-size: 11rem;
} }
.fasongkuang input:focus{ border: none; background: #fff; outline: none;} .fasongkuang input:focus{ border: none; background: #fff; outline: none;}
.guanbibutton{
display: flex;
justify-content: flex-end;
align-items: center;
}
.guanbibutton > button {
margin-left: 10rem;
width: 40rem;
height: 10rem;
}
</style> </style>
</head> </head>
@ -377,7 +388,9 @@
<div class="row-div" style="height: 100%; width: auto;margin-right: 28rem;"> <div class="row-div" style="height: 100%; width: auto;margin-right: 28rem;">
<img id="screen-btn" style="width: 45rem; height: 45rem" src="./img/screen-off.png" alt=""> <img id="screen-btn" style="width: 45rem; height: 45rem" src="./img/screen-off.png" alt="">
<div style="width: 20rem"></div> <div style="width: 20rem"></div>
<img id="logout-btn" style="width: 45rem; height: 45rem" src="./img/logout.png" alt=""> <!-- id="logout-btn" -->
<!-- data-toggle="modal" data-target="#exampleModal" -->
<imgid="logout-btn" style="width: 45rem; height: 45rem" src="./img/logout.png" alt="">
</div> </div>
@ -445,6 +458,21 @@
</div> </div>
</div> </div>
</div> </div>
<!-- Modal -->
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button> -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
您确认要关闭吗?
<div class="guanbibutton">
<button type="button" class="btn btn-primary ">确认</button>
<button type="button" class="btn btn-secondary">取消</button>
</div>
</div>
</div>
</div>
<script> <script>
function GetRequest() { function GetRequest() {

View File

@ -1210,5 +1210,6 @@ export async function accessToken(code:string) {
return res.data return res.data
}else{ }else{
message.error(res.msg); message.error(res.msg);
router.push("/")
} }
} }

View File

@ -5,7 +5,12 @@
</style> </style>
<script lang="ts"> <script lang="ts">
import { accessToken } from "@/api"; import { accessToken, authLogin } from "@/api";
import { setToken } from "@/api/base";
import router from "@/router";
import store from "@/store";
import { saveValue } from "@/utils/common";
import { message } from "ant-design-vue";
import axios from "axios"; import axios from "axios";
import { defineComponent } from "vue"; import { defineComponent } from "vue";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
@ -14,8 +19,25 @@ import { useRoute } from "vue-router";
export default defineComponent(({ export default defineComponent(({
setup(){ setup(){
const code: any = useRoute().query.code; const code: any = useRoute().query.code;
accessToken(code).then((res)=>{ accessToken(code).then((res: any)=>{
console.log(res) console.log(res)
authLogin(res.uid, 2).then((res: any)=>{
if(res.redirect == 1){
sessionStorage.setItem('mid',res.memberid);
router.push("/sign")
}else{
if(!saveValue("token", res.api_token) && !saveValue("memberid", res.memberid) ){
message.error("存储错误, 请允许网页使用本地存储!")
return false;
}else{
setToken();
store.commit("login", true);
store.dispatch("setUserInfo");
router.push("/mine/archives")
}
}
})
}) })
// window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}` // window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`
} }