jufubao-base 1.0.119-beta5 → 1.0.119-beta7
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
|
@@ -266,6 +266,10 @@
|
|
|
266
266
|
logo = getServiceUrl(this.projectAttr["site_logo"], "size3");
|
|
267
267
|
this.callback_url = getContainerPropsValue(container, "content.callback_url", {value: ''}).value;
|
|
268
268
|
this.forget_pwd_url = getContainerPropsValue(container, "content.forget_pwd_url", {value: ''}).value;
|
|
269
|
+
this.error_callback_url = getContainerPropsValue(container, 'content.error_callback_url', {value: ""}).value;
|
|
270
|
+
this.phone_auth_callback_url = getContainerPropsValue(container, 'content.phone_auth_callback_url', {value: ""}).value;
|
|
271
|
+
this.phone_number_login_url = getContainerPropsValue(container, 'content.phone_number_login_url', {value: ""}).value;
|
|
272
|
+
|
|
269
273
|
this.logo = logo || "//dummyimage.com/100x100";
|
|
270
274
|
this.partnerName = name || "聚福宝福利";
|
|
271
275
|
this.logoTextColor = getContainerPropsValue(container, "content.logoTextColor", "#333");
|
|
@@ -358,13 +362,14 @@
|
|
|
358
362
|
dd.getAuthCode({
|
|
359
363
|
corpId: quickLogin.corp_id,
|
|
360
364
|
success: (res) => {
|
|
361
|
-
console.
|
|
362
|
-
|
|
365
|
+
console.warn("钉钉授权成功");
|
|
366
|
+
console.warn(JSON.stringify(res));
|
|
367
|
+
const { code } = res;
|
|
363
368
|
jfbRootExec("loginDing", {
|
|
364
369
|
vm: this,
|
|
365
370
|
data: {
|
|
366
371
|
sub_company_id: this.sub_company_id,
|
|
367
|
-
code:
|
|
372
|
+
code: code
|
|
368
373
|
}
|
|
369
374
|
}).then(res => {
|
|
370
375
|
const { access_code, phone_auth, phone_number } = res;
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getPlatform: {
|
|
5
|
+
"quick_enabled":true,
|
|
6
|
+
"quick":{
|
|
7
|
+
"login_platform_code":"QW",
|
|
8
|
+
"login_platform_name":"企业微信",
|
|
9
|
+
"is_redirect":"Y",
|
|
10
|
+
"redirect_url":"https:\/\/open.weixin.qq.com\/connect\/oauth2\/authorize?appid=ww536f135bd214558c&redirect_uri=https%3A%2F%2Fsandbox-apis.jufubao.cn%2Fsaas%2Fv1%2Flogin%2Fqw%2Fcode-login%3Fcallback_url%3Dhttp%253A%252F%252Fsandbox-template.jufubao.cn%252Fsaas%252Fpages%252Fmain%252Fhome%26phone_number_login_url%3Dhttp%253A%252F%252Fsandbox-template.jufubao.cn%252Fsaas%26error_callback_url%3Dhttp%253A%252F%252Fsandbox-template.jufubao.cn%252Fsaas%26phone_auth_callback_url%3Dhttp%253A%252F%252Fsandbox-template.jufubao.cn%252Fsaas&response_type=code&scope=snsapi_userinfo&state=STATE&agentid=1000002#wechat_redirect"
|
|
11
|
+
},
|
|
12
|
+
"other": [
|
|
13
|
+
{
|
|
14
|
+
"login_platform_code": "JFB",
|
|
15
|
+
"login_platform_name": "聚福宝",
|
|
16
|
+
"is_redirect": "N",
|
|
17
|
+
"redirect_url": ""
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"request_id":"53257911b85456f9"
|
|
21
|
+
}
|
|
5
22
|
}
|