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
5e6b8a2a
Commit
5e6b8a2a
authored
Nov 18, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心对接
parent
8fda25ff
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
39 deletions
+42
-39
App.vue
+0
-0
api/api.ts
+4
-0
manifest.json
+1
-1
pages/orderConfirm/orderConfirm.vue
+28
-32
pages/personalCenter/personalCenter.vue
+9
-6
No files found.
App.vue
View file @
5e6b8a2a
This diff is collapsed.
Click to expand it.
api/api.ts
View file @
5e6b8a2a
...
@@ -164,6 +164,10 @@ export default {
...
@@ -164,6 +164,10 @@ export default {
//去提现接口
//去提现接口
goFortuneWithdrawal
(
params
){
goFortuneWithdrawal
(
params
){
return
request
(
`
${
apiURL
}
/fortune/goFortuneWithdrawal`
,
"POST"
,
params
)
return
request
(
`
${
apiURL
}
/fortune/goFortuneWithdrawal`
,
"POST"
,
params
)
},
// 支付宝支付
aliAppPay
(
params
){
return
request
(
`
${
apiURL
}
/aliPay/aliAppPay`
,
"POST"
,
params
)
}
}
}
}
manifest.json
View file @
5e6b8a2a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"name"
:
"CFFP财富中心"
,
"name"
:
"CFFP财富中心"
,
"appid"
:
"__UNI__65C4CDC"
,
"appid"
:
"__UNI__65C4CDC"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.
0.6
"
,
"versionName"
:
"1.
1.0
"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
...
...
pages/orderConfirm/orderConfirm.vue
View file @
5e6b8a2a
...
@@ -19,22 +19,22 @@
...
@@ -19,22 +19,22 @@
<!-- 支付方式 -->
<!-- 支付方式 -->
<view
class=
"paymentMethodContent"
>
<view
class=
"paymentMethodContent"
>
<h4>
选择支付方式
</h4>
<h4>
选择支付方式
</h4>
<view
class=
"paymentItem"
@
click=
"selectPaymentMethod(
1
)"
>
<view
class=
"paymentItem"
@
click=
"selectPaymentMethod(
2
)"
>
<view>
<view>
<i
class=
"iconfont icon-zhifubao"
></i>
<i
class=
"iconfont icon-zhifubao"
></i>
<text>
支付宝支付
</text>
<text>
支付宝支付
</text>
</view>
</view>
<view
class=
"selectRadio"
:class=
"{'actived':paymentMethod===
1
}"
>
<view
class=
"selectRadio"
:class=
"{'actived':paymentMethod===
2
}"
>
<i
class=
"iconfont icon-duihao"
></i>
<i
class=
"iconfont icon-duihao"
></i>
</view>
</view>
</view>
</view>
<view
class=
"paymentItem"
@
click=
"selectPaymentMethod(
2
)"
>
<view
class=
"paymentItem"
@
click=
"selectPaymentMethod(
1
)"
>
<view>
<view>
<i
class=
"iconfont icon-py_weixinzhifu"
></i>
<i
class=
"iconfont icon-py_weixinzhifu"
></i>
<text>
微信支付
</text>
<text>
微信支付
</text>
</view>
</view>
<view
class=
"selectRadio"
:class=
"{'actived':paymentMethod===
2
}"
>
<view
class=
"selectRadio"
:class=
"{'actived':paymentMethod===
1
}"
>
<i
class=
"iconfont icon-duihao"
></i>
<i
class=
"iconfont icon-duihao"
></i>
</view>
</view>
</view>
</view>
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
return
{
return
{
courseInfoItem
:{},
courseInfoItem
:{},
fileId
:
null
,
fileId
:
null
,
paymentMethod
:
1
,
paymentMethod
:
2
,
popupTitle
:
'积分抵扣规则'
,
popupTitle
:
'积分抵扣规则'
,
popupType
:
1
,
popupType
:
1
,
isDeduction
:
true
,
isDeduction
:
true
,
...
@@ -153,39 +153,35 @@
...
@@ -153,39 +153,35 @@
methods
:
{
methods
:
{
// 支付
// 支付
pay
(){
pay
(){
// if(this.paymentMethod===1){
const
param
=
{
// const param = {
orderId
:
this
.
orderId
,
// orderId:this.orderId,
amount
:
this
.
totalPrice
,
// amount:this.totalPrice,
paymentMethod
:
this
.
paymentMethod
,
// paymentMethod:this.paymentMethod,
userId
:
this
.
userId
// userId:this.userId
}
// }
if
(
this
.
paymentMethod
==
1
){
// api.wxAppPay(param).then(res=>{
api
.
wxAppPay
(
param
).
then
(
res
=>
{
// console.log(res)
console
.
log
(
res
)
// })
})
// }
}
else
if
(
this
.
paymentMethod
==
2
){
api
.
aliAppPay
(
param
).
then
(
res
=>
{
if
(
res
[
'success'
]){
const
aliOrderString
=
res
[
'data'
][
'aliOrderString'
];
uni
.
requestPayment
({
uni
.
requestPayment
({
<<<<<<<
HEAD
provider
:
'alipay'
,
provider
:
'alipay'
,
orderInfo
:
'alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_cert_sn=f974d178cb6bd0cd2c4e3dca07825e92&app_id=2021003161624312&biz_content=%7B%22out_trade_no%22%3A%22YD2022101000001%22%2C%22product_code%22%3A%22FACE_TO_FACE_PAYMENT%22%2C%22subject%22%3A%22%E6%88%91%E6%98%AF%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%22%2C%22total_amount%22%3A%220.00%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=https%3A%2F%2Fmdev.zuihuibi.cn%2Fapi%2Fpay%2FwxPayNotify&sign=RyxnIM9pBC4V4sfFXZc2ksb0nwRWtbJjQQ%2BzNOJ083AA0rl%2BP206AWerCJatS2D%2BWUjarSc8nZXfqbJ9CX0xZwWoDv6QelM5SOZmzcnPUyh4i3H8K6tj6fo2eFbv%2Bn%2F7Mep%2BfXmepAfArzzxedoSLnwIN%2Bp%2Fsiw6c%2Fkg4asBIoT4g%2FRHjdgMuycm%2B5zOGOGvzzGA2DOuD%2F8mnsnGSgu0gRGMXY9PfPNPULRKPosHw4%2Bc%2BkWzcKvy2j7izUGcGscixNdtbwjQVrfS2jrsVoVc6OCmKGGJEklIRG%2F3SWnyoIPCwO42KAbJOtb6vxZ0C8a7wvo%2B%2BBtRjZ2%2Fqv7SGZexWA%3D%3D&sign_type=RSA2×tamp=2022-11-18+09%3A32%3A58&version=1.0'
,
//支付宝订单数据
orderInfo
:
aliOrderString
,
success
:
function
(
res
)
{
success
:
function
(
resp
)
{
alert
(
'success:'
+
JSON
.
stringify
(
res
));
alert
(
'success:'
+
JSON
.
stringify
(
resp
));
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
alert
(
'fail:'
+
JSON
.
stringify
(
err
));
alert
(
'fail:'
+
JSON
.
stringify
(
err
));
}
}
});
});
=======
provider
:
'alipay'
,
orderInfo
:
'alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_cert_sn=f974d178cb6bd0cd2c4e3dca07825e92&app_id=2021003161624312&biz_content=%7B%22out_trade_no%22%3A%22YD2022101000001%22%2C%22product_code%22%3A%22FACE_TO_FACE_PAYMENT%22%2C%22subject%22%3A%22%E6%88%91%E6%98%AF%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%22%2C%22total_amount%22%3A%220.00%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay¬ify_url=https%3A%2F%2Fmdev.zuihuibi.cn%2Fapi%2Fpay%2FwxPayNotify&sign=RyxnIM9pBC4V4sfFXZc2ksb0nwRWtbJjQQ%2BzNOJ083AA0rl%2BP206AWerCJatS2D%2BWUjarSc8nZXfqbJ9CX0xZwWoDv6QelM5SOZmzcnPUyh4i3H8K6tj6fo2eFbv%2Bn%2F7Mep%2BfXmepAfArzzxedoSLnwIN%2Bp%2Fsiw6c%2Fkg4asBIoT4g%2FRHjdgMuycm%2B5zOGOGvzzGA2DOuD%2F8mnsnGSgu0gRGMXY9PfPNPULRKPosHw4%2Bc%2BkWzcKvy2j7izUGcGscixNdtbwjQVrfS2jrsVoVc6OCmKGGJEklIRG%2F3SWnyoIPCwO42KAbJOtb6vxZ0C8a7wvo%2B%2BBtRjZ2%2Fqv7SGZexWA%3D%3D&sign_type=RSA2×tamp=2022-11-18+09%3A32%3A58&version=1.0'
,
//支付宝订单数据
success
:
function
(
res
)
{
console
.
log
(
'success:'
+
JSON
.
stringify
(
res
));
},
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
}
}
});
})
>>>>>>>
36
c1cfa72e8ba79a7dd87f1cc10c0daf10dbc49d
}
},
},
// 积分查询
// 积分查询
queryByUserIdFortuneStatistic
(){
queryByUserIdFortuneStatistic
(){
...
@@ -262,7 +258,7 @@
...
@@ -262,7 +258,7 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.container
{
.container
{
position
:
relative
;
position
:
relative
;
height
:
100%
;
height
:
95vh
;
.courseItemBox{
.courseItemBox{
padding
:
20
rpx
30
rpx
;
padding
:
20
rpx
30
rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -312,7 +308,7 @@
...
@@ -312,7 +308,7 @@
}
}
}
}
.selectRadio
{
.selectRadio
{
color
:
transparent
;
color
:
#D8D8D8
;
width
:
40
rpx
;
width
:
40
rpx
;
height
:
40
rpx
;
height
:
40
rpx
;
border
:
1px
solid
#D8D8D8
;
border
:
1px
solid
#D8D8D8
;
...
...
pages/personalCenter/personalCenter.vue
View file @
5e6b8a2a
...
@@ -3,21 +3,21 @@
...
@@ -3,21 +3,21 @@
<!-- 头部信息 -->
<!-- 头部信息 -->
<view
class=
"basicInfoBox"
>
<view
class=
"basicInfoBox"
>
<view
class=
"avatar"
>
<view
class=
"avatar"
>
<image
src=
"/static/cffp_logo.jpg
"
alt=
""
srcset=
""
mode=
"widthFix"
></image>
<image
:src=
"customerBasicInfo.headPicture
"
alt=
""
srcset=
""
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"infoBox"
>
<view
class=
"infoBox"
>
<view
class=
"firstLineBox"
>
<view
class=
"firstLineBox"
>
<view>
<view>
<strong>
XXX
</strong>
<strong>
{{
customerBasicInfo
.
realName
}}
</strong>
<text
class=
"csTag"
>
推广人
</text>
<text
class=
"csTag"
>
{{
customerBasicInfo
.
partnerType
}}
</text>
</view>
</view>
<view
class=
"personalInfoBtn"
>
<view
class=
"personalInfoBtn"
>
<text>
个人资料
</text>
<text>
个人资料
</text>
<i
class=
"iconfont icon-bianji"
></i>
<i
class=
"iconfont icon-bianji"
></i>
</view>
</view>
</view>
</view>
<view>
昵称:
XXXX
</view>
<view>
昵称:
{{
customerBasicInfo
.
nickName
}}
</view>
<view>
CFFPxxxxx
</view>
<view>
{{
customerBasicInfo
.
nickName
}}
</view>
</view>
</view>
</view>
</view>
<!-- 主要菜单 -->
<!-- 主要菜单 -->
...
@@ -165,6 +165,7 @@
...
@@ -165,6 +165,7 @@
queryInfo
(){
queryInfo
(){
api
.
queryInfo
({
userId
:
this
.
userId
}).
then
(
res
=>
{
api
.
queryInfo
({
userId
:
this
.
userId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
customerBasicInfo
=
res
[
'data'
];
console
.
log
(
res
)
console
.
log
(
res
)
}
}
})
})
...
@@ -185,11 +186,13 @@
...
@@ -185,11 +186,13 @@
padding
:
67
rpx
20
rpx
60
rpx
28
rpx
;
padding
:
67
rpx
20
rpx
60
rpx
28
rpx
;
background
:
linear-gradient
(
26deg
,
#D8E2E5
0%
,
#F0E6DD
31%
,
#E7DBDF
100%
);
background
:
linear-gradient
(
26deg
,
#D8E2E5
0%
,
#F0E6DD
31%
,
#E7DBDF
100%
);
.avatar{
.avatar{
width
:
80
rpx
;
width
:
0
;
height
:
80
rpx
;
height
:
80
rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-right
:
17
rpx
;
margin-right
:
17
rpx
;
background-color
:
#fff
;
flex
:
0
0
80
rpx
;
}
}
.infoBox
{
.infoBox
{
width
:
100%
;
width
:
100%
;
...
...
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