Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
华
华夏模拟理财_20250701
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
华夏模拟理财_20250701
Commits
b690795d
Commit
b690795d
authored
Nov 18, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 免登中间页(光大、浦发) 待端内调试
parent
06e86648
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
174 additions
and
1 deletion
+174
-1
README.md
README.md
+7
-1
auth光大.html
auth光大.html
+73
-0
auth浦发.html
auth浦发.html
+94
-0
No files found.
README.md
View file @
b690795d
...
...
@@ -25,7 +25,13 @@ https://90548-activity.dexfu.cn/customShare/share?id=Did1NjE3MzU&projectId=pf909
5.
渠道5-昆仑银行(无免登,app投放):https://90548-activity.dexfu.cn/projectx/p927bc4a1/index.html?appID=90548&channel=5
## 20251118 新的俩渠道 免登对接
1.
测试环境
光大免登中间页 https://activity.m.duibatest.com.cn/customShare/share?id=Did1MTM4OTU
浦发免登中间页 https://activity.m.duibatest.com.cn/customShare/share?id=Did1MTM5MDM
2.
生产环境
光大免登中间页 https://90548-activity.dexfu.cn/customShare/share?id=Did1NjMwMjM
浦发免登中间页 https://90548-activity.dexfu.cn/customShare/share?id=Did1NjMwMTU
@后端
...
...
auth光大.html
0 → 100644
View file @
b690795d
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title></title>
</head>
<body>
<script
src=
'https://yun.duiba.com.cn/db_games/zepto.min.js'
></script>
<script
src=
"https://yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"
></script>
<script>
var
vConsole
=
new
VConsole
();
function
getUrlParam
(
name
)
{
var
search
=
window
.
location
.
search
;
var
matched
=
search
.
slice
(
1
)
.
match
(
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
));
return
search
.
length
?
matched
&&
matched
[
2
]
:
null
;
}
console
.
log
(
location
.
href
);
var
merId
=
"2001"
,
appid
=
"0d17557f-7c68-4f22-9d41-b31c588328b5"
,
state
=
getUrlParam
(
"state"
);
var
projectID
=
getUrlParam
(
'projectID'
)
||
'p927bc4a1'
;
var
redirectUrl
=
"https://90548-activity.dexfu.cn/projectx/"
+
projectID
+
"/index.html?appID=90548"
;
getUserAuthCodeFn
();
function
getUserAuthCodeFn
()
{
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
var
isAndroid
=
ua
.
indexOf
(
'android'
)
>
-
1
||
ua
.
indexOf
(
'adr'
)
>
-
1
;
var
isIOS
=
!!
ua
.
match
(
/iphone|ipod|ipad/gi
);
if
(
isAndroid
)
{
//安卓系统
window
.
jsInterface
.
getUserAuthCode
(
'{"merId":merId,"state":state,"scope":"1 2 3 6 7","callbackName":"getUserAuthCodeCallback","appid":appid}'
);
}
else
if
(
isIOS
)
{
//iOS系统
window
.
webkit
.
messageHandlers
.
getUserAuthCode
.
postMessage
(
'{"merId":merId,"state":state,"scope":"1 2 3 6 7","callbackName":"getUserAuthCodeCallback","appid":appid}'
);
}
}
function
getUserAuthCodeCallback
(
code
)
{
console
.
log
(
'getUserAuthCodeCallback'
,
code
);
$
.
ajax
({
type
:
'get'
,
url
:
location
.
origin
+
'/customActivity/guangdabank/autoLogin'
,
dataType
:
'json'
,
data
:
{
'code'
:
code
,
'redirect'
:
redirectUrl
},
async
:
true
,
success
:
function
(
result
)
{
console
.
log
(
'onsuccess'
,
result
);
},
error
:
function
(
result
)
{
console
.
log
(
'onerror'
,
result
)
}
});
}
</script>
</body>
</html>
\ No newline at end of file
auth浦发.html
0 → 100644
View file @
b690795d
<!DOCTYPE html>
<html
lang=
"zh"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
>
<title></title>
<script
crossorigin=
"anonymous"
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script
src=
"https://yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"
></script>
<!-- 测试环境 -->
<!-- <script src="https://etestwap0.spdb.com.cn:15443/mspmk-cli-pubresource/js/mbank-js-sdk/spdb-mbank-js-sdk-0.6.0.min.js"></script> -->
<!-- 生产环境 -->
<script
src=
"https://cdnwaprs.res.spdb.com.cn/mspmk-cli-pubresource/js/mbank-js-sdk/spdb-mbank-js-sdk-0.6.0.min.js"
></script>
</head>
<body>
<script>
var
vConsole
=
new
VConsole
();
function
getUrlParam
(
name
)
{
var
search
=
window
.
location
.
search
;
var
matched
=
search
.
slice
(
1
)
.
match
(
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
));
return
search
.
length
?
matched
&&
matched
[
2
]
:
null
;
}
console
.
log
(
location
.
href
);
var
projectID
=
getUrlParam
(
'projectID'
)
||
'p927bc4a1'
;
var
redirectUrl
=
"https://90548-activity.dexfu.cn/projectx/"
+
projectID
+
"/index.html?appID=90548"
;
// 等待 SDK 加载完成
function
waitForSDK
(
callback
)
{
if
(
window
.
$spdbApi
)
{
callback
();
}
else
{
setTimeout
(
function
()
{
waitForSDK
(
callback
);
},
100
);
}
}
waitForSDK
(
function
()
{
getAppToken
();
});
function
getAppToken
()
{
window
[
"$spdbApi"
].
getToken
().
then
(
function
(
res
)
{
console
.
log
(
'getToken res ===> '
,
res
);
if
(
res
)
{
dbLogin
(
res
);
}
else
{
// gologin 方法引导登录,为客户体验建议只引导一次,客户拒绝登录后提示客户“无法使用功能”。
window
[
"$spdbApi"
].
goLogin
().
then
(
function
(
loginStatus
)
{
console
.
log
(
'goLogin res ===> '
,
loginStatus
);
if
(
loginStatus
)
{
getAppToken
();
}
else
{
console
.
log
(
'未登录'
);
}
}).
catch
(
function
(
error
)
{
console
.
error
(
'goLogin error ===> '
,
error
);
});
}
}).
catch
(
function
(
error
)
{
console
.
error
(
'getToken error ===> '
,
error
);
});
}
function
dbLogin
(
token
)
{
console
.
log
(
'dbLogin'
,
token
);
$
.
ajax
({
type
:
'get'
,
url
:
'https://customer-link.duiba.com.cn/customer/90548/shangHaiPuFaBank/autoLogin'
,
dataType
:
'json'
,
data
:
{
'token'
:
token
,
'redirect'
:
redirectUrl
},
async
:
true
,
success
:
function
(
result
)
{
console
.
log
(
'onsuccess'
,
result
);
},
error
:
function
(
result
)
{
console
.
log
(
'onerror'
,
result
);
}
});
}
</script>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment