Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
f3805a8a
Commit
f3805a8a
authored
Sep 26, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
ebc60d19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
51 deletions
+73
-51
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+73
-51
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
f3805a8a
...
@@ -59,8 +59,17 @@
...
@@ -59,8 +59,17 @@
</view>
</view>
</view>
</view>
<view
style=
"display: flex;flex-direction: column;align-items: center;"
>
<view
style=
"display: flex;flex-direction: column;align-items: center;"
>
<view
style=
"font-size: 24rpx;color: gray;margin-top: 16rpx;margin-bottom: 18rpx;"
>
<text>
请您阅读
订单中如有疑问,请在个人中心联系客服
</view>
<text
class=
"agreementText"
@
click=
"goAgreement(1)"
>
《会员服务协议》
</text>
与
<text
class=
"agreementText"
@
click=
"goAgreement(2)"
>
《隐私政策》
</text>
</text>
<text
style=
"font-size: 30rpx;margin: 20rpx;"
>
付费须知:
1、会员属于虚拟商品,一经购买不可退换;
2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作;
3、充值一般5分钟内到账,如未到账请在“我的”页面联系客服;
</text>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
...
@@ -71,7 +80,8 @@
...
@@ -71,7 +80,8 @@
<
script
>
<
script
>
import
common
from
'@/mixins/common'
;
import
common
from
'@/mixins/common'
;
import
{
import
{
message
,
message
,
navigateTo
,
alert
alert
}
from
'@/utils/fun'
;
}
from
'@/utils/fun'
;
export
default
{
export
default
{
...
@@ -115,6 +125,13 @@
...
@@ -115,6 +125,13 @@
this
.
$emit
(
'paySuccess'
,
largeType
);
this
.
$emit
(
'paySuccess'
,
largeType
);
this
.
handleClose
();
this
.
handleClose
();
},
},
goAgreement
(
type
)
{
if
(
type
==
1
)
{
navigateTo
(
`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/playtogether/syzc.html`
)
}
else
if
(
type
==
2
)
{
navigateTo
(
`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/playtogether/yhxy.html`
)
}
},
handleShow
()
{
handleShow
()
{
let
that
=
this
;
let
that
=
this
;
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
)
{
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
)
{
...
@@ -202,55 +219,55 @@
...
@@ -202,55 +219,55 @@
// 符合首充
// 符合首充
vipBean
=
this
.
firstPayList
[
0
];
vipBean
=
this
.
firstPayList
[
0
];
}
}
if
(
this
.
os
==
'ios'
){
if
(
this
.
os
==
'ios'
)
{
this
.
post
({
this
.
post
({
url
:
'/vip/getVipPayParams'
,
url
:
'/vip/getVipPayParams'
,
data
:
{
data
:
{
vedioId
:
that
.
point
<=
0
?
null
:
that
.
vedioId
,
vedioId
:
that
.
point
<=
0
?
null
:
that
.
vedioId
,
pid
:
vipBean
.
pid
,
pid
:
vipBean
.
pid
,
payChannel
:
'WEIXIN'
payChannel
:
'WEIXIN'
},
},
showLoading
:
true
,
showLoading
:
true
,
success
:
({
success
:
({
data
data
})
=>
{
})
=>
{
that
.
wxPay
(
data
,
vipBean
.
largeType
);
that
.
wxPay
(
data
,
vipBean
.
largeType
);
}
}
});
});
}
else
{
}
else
{
this
.
post
({
this
.
post
({
url
:
'/vip/getVipPayParams/xpay'
,
url
:
'/vip/getVipPayParams/xpay'
,
data
:
{
data
:
{
vedioId
:
that
.
point
<=
0
?
null
:
that
.
vedioId
,
vedioId
:
that
.
point
<=
0
?
null
:
that
.
vedioId
,
pid
:
vipBean
.
pid
,
pid
:
vipBean
.
pid
,
os
:
that
.
os
,
os
:
that
.
os
,
payChannel
:
'WEIXIN'
payChannel
:
'WEIXIN'
},
},
showLoading
:
true
,
showLoading
:
true
,
success
:
({
success
:
({
data
data
})
=>
{
})
=>
{
that
.
wxVirtuallyPay
(
data
,
vipBean
.
largeType
);
that
.
wxVirtuallyPay
(
data
,
vipBean
.
largeType
);
}
}
});
});
}
}
},
},
wxPay
(
wxData
,
largeType
)
{
wxPay
(
wxData
,
largeType
)
{
let
wxParams
=
wxData
.
params
;
let
wxParams
=
wxData
.
params
;
let
that
=
this
;
let
that
=
this
;
// 发起微信支付
// 发起微信支付
wx
.
requestPayment
({
wx
.
requestPayment
({
timeStamp
:
wxParams
.
timeStamp
,
timeStamp
:
wxParams
.
timeStamp
,
nonceStr
:
wxParams
.
nonceStr
,
nonceStr
:
wxParams
.
nonceStr
,
package
:
wxParams
.
packageStr
,
package
:
wxParams
.
packageStr
,
signType
:
wxParams
.
signType
,
signType
:
wxParams
.
signType
,
paySign
:
wxParams
.
paySign
,
paySign
:
wxParams
.
paySign
,
success
(
res
)
{
success
(
res
)
{
that
.
paySuccess
(
largeType
);
that
.
paySuccess
(
largeType
);
},
},
fail
(
res
)
{}
fail
(
res
)
{}
})
})
},
},
wxVirtuallyPay
(
wxData
,
largeType
)
{
wxVirtuallyPay
(
wxData
,
largeType
)
{
// 虚拟支付
// 虚拟支付
...
@@ -359,6 +376,9 @@
...
@@ -359,6 +376,9 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
}
.agreementText
{
color
:
#387ef4
;
}
}
.section
{
.section
{
...
@@ -442,5 +462,7 @@
...
@@ -442,5 +462,7 @@
transform
:
translate
(
0
,
-50%
);
transform
:
translate
(
0
,
-50%
);
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
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