Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
cf7f7364
Commit
cf7f7364
authored
Mar 26, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
324a8b4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
2 deletions
+52
-2
buyvip.vue
pages/blindDate/personal/buyvip.vue
+52
-2
No files found.
pages/blindDate/personal/buyvip.vue
View file @
cf7f7364
...
...
@@ -153,11 +153,12 @@
</view>
<view
class=
"buybtn-box"
style=
""
>
<!--
<image
src=
""
style=
"width: 100%;height: auto;"
mode=
"widthFix"
></image>
-->
<view
class=
"buybtn"
>
<view
class=
"buybtn"
@
click=
"show=true"
>
<text
style=
"color: #00C6C1;margin-right: 5px;font-family: aa;"
>
¥
{{
data
.
MemberBuyMoney
?
data
.
MemberBuyMoney
.
toFixed
(
2
):
0
}}
</text>
立即购买
</view>
</view>
<u-modal
v-model=
"show"
:content=
"content"
:show-cancel-button=
'true'
@
confirm=
'queren'
></u-modal>
</view>
</scroll-view>
</
template
>
...
...
@@ -168,12 +169,15 @@
data
(){
return
{
pageTitle
:
'会员权益'
,
show
:
false
,
MemberGradeId
:
0
,
mainColor
:
''
,
scrollTop
:
0
,
headStyle
:
{},
nav
:
0
,
data
:{},
orderInfo
:{},
content
:
''
,
}
},
created
()
{
...
...
@@ -211,10 +215,56 @@
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
data
=
res
.
data
this
.
data
=
res
.
data
;
this
.
content
=
'确定花费¥'
+
this
.
data
.
MemberBuyMoney
+
'购买'
+
this
.
data
.
GradeName
+
'吗?'
;
}
}
);
},
queren
(){
let
url
=
'/api/WeChatPay/GetMemberBuyPayInfo'
this
.
request2
({
url
:
url
,
data
:
{
GradeId
:
this
.
data
.
Grade
,
Money
:
this
.
data
.
MemberBuyMoney
,
PayWay
:
1
,
}
},
res
=>
{
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
);
console
.
log
(
this
.
orderInfo
)
this
.
Pay
()
}
);
},
Pay
(){
let
that
=
this
;
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
this
.
orderInfo
.
timeStamp
,
nonceStr
:
this
.
orderInfo
.
nonceStr
,
package
:
this
.
orderInfo
.
package
,
signType
:
this
.
orderInfo
.
signType
,
paySign
:
this
.
orderInfo
.
sign
,
success
:
function
(
res
)
{
console
.
log
(
'success'
,
res
);
uni
.
showToast
({
title
:
"支付成功"
})
that
.
getdianshu
()
},
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
,
err
);
uni
.
showToast
({
title
:
"支付失败"
})
}
});
}
}
}
...
...
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