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
bd8f3eaf
Commit
bd8f3eaf
authored
Dec 02, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付调试&积分查询条件切换&积分兑换
parent
c5a78da9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
72 additions
and
54 deletions
+72
-54
App.vue
+1
-1
manifest.json
+3
-3
pages/myPoints/myPoints.vue
+3
-0
pages/orderConfirm/orderConfirm.vue
+10
-3
pages/orderStatus/orderStatus.vue
+5
-3
pages/systemMsg/system_msg.vue
+1
-1
pages/withdrawal/withdrawal.vue
+49
-43
No files found.
App.vue
View file @
bd8f3eaf
...
...
@@ -67,7 +67,7 @@
/*每个页面公共css */
uni-page-body
{
height
:
100%
;
padding-top
:
8
0
rpx
;
padding-top
:
10
0
rpx
;
}
@font-face
{
font-family
:
'iconfont'
;
...
...
manifest.json
View file @
bd8f3eaf
...
...
@@ -66,13 +66,13 @@
},
"ad"
:
{},
"payment"
:
{
"alipay"
:
{
"__platform__"
:
[
"ios"
,
"android"
]
},
"weixin"
:
{
"__platform__"
:
[
"ios"
,
"android"
],
"appid"
:
"wxec09b9be6cff4eb3"
,
"UniversalLinks"
:
""
},
"alipay"
:
{
"__platform__"
:
[
"ios"
,
"android"
]
}
},
"oauth"
:
{
...
...
pages/myPoints/myPoints.vue
View file @
bd8f3eaf
...
...
@@ -86,6 +86,9 @@
methods
:{
selectNav
(
navItem
){
this
.
timeFlag
=
navItem
.
timeFlag
;
if
(
this
.
timeFlag
==
'D'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
}
if
(
this
.
timeFlag
==
'M'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
}
...
...
pages/orderConfirm/orderConfirm.vue
View file @
bd8f3eaf
...
...
@@ -173,15 +173,22 @@
api
.
aliAppPay
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
]){
const
aliOrderString
=
res
[
'data'
][
'aliOrderString'
];
let
_this
=
this
if
(
aliOrderString
){
uni
.
requestPayment
({
provider
:
'alipay'
,
orderInfo
:
aliOrderString
,
success
:
function
(
resp
)
{
alert
(
'success:'
+
JSON
.
stringify
(
resp
));
console
.
log
(
'success:'
+
JSON
.
stringify
(
resp
));
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=2`
})
},
fail
:
function
(
err
)
{
alert
(
'fail:'
+
JSON
.
stringify
(
err
));
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=1`
})
}
});
}
else
{
...
...
@@ -262,7 +269,7 @@
this
.
orderId
=
option
.
orderId
;
this
.
courseDetail
();
this
.
queryByUserIdFortuneStatistic
()
console
.
log
(
option
)
},
mounted
()
{
...
...
pages/orderStatus/orderStatus.vue
View file @
bd8f3eaf
<
template
>
<view
class=
"container"
>
<view
class=
"statusBox"
>
<view
class=
"successBox"
v-if=
"orderStatus=='
1
'"
>
<view
class=
"successBox"
v-if=
"orderStatus=='
2
'"
>
<i
class=
"iconfont icon-dengdai"
></i>
<text
class=
"statusText"
>
订单支付成功
</text>
<text
@
click=
"viewDetail()"
class=
"viewOrder"
>
查看订单 >
</text>
</view>
<view
class=
"failBox"
v-if=
"orderStatus
!
='1'"
>
<view
class=
"failBox"
v-if=
"orderStatus
=
='1'"
>
<text
style=
"color:#F04604"
><i
class=
"iconfont icon-guanbi"
></i>
订单支付失败
</text>
<view
class=
"optionBox"
>
<text
@
click=
"cancelOrder()"
>
取消订单
</text>
...
...
@@ -52,6 +52,8 @@
})
},
continuePay
(){
console
.
log
(
'fileId'
,
this
.
fileId
)
console
.
log
(
'orderId'
,
this
.
orderId
)
uni
.
navigateTo
({
url
:
`/pages/orderConfirm/orderConfirm?fileId=
${
this
.
fileId
}
&orderId=
${
this
.
orderId
}
`
})
...
...
@@ -66,7 +68,7 @@
this
.
orderId
=
options
.
orderId
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
fileId
=
options
.
fileId
;
console
.
log
(
this
.
orderStatu
s
)
console
.
log
(
option
s
)
}
}
</
script
>
...
...
pages/systemMsg/system_msg.vue
View file @
bd8f3eaf
...
...
@@ -51,7 +51,7 @@
if
(
res
[
'success'
])
{
this
.
system_msgs_list
=
res
[
'data'
][
'dataList'
];
}
else
{
this
.
system_msgs_list
=
null
this
.
system_msgs_list
=
null
;
}
});
},
...
...
pages/withdrawal/withdrawal.vue
View file @
bd8f3eaf
...
...
@@ -120,11 +120,56 @@
aliWithdrawal
(){
this
.
aliWithdrawalResVO
=
{
...
this
.
aliWithdrawalResVO
,
orderNo
:
this
.
partnerTradeNo
orderNo
:
this
.
partnerTradeNo
,
amount
:
this
.
exchangeAmount
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
userReName
:
'孙超'
}
console
.
log
(
JSON
.
stringify
(
this
.
aliWithdrawalResVO
))
api
.
aliWithdrawal
(
this
.
aliWithdrawalResVO
).
then
((
res
)
=>
{
alert
(
JSON
.
stringify
(
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'
);
}
// #endif
}
})
},
//微信去提现
...
...
@@ -164,47 +209,8 @@
this
.
wxWithdrawal
();
}
if
(
this
.
paymentMethod
==
2
){
// 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'
);
}
// this.aliWithdrawal();
// #endif
this
.
aliWithdrawal
();
}
}
}
...
...
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