Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
4120575a
Commit
4120575a
authored
Dec 01, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'apply' into dev
parents
2f3dfd63
97c7d970
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
2 deletions
+70
-2
components/redirect_uri/redirect_uri.vue
+59
-0
manifest.json
+4
-2
pages.json
+7
-0
No files found.
components/redirect_uri/redirect_uri.vue
0 → 100644
View file @
4120575a
<
template
>
<view
id=
"box"
@
click=
"func()"
>
返回CFFP财富中心
</view>
<view
class=
""
>
您已授权登录,请点击返回CFFP财富中心
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
}
},
components
:{},
onLoad
(){
},
methods
:{
func
()
{
console
.
log
(
"点击触发99999"
);
// 判断是那种设备
let
u
=
navigator
.
userAgent
;
console
.
log
(
u
);
var
isAndroid
=
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
;
// Android系统或者uc浏览器
var
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
// iOS系统
// 如果为Android系统
if
(
isAndroid
)
{
window
.
location
.
href
=
"cffpUrlSdls://mdev.zuihuibi.cn/cffp/pages/withdrawal/withdrawal?auth_code=4d79e014a44841448415d715bdceIX16"
;
// 注意*** 这里需要修改为刚刚设置的urlscheme,auth_code需要后端拼接。auth_code只有后端才能拿到
window
.
setTimeout
(
function
()
{
window
.
location
.
href
=
"http://www.baidu.com"
;
// 3s后如果不能跳转到 App,则跳转到 App 的下载地址,一般是应用宝的对应的下载地址
},
2000
);
return
;
}
// ios设备:原理:判断是否认识这个协议,认识则直接跳转,不认识就在这里下载appios();
if
(
isiOS
)
{
let
startIndex
=
u
.
indexOf
(
'iPhone OS'
)
+
9
;
let
endIndex
=
u
.
indexOf
(
'like Mac OS'
)
-
1
;
let
num
=
+
u
.
slice
(
startIndex
,
endIndex
).
split
(
'_'
)[
0
];
// 计算版本号的前面数值
if
(
num
<
9
)
{
window
.
location
.
href
=
"cffpUrlSdls://?auth_code=4d79e014a44841448415d715bdceIX16"
;
// 注意*** 这里需要修改为刚刚设置的urlscheme,auth_code需要后端拼接。auth_code只有后端才能拿到
}
else
{
window
.
location
.
href
=
" "
;
// universal link 链接
}
window
.
setTimeout
(
function
()
{
window
.
location
.
href
=
" "
;
// 3s后如果不能跳转到 App,则跳转到 AppStore 的下载地址
},
3000
);
return
;
};
}
}
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
manifest.json
View file @
4120575a
...
...
@@ -48,11 +48,13 @@
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
],
"minSdkVersion"
:
21
"minSdkVersion"
:
21
,
"schemes"
:
"cffpUrlSdls"
},
/*
ios打包配置
*/
"ios"
:
{
"dSYMs"
:
false
"dSYMs"
:
false
,
"urltypes"
:
"cffpUrlSdls"
},
/*
SDK配置
*/
"sdkConfigs"
:
{
...
...
pages.json
View file @
4120575a
...
...
@@ -437,6 +437,13 @@
"navigationBarTitleText"
:
"申请加盟-结果"
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"components/redirect_uri/redirect_uri"
,
"style"
:
{
"navigationBarTitleText"
:
"第三方回调页面"
,
"enablePullDownRefresh"
:
false
}
}
],
...
...
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