|
@@ -20,7 +20,7 @@
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
<el-divider content-position="center">或</el-divider>
|
|
<el-divider content-position="center">或</el-divider>
|
|
- <div class="m-auto mb-5">
|
|
|
|
|
|
+ <div class="m-auto mb-5" @click="wxworkCli()">
|
|
<img class="w-9 m-auto p-1 rounded-full border-blue-300 border-2 cursor-pointer" :src="qiyeweixin" alt="">
|
|
<img class="w-9 m-auto p-1 rounded-full border-blue-300 border-2 cursor-pointer" :src="qiyeweixin" alt="">
|
|
</div>
|
|
</div>
|
|
<div class="flex justify-between pb-5">
|
|
<div class="flex justify-between pb-5">
|
|
@@ -197,6 +197,13 @@ const tryAutoLogin = () => {
|
|
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 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";
|
|
window.location.href = weixinUrl;
|
|
window.location.href = weixinUrl;
|
|
}
|
|
}
|
|
|
|
+const wxworkCli = () => {
|
|
|
|
+ var appId = "wwdd1137a65ce0fc87";//企业微信第三方的SUIT ID
|
|
|
|
+ var url = "https://crm.ttkuaiban.com/api/corpWXScanningAuth";//授权回调页面
|
|
|
|
+ // var weixinUrl=`https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid=${appId}&redirect_uri=${url}&state=0&usertype=member`;
|
|
|
|
+ var weixinUrl=`https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=ServiceApp&appid=${appId}&redirect_uri=${url}&state=0`;
|
|
|
|
+ window.location.href = weixinUrl;
|
|
|
|
+}
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
checkLogin()
|
|
checkLogin()
|