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
a7841521
Commit
a7841521
authored
Jun 07, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fb5f7626
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
40 deletions
+30
-40
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+5
-5
index.vue
vedio/components/home/index.vue
+3
-5
my.vue
vedio/components/home/my.vue
+22
-30
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
a7841521
...
...
@@ -2,7 +2,7 @@
<view>
<uni-popup
type=
"bottom"
ref=
"coinPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<view
style=
"position: relative;"
>
<view
style=
"position: relative;
"
>
<view
v-if=
"agreeFlag"
style=
"width: 100%;height: 100%;background-color: black;opacity: 0.8;display: flex;position: absolute;z-index: 100;color: white;flex-direction: column;align-items: center;padding:40rpx 0;"
>
<text
style=
"font-size: 30rpx;"
>
...
...
@@ -15,11 +15,11 @@
src=
"@/static/index/ic_quit_white.png"
></image>
</view>
<view
class=
"body"
style=
"width: 100%;height: 100%;"
>
<scroll-view
scroll-y
>
<view
class=
"body"
style=
"width: 100%;height: 100%;
background-color: white;
"
>
<scroll-view
scroll-y
style=
"background-color: white;"
>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
>
<view
style=
"display: flex;flex-direction: row;"
>
<view
@
click=
"handleAgree"
style=
"margin-top: 12rpx;margin-right: 1
0
rpx;"
>
付费须知>
</view>
<view
@
click=
"handleAgree"
style=
"margin-top: 12rpx;margin-right: 1
8
rpx;"
>
付费须知>
</view>
<image
@
click=
"handleClickClose"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
src=
"@/static/index/ic_quit_white.png"
></image>
...
...
@@ -82,7 +82,7 @@
<view
style=
"display: flex;flex-direction: column;align-items: center;"
>
<button
@
click=
"handleKefu"
open-type=
"im"
data-im-id=
"dy1d1fub8mqd"
style=
"font-size: 24rpx;color: gray;margin-top: 16rpx;margin-bottom: 18rpx;background-color: transparent;"
>
订单中如有疑问,请
在个人中心
联系客服
</button>
订单中如有疑问,请联系客服
</button>
</view>
</scroll-view>
</view>
...
...
vedio/components/home/index.vue
View file @
a7841521
...
...
@@ -79,7 +79,7 @@
</view>
</view>
<view
class=
"ellipsis"
style=
"font-size: 26rpx;margin-top: 1
0rpx;"
>
{{
item
.
title
}}
</view>
<view
style=
"font-size: 26rpx;margin-top: 10rpx;height: 6
0rpx;"
>
{{
item
.
title
}}
</view>
<view
class=
"ellipsis"
style=
"font-size: 22rpx;margin-top: 10rpx;"
v-if=
"item.orderTags!=null&&item.orderTags.length>0"
>
<scroll-view
scroll-x=
"true"
>
...
...
@@ -153,11 +153,9 @@
</view>
</view>
</view>
<view
class=
"ellipsis"
style=
"font-size: 30rpx;margin-top: 10rpx;margin-left: 12
rpx;"
>
<view
style=
"font-size: 30rpx;margin-top: 10rpx;margin-left: 12rpx;height: 60
rpx;"
>
{{
item
.
title
}}
</view>
<!--
<view
style=
"font-size: 22rpx;margin-top: 10rpx;margin-left: 12rpx;"
>
{{
item
.
vedioDesc
}}
</view>
-->
</view>
</view>
...
...
@@ -435,7 +433,7 @@
background-color
:
#fff
;
break-inside
:
avoid
;
margin-bottom
:
20rpx
;
height
:
47
0rpx
;
height
:
50
0rpx
;
}
.img
{
...
...
vedio/components/home/my.vue
View file @
a7841521
<
template
>
<view
class=
"body"
>
<!--
<scroll-view
:scroll-y=
"true"
>
-->
<z-paging
style=
"height: 100%;background-color: #f5f5f5;"
>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<view>
<view
style=
"font-size: 32rpx;color: black;margin-left: 20rpx;"
>
用户ID:
{{
userBean
.
idcode
}}
</view>
</view>
</view>
<view
style=
"display: flex;height: 180rpx;margin:40rpx 20rpx ;background: #f5ca86;border-radius: 20rpx;"
>
<view
style=
"display: flex;height: 180rpx;margin:40rpx 20rpx ;background: #f5ca86;border-radius: 20rpx;"
>
<view
style=
"flex-grow: 2; margin-left: 20rpx;"
>
<view
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;"
>
...
...
@@ -20,35 +17,33 @@
style=
"width: 50rpx;height: 50rpx;display: flex;align-items: right;margin-right: 10rpx;"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"
></image>
<view
style=
"font-size: 36rpx;"
>
看点余额:
{{
userBean
.
point
}}
</view>
</view>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"font-size: 28rpx;color: #5b1500;margin-top: 20rpx;"
>
海量看点狂洒中,好剧等你来解锁
</view>
<view
v-else
style=
"font-size: 28rpx;color: #5b1500;margin-top: 20rpx;"
>
到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
</view>
</view>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"font-size: 28rpx;color: #5b1500;margin-top: 20rpx;"
>
海量看点狂洒中,好剧等你来解锁
</view>
<view
v-else
style=
"font-size: 28rpx;color: #5b1500;margin-top: 20rpx;"
>
VIP到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
</view>
</view>
</view>
<view
style=
"width: 220rpx;"
>
<view
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;"
>
<view
v-if=
"userBean.expireTime
<
=
0
"
@
click=
"handleCoinPay"
style=
"width: 160rpx;height: 60rpx;background-color: #5b1500;border-radius:30rpx;color: white;font-size: 26rpx;justify-content: center;align-items: center;display: flex;padding-bottom: 4rpx;"
>
去充值
</view>
<view
style=
"width: 220rpx;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;"
>
<view
v-if=
"userBean.expireTime
<
=
0
"
@
click=
"handleCoinPay"
style=
"width: 160rpx;height: 60rpx;background-color: #5b1500;border-radius:30rpx;color: white;font-size: 26rpx;justify-content: center;align-items: center;display: flex;padding-bottom: 4rpx;"
>
去充值
</view>
</view>
</view>
<view
class=
"infobg"
style=
"margin: 20rpx;"
>
<view
class=
"item arrow"
@
click=
"handlePayRecord"
>
我的订单
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
v-if=
"os === 'android' "
class=
"item arrow"
@
click=
"handleDotRecord"
>
<view
class=
"item arrow"
@
click=
"handleDotRecord"
>
看点记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
v-if=
"os === 'android' "
class=
"item arrow"
@
click=
"handleUseDotRecord"
>
<view
class=
"item arrow"
@
click=
"handleUseDotRecord"
>
消费记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
...
...
@@ -66,12 +61,9 @@
{{
versionName
}}
</view>
</z-paging>
<!--
</scroll-view>
-->
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
@
paySuccess=
"paySuccess"
>
</coin-popup>
<kefu-popup
:show=
"showKefuPop"
@
close=
"showKefuPop = false"
/>
</view>
</
template
>
...
...
@@ -97,15 +89,15 @@
export
default
{
name
:
'index'
,
mixins
:
[
common
],
components
:
{
kefuPopup
mixins
:
[
common
],
components
:
{
kefuPopup
},
data
()
{
return
{
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
userBean
:
{},
showAnimate
:
false
,
showAnimate
:
false
,
showKefuPop
:
false
,
windowHeight
:
0
,
os
:
'android'
,
...
...
@@ -153,15 +145,15 @@
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
handlePhone
()
{
this
.
showKefuPop
=
true
},
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
){
message
.
notify
(
'支付成功'
);
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
)
{
message
.
notify
(
'支付成功'
);
}
this
.
post
({
...
...
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