Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_scan
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_scan
Commits
96cf36c0
Commit
96cf36c0
authored
Jul 30, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
174dd9e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
40 deletions
+50
-40
vipPay.vue
scan/pagesA/vipPay/vipPay.vue
+50
-40
No files found.
scan/pagesA/vipPay/vipPay.vue
View file @
96cf36c0
...
...
@@ -6,8 +6,12 @@
<image
style=
"width: 100%;margin-top: 10rpx;margin-bottom: 10rpx;"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_heli_vip.png"
mode=
"widthFix"
/>
<view
class=
"section"
>
<view
@
click=
"handleUnsign"
v-if=
"agreementDto"
style=
"margin-left: 30rpx;color: black;font-size: 36rpx;font-weight: 700;"
>
自动续费管理
>
</view>
<view
class=
"section"
>
<view
class=
"pack-box"
>
<scroll-view
scroll-x
style=
"white-space: nowrap"
>
<view
class=
"pack-item"
v-for=
'(item, index) in vipList'
:key=
'index'
...
...
@@ -47,16 +51,6 @@
</text>
</view>
<view
@
click=
"handleUnsign"
v-if=
"agreementDto"
style=
"margin-left: 20rpx;color: black;font-size: 36rpx;font-weight: 700;"
>
自动续费管理
>
</view>
<view
class=
"item-agree"
>
<view
style=
"font-size: 28rpx;"
@
click=
"clickAgree"
>
用户付费须知>
</view>
</view>
<view
class=
"agreementWrp"
>
<checkbox-group
@
change=
"checkboxChange"
style=
"width: 50rpx;"
>
<checkbox
:checked=
"checked"
style=
"transform:scale(0.9)"
>
...
...
@@ -66,13 +60,15 @@
<text
class=
"agreementText"
@
click=
"goAgreement(1)"
>
《连续订阅服务协议》
</text>
与
<text
class=
"agreementText"
@
click=
"goAgreement(2)"
>
《支付协议》
</text>
与
<text
class=
"agreementText"
@
click=
"goAgreement(3)"
>
《隐私政策》
</text>
与
<text
class=
"agreementText"
@
click=
"goAgreement(4)"
>
《用户付费须知》
</text>
</text>
</view>
<view
class=
"nextBtn"
@
click=
"handlePay"
>
立即试用
</view>
<
view
class=
"section
"
>
<
button
class=
"apply-button"
@
click=
"handlePay"
>
立即试用
</button
>
</view>
<
!--
<view
class=
"item-agree
"
>
<
view
style=
"font-size: 28rpx;"
@
click=
"clickAgree"
>
用户付费须知>
</view
>
</view>
-->
<image
@
click=
"handlePay"
style=
"width: 100%;"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_vip_about.png"
mode=
"widthFix"
/>
...
...
@@ -224,10 +220,10 @@
if
(
!
tt
.
canIUse
(
'sign'
))
{
message
.
notify
(
'请升级抖音APP版本.'
);
return
}
tt
.
showLoading
({
title
:
'加载中...'
}
tt
.
showLoading
({
title
:
'加载中...'
});
let
that
=
this
;
...
...
@@ -235,7 +231,7 @@
businessType
:
ttData
.
params
.
businessType
,
data
:
ttData
.
params
.
data
,
byteAuthorization
:
ttData
.
params
.
byteAuthorization
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
tt
.
hideLoading
();
tt
.
sign
({
businessType
:
ttData
.
params
.
businessType
,
...
...
@@ -249,7 +245,7 @@
}
})
},
fail
:
(
res
)
=>
{
fail
:
(
res
)
=>
{
tt
.
hideLoading
();
// this.slotParam = JSON.stringify(res);
// this.$refs.select.open('center');
...
...
@@ -262,10 +258,10 @@
if
(
!
tt
.
canIUse
(
'requestOrder'
))
{
message
.
notify
(
'请升级抖音APP版本!'
);
return
}
tt
.
showLoading
({
title
:
'加载中...'
}
tt
.
showLoading
({
title
:
'加载中...'
});
let
that
=
this
;
...
...
@@ -275,16 +271,16 @@
success
(
res
)
{
that
.
ttPay
(
largeType
,
res
.
orderId
,
ttData
);
},
fail
(
res
)
{
fail
(
res
)
{
tt
.
hideLoading
();
// message.notify(res.errMsg);
console
.
log
(
'requestOrder res.errMsg'
,
res
)
},
});
},
ttPay
(
largeType
,
oid
,
ttData
)
{
tt
.
hideLoading
();
ttPay
(
largeType
,
oid
,
ttData
)
{
tt
.
hideLoading
();
if
(
!
tt
.
canIUse
(
'getOrderPayment'
))
{
message
.
notify
(
'请升级抖音APP版本~'
);
return
...
...
@@ -373,6 +369,8 @@
navigateTo
(
`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/lingxi/syzc.html`
)
}
else
if
(
type
==
3
)
{
navigateTo
(
`/pages/brower/brower?url=https://api.mints-tech.cn/camera-api/agreements/lingxi/yhxy.html`
)
}
else
if
(
type
==
4
)
{
this
.
clickAgree
();
}
}
}
...
...
@@ -386,7 +384,6 @@
flex-direction
:
column
;
.section
{
margin-top
:
30rpx
;
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -526,7 +523,7 @@
background
:
#e8c8ae
;
color
:
#8d5a29
;
width
:
600rpx
;
margin
:
4
0rpx
auto
;
margin
:
2
0rpx
auto
;
}
}
...
...
@@ -544,7 +541,6 @@
align-items
:
center
;
color
:
darkgray
;
font-size
:
26rpx
;
margin-top
:
30rpx
;
padding-left
:
30rpx
;
padding-right
:
20rpx
;
...
...
@@ -554,17 +550,31 @@
}
.trialStyle
{
height
:
5
0rpx
;
padding
:
30rpx
;
height
:
3
0rpx
;
padding
:
20rpx
30rpx
;
font-size
:
22rpx
;
color
:
darkgray
;
}
}
.text-box
{
word-break
:
break-all
;
margin
:
10rpx
;
padding
:
10rpx
;
background-color
:
white
;
color
:
black
;
}
.text-box
{
word-break
:
break-all
;
margin
:
10rpx
;
padding
:
10rpx
;
background-color
:
white
;
color
:
black
;
}
.nextBtn
{
justify-content
:
center
;
align-items
:
center
;
display
:
flex
;
border-radius
:
50rpx
;
background-color
:
#e8c8ae
;
color
:
#8d5a29
;
width
:
660rpx
;
height
:
90rpx
;
font-size
:
32rpx
;
margin
:
20rpx
auto
;
}
</
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