|
@@ -68,6 +68,7 @@
|
|
import * as dd from 'dingtalk-jsapi';
|
|
import * as dd from 'dingtalk-jsapi';
|
|
import "../permissions.js"
|
|
import "../permissions.js"
|
|
import WxLogin from "../assets/js/wwLogin.js"
|
|
import WxLogin from "../assets/js/wwLogin.js"
|
|
|
|
+ import { obtainCorrespondingConfigurationInformation } from '../common/js/appidConfiguration.js'
|
|
export default {
|
|
export default {
|
|
inject:['reloads'],
|
|
inject:['reloads'],
|
|
data() {
|
|
data() {
|
|
@@ -116,7 +117,7 @@
|
|
this.bindingqywx = true
|
|
this.bindingqywx = true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
|
|
+ mounted() {
|
|
// this.wxworkCli()
|
|
// this.wxworkCli()
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
console.log(ua, '打印出来')
|
|
console.log(ua, '打印出来')
|
|
@@ -360,10 +361,12 @@
|
|
},
|
|
},
|
|
tryAutoLogin() {
|
|
tryAutoLogin() {
|
|
let href = window.location.href;
|
|
let href = window.location.href;
|
|
-
|
|
|
|
- var appId = "ww4e237fd6abb635af";//企业微信第三方的SUIT ID
|
|
|
|
- var url = "https://worktime.ttkuaiban.com/api/corpWXAuth";//授权回调页面
|
|
|
|
- var weixinUrl="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri="+encodeURI(url)+"&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
|
|
|
|
|
|
+ // var appId = "ww4e237fd6abb635af";//企业微信第三方的SUIT ID
|
|
|
|
+ // var url = "https://worktime.ttkuaiban.com/api/corpWXAuth";//授权回调页面
|
|
|
|
+ // var weixinUrl="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri="+encodeURI(url)+"&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
|
|
|
|
+
|
|
|
|
+ const config = obtainCorrespondingConfigurationInformation()
|
|
|
|
+ var weixinUrl = config.authorizationCallback;
|
|
window.location.href = weixinUrl;
|
|
window.location.href = weixinUrl;
|
|
},
|
|
},
|
|
tryDingDingUrlRedirect() {
|
|
tryDingDingUrlRedirect() {
|