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
920f239d
Commit
920f239d
authored
Dec 06, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分兑换
parent
657746c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
41 deletions
+54
-41
pages/withdrawal/withdrawal.vue
+54
-41
No files found.
pages/withdrawal/withdrawal.vue
View file @
920f239d
...
...
@@ -123,53 +123,66 @@
orderNo
:
this
.
partnerTradeNo
,
amount
:
this
.
exchangeAmount
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
userReName
:
'孙超'
}
console
.
log
(
JSON
.
stringify
(
this
.
aliWithdrawalResVO
))
api
.
aliWithdrawal
(
this
.
aliWithdrawalResVO
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'data'
][
'isAuth'
]
==
1
){
// APP:
// #ifdef APP-PLUS
let
urls
=
this
.
aliWithdrawalResVO
.
aliAuthUrl
;
urls
=
encodeURIComponent
(
urls
);
// 判断平台
if
(
plus
.
os
.
name
==
'Android'
)
{
plus
.
runtime
.
openURL
(
'alipays://platformapi/startapp?appId=20000067&url='
+
urls
,
res
=>
{
//这里写打开URL地址失败后的处理
console
.
log
(
res
);
uni
.
showModal
({
content
:
'本机未检测到对应客户端,是否打开浏览器访问页面?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
//plus.runtime.openURL();
}
}
});
},
'com.eg.android.AlipayGphone'
);
}
else
if
(
plus
.
os
.
name
==
'iOS'
)
{
plus
.
runtime
.
openURL
(
'alipay://platformapi/startapp?appId=20000067&url='
+
urls
,
res
=>
{
console
.
log
(
res
);
uni
.
showModal
({
content
:
'本机未检测到对应客户端,是否打开浏览器访问页面?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
//plus.runtime.openURL(url);
}
}
});
},
'com.eg.android.AlipayGphone'
);
if
(
res
[
'success'
]){
if
(
res
[
'data'
][
'isAuth'
]
==
1
){
// APP:
// #ifdef APP-PLUS
let
urls
=
this
.
aliWithdrawalResVO
.
aliAuthUrl
;
urls
=
encodeURIComponent
(
urls
);
// 判断平台
if
(
plus
.
os
.
name
==
'Android'
)
{
plus
.
runtime
.
openURL
(
'alipays://platformapi/startapp?appId=20000067&url='
+
urls
,
res
=>
{
//这里写打开URL地址失败后的处理
console
.
log
(
res
);
uni
.
showModal
({
content
:
'本机未检测到对应客户端,是否打开浏览器访问页面?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
//plus.runtime.openURL();
}
}
});
},
'com.eg.android.AlipayGphone'
);
}
else
if
(
plus
.
os
.
name
==
'iOS'
)
{
plus
.
runtime
.
openURL
(
'alipay://platformapi/startapp?appId=20000067&url='
+
urls
,
res
=>
{
console
.
log
(
res
);
uni
.
showModal
({
content
:
'本机未检测到对应客户端,是否打开浏览器访问页面?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
//plus.runtime.openURL(url);
}
}
});
},
'com.eg.android.AlipayGphone'
);
}
// #endif
}
// #endif
}
else
{
uni
.
showModal
({
content
:
res
[
'message'
],
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
}
})
},
//微信去提现
...
...
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