|
|
|
|
@ -1670,7 +1670,6 @@ var env = __webpack_require__(78130);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var HOST = window.location.host;
|
|
|
|
|
var redirect_uri = env/* default */.Z.QQLoginCB;
|
|
|
|
|
/* harmony default export */ var OauthPanel = (function (_ref) {
|
|
|
|
|
@ -1678,11 +1677,13 @@ var redirect_uri = env/* default */.Z.QQLoginCB;
|
|
|
|
|
setType = _ref.setType,
|
|
|
|
|
loginType = _ref.loginType;
|
|
|
|
|
function onQQLogin() {
|
|
|
|
|
var href = "";
|
|
|
|
|
if ((0,util/* isPc */.b9)()) {
|
|
|
|
|
window.location.href = "https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code");
|
|
|
|
|
href = "https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code");
|
|
|
|
|
} else {
|
|
|
|
|
(0,util/* openNewWindow */.xg)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code"));
|
|
|
|
|
href = "https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(redirect_uri, "%2fotherloginqq&state=null,").concat(HOST, "&response_type=code");
|
|
|
|
|
}
|
|
|
|
|
return href;
|
|
|
|
|
}
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [(loginType === 1 || loginType === 2) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -1721,22 +1722,50 @@ var redirect_uri = env/* default */.Z.QQLoginCB;
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: OauthPanelmodules['other-login'],
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
children: [(0,util/* isMobileDevice */.s2)() && (0,util/* isWechatBrowser */.IS)() && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
title: "\u5FAE\u4FE1\u767B\u5F55",
|
|
|
|
|
style: {
|
|
|
|
|
margin: 0
|
|
|
|
|
},
|
|
|
|
|
onClick: onWechatLogin,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: wechat,
|
|
|
|
|
alt: "\u5FAE\u4FE1",
|
|
|
|
|
width: 66
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
}), (0,util/* isMobileDevice */.s2)() && !(0,util/* isWechatBrowser */.IS)() && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
title: "qq\u767B\u5F55",
|
|
|
|
|
onClick: onQQLogin,
|
|
|
|
|
rel: "noreferrer noopener nofollow",
|
|
|
|
|
style: {
|
|
|
|
|
margin: 0
|
|
|
|
|
},
|
|
|
|
|
href: onQQLogin(),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: qq,
|
|
|
|
|
alt: "QQ",
|
|
|
|
|
width: 66
|
|
|
|
|
})
|
|
|
|
|
}), (0,util/* isPc */.b9)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
title: "\u5FAE\u4FE1\u767B\u5F55",
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: (0,util/* isWechatBrowser */.IS)() ? 0 : 40
|
|
|
|
|
},
|
|
|
|
|
onClick: onWechatLogin,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: wechat,
|
|
|
|
|
alt: "\u5FAE\u4FE1",
|
|
|
|
|
width: 66
|
|
|
|
|
})
|
|
|
|
|
}), !(0,util/* isWechatBrowser */.IS)() && /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
title: "qq\u767B\u5F55",
|
|
|
|
|
href: onQQLogin(),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: qq,
|
|
|
|
|
alt: "QQ",
|
|
|
|
|
width: 66
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
@ -2040,6 +2069,7 @@ var col = __webpack_require__(43604);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TabPane = tabs/* default */.Z.TabPane;
|
|
|
|
|
/* harmony default export */ var LoginPanel = (function (_ref) {
|
|
|
|
|
var dispatch = _ref.dispatch,
|
|
|
|
|
@ -2068,6 +2098,10 @@ var TabPane = tabs/* default */.Z.TabPane;
|
|
|
|
|
setWechatQrcode(false);
|
|
|
|
|
}
|
|
|
|
|
function onWechatLogin() {
|
|
|
|
|
if ((0,util/* isMobileDevice */.s2)()) {
|
|
|
|
|
(0,util/* toWechatLogin */.Or)();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
setLoginType(2);
|
|
|
|
|
setWechatQrcode(true);
|
|
|
|
|
}
|
|
|
|
|
|