jufubao-base 1.0.119-beta4 → 1.0.119-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -329,11 +329,12 @@
|
|
|
329
329
|
},
|
|
330
330
|
//快捷登录
|
|
331
331
|
doLoginAuth(){
|
|
332
|
+
console.log("快捷登录", this.quickLogin);
|
|
332
333
|
const { quickLogin } = this;
|
|
333
334
|
//登录平台name 聚福宝 钉钉 企业微信
|
|
334
|
-
if(quickLogin.
|
|
335
|
+
if(quickLogin.login_platform_code === 'DD'){
|
|
335
336
|
this.p_loginDing();
|
|
336
|
-
}else if(quickLogin.
|
|
337
|
+
}else if(quickLogin.login_platform_code === 'QW'){
|
|
337
338
|
this.p_loginWxEnter();
|
|
338
339
|
}
|
|
339
340
|
},
|
|
@@ -357,13 +358,14 @@
|
|
|
357
358
|
dd.getAuthCode({
|
|
358
359
|
corpId: quickLogin.corp_id,
|
|
359
360
|
success: (res) => {
|
|
360
|
-
console.
|
|
361
|
-
|
|
361
|
+
console.warn("钉钉授权成功");
|
|
362
|
+
console.warn(JSON.stringify(res));
|
|
363
|
+
const { code } = res;
|
|
362
364
|
jfbRootExec("loginDing", {
|
|
363
365
|
vm: this,
|
|
364
366
|
data: {
|
|
365
367
|
sub_company_id: this.sub_company_id,
|
|
366
|
-
code:
|
|
368
|
+
code: code
|
|
367
369
|
}
|
|
368
370
|
}).then(res => {
|
|
369
371
|
const { access_code, phone_auth, phone_number } = res;
|