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
9ebd2a08
Commit
9ebd2a08
authored
Dec 05, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试客服接口,添加支付状态判断,代码优化
parent
b2296e01
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
162 additions
and
105 deletions
+162
-105
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+23
-7
home.vue
vedio/pages/home.vue
+14
-13
index.vue
vedio/pages/index/index.vue
+24
-11
my.vue
vedio/pages/my/my.vue
+60
-43
follow.vue
vedio/pages/recommend/follow.vue
+5
-4
recommendVideo.vue
vedio/pages/recommend/recommendVideo.vue
+18
-4
newVideoDetail.vue
vedio/pagesC/video/newVideoDetail.vue
+18
-23
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
9ebd2a08
...
@@ -96,7 +96,6 @@
...
@@ -96,7 +96,6 @@
return
{
return
{
vipList
:
[],
vipList
:
[],
selectedIndex
:
0
,
selectedIndex
:
0
,
tid
:
0
,
userBean
:
{},
userBean
:
{},
showClone
:
false
showClone
:
false
};
};
...
@@ -174,7 +173,6 @@
...
@@ -174,7 +173,6 @@
wxPay
(
wxData
,
largeType
)
{
wxPay
(
wxData
,
largeType
)
{
let
wxParams
=
wxData
.
params
;
let
wxParams
=
wxData
.
params
;
let
that
=
this
;
let
that
=
this
;
this
.
tid
=
wxData
.
tid
;
// 发起微信支付
// 发起微信支付
wx
.
requestPayment
({
wx
.
requestPayment
({
timeStamp
:
wxParams
.
timeStamp
,
timeStamp
:
wxParams
.
timeStamp
,
...
@@ -192,12 +190,10 @@
...
@@ -192,12 +190,10 @@
// 虚拟支付
// 虚拟支付
let
wxParams
=
wxData
.
params
;
let
wxParams
=
wxData
.
params
;
let
signDataParams
=
wxData
.
params
.
sigData
;
let
signDataParams
=
wxData
.
params
.
sigData
;
// let signDataStr = wxData.params.signDataStr;
let
that
=
this
;
let
that
=
this
;
const
SDKVersion
=
wx
.
getSystemInfoSync
().
SDKVersion
;
const
SDKVersion
=
wx
.
getSystemInfoSync
().
SDKVersion
;
if
(
this
.
compareVersion
(
SDKVersion
,
'2.19.2'
)
>=
0
||
wx
.
canIUse
(
'requestVirtualPayment'
))
{
if
(
this
.
compareVersion
(
SDKVersion
,
'2.19.2'
)
>=
0
||
wx
.
canIUse
(
'requestVirtualPayment'
))
{
wx
.
requestVirtualPayment
({
wx
.
requestVirtualPayment
({
// signData :signDataStr,
signData
:
JSON
.
stringify
(
wxData
.
params
.
sigData
),
signData
:
JSON
.
stringify
(
wxData
.
params
.
sigData
),
// signData: JSON.stringify({
// signData: JSON.stringify({
// offerId: signDataParams.offerId,
// offerId: signDataParams.offerId,
...
@@ -214,7 +210,8 @@
...
@@ -214,7 +210,8 @@
signature
:
wxParams
.
signature
,
signature
:
wxParams
.
signature
,
mode
:
wxParams
.
mode
,
mode
:
wxParams
.
mode
,
success
(
res
)
{
success
(
res
)
{
that
.
paySuccess
(
largeType
);
// 拉取服务器,是否支付成功
that
.
queryOrderStatus
(
largeType
,
wxData
.
params
.
sigData
.
outTradeNo
)
},
},
fail
({
fail
({
errMsg
,
errMsg
,
...
@@ -228,6 +225,25 @@
...
@@ -228,6 +225,25 @@
message
.
notify
(
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
);
message
.
notify
(
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
);
}
}
},
},
queryOrderStatus
(
largeType
,
tid
)
{
// setTimeout(() => {
// }, 5000);
let
that
=
this
;
this
.
post
({
data
:
{
tid
:
tid
},
url
:
'/vip/queryVipOrder'
,
showLoading
:
true
,
success
:
({
data
})
=>
{
that
.
paySuccess
(
largeType
);
}
});
},
compareVersion
(
_v1
,
_v2
)
{
compareVersion
(
_v1
,
_v2
)
{
if
(
typeof
_v1
!==
'string'
||
typeof
_v2
!==
'string'
)
return
0
if
(
typeof
_v1
!==
'string'
||
typeof
_v2
!==
'string'
)
return
0
...
...
vedio/pages/home.vue
View file @
9ebd2a08
...
@@ -115,10 +115,10 @@
...
@@ -115,10 +115,10 @@
this
.
currentPage
=
index
this
.
currentPage
=
index
}
}
if
(
wx
.
setVisualEffectOnCapture
){
if
(
wx
.
setVisualEffectOnCapture
)
{
wx
.
setVisualEffectOnCapture
({
wx
.
setVisualEffectOnCapture
({
visualEffect
:
'hidden'
,
visualEffect
:
'hidden'
,
success
:(
res
)
=>
{
success
:
(
res
)
=>
{
},
},
})
})
...
@@ -197,13 +197,13 @@
...
@@ -197,13 +197,13 @@
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
1
2
0rpx
;
height
:
1
1
0rpx
;
background
:
white
;
background
:
white
;
display
:
flex
;
display
:
flex
;
.editItem
{
.editItem
{
height
:
1
2
0rpx
;
height
:
1
1
0rpx
;
line-height
:
1
2
0rpx
;
line-height
:
1
1
0rpx
;
text-align
:
center
;
text-align
:
center
;
width
:
50%
;
width
:
50%
;
}
}
...
@@ -214,6 +214,7 @@
...
@@ -214,6 +214,7 @@
background-color
:
black
;
background-color
:
black
;
.tab
{
.tab
{
height
:
110rpx
;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
font-size
:
26rpx
;
font-size
:
26rpx
;
...
...
vedio/pages/index/index.vue
View file @
9ebd2a08
...
@@ -20,8 +20,14 @@
...
@@ -20,8 +20,14 @@
<view
style=
"position: relative;"
>
<view
style=
"position: relative;"
>
<view
style=
"position: absolute;z-index: 10;margin-left: 20rpx;"
>
<view
style=
"position: absolute;z-index: 10;margin-left: 20rpx;"
>
<view
style=
"position: relative;"
>
<view
style=
"position: relative;"
>
<view
<view
style=
"
style=
"position: absolute;z-index: 10;margin-left: 18rpx;margin-top: 10rpx;font-size: 24rpx;color: white;"
>
position: absolute;
z-index: 10;
width: 50rpx;
text-align: center;
margin-top: 8rpx;
font-size: 24rpx;
color: white;"
>
{{
index
+
1
}}
{{
index
+
1
}}
</view>
</view>
<image
v-if=
"index==0"
<image
v-if=
"index==0"
...
@@ -80,8 +86,7 @@
...
@@ -80,8 +86,7 @@
style=
"font-size: 30rpx;font-weight: 777;margin-top: 20rpx;margin-bottom: 10rpx;margin-left: 4rpx;"
>
style=
"font-size: 30rpx;font-weight: 777;margin-top: 20rpx;margin-bottom: 10rpx;margin-left: 4rpx;"
>
推荐
</view>
推荐
</view>
<view
style=
"column-count: 2;column-gap: 20rpx;margin-top: 20rpx;"
>
<view
style=
"column-count: 2;column-gap: 0;margin-top: 20rpx;"
>
<view
class=
"item-wrap"
v-for=
"(item, i) in dataList"
:key=
"i"
v-if=
"i % 2 == 0"
<view
class=
"item-wrap"
v-for=
"(item, i) in dataList"
:key=
"i"
v-if=
"i % 2 == 0"
@
click=
"handleInfo(item)"
>
@
click=
"handleInfo(item)"
>
...
@@ -173,8 +178,16 @@
...
@@ -173,8 +178,16 @@
<image
@
click=
"handleBottomClose()"
<image
@
click=
"handleBottomClose()"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
src=
"../../static/index/ic_quit_white.png"
mode=
"aspectFill"
></image>
src=
"../../static/index/ic_quit_white.png"
mode=
"aspectFill"
></image>
<view
@
click=
"handleBottomPlay(newRecordBean)"
style=
"width: 160rpx;height: 50rpx;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;justify-content: center;
<view
@
click=
"handleBottomPlay(newRecordBean)"
style=
"
align-items: center;display: flex;padding-bottom: 4rpx;margin-right: 20rpx;"
>
width: 160rpx;
height: 50rpx;
line-height: 50rpx;
text-align: center;
background-color: red;
border-radius:30rpx;
color: white;
font-size: 24rpx;
margin-right: 20rpx;"
>
继续观看
继续观看
</view>
</view>
</view>
</view>
...
@@ -358,7 +371,7 @@
...
@@ -358,7 +371,7 @@
}
}
.item-wrap
{
.item-wrap
{
width
:
96
%
;
width
:
100
%
;
border-radius
:
10rpx
;
border-radius
:
10rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
break-inside
:
avoid
;
break-inside
:
avoid
;
...
...
vedio/pages/my/my.vue
View file @
9ebd2a08
...
@@ -38,7 +38,8 @@
...
@@ -38,7 +38,8 @@
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip.png"
mode=
"scaleToFill"
></image>
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip.png"
mode=
"scaleToFill"
></image>
</view>
</view>
<view
v-if=
"os === 'android' "
style=
"display: flex;height: 200rpx;margin: 20rpx;background: #f5ca86;border-radius: 20rpx;"
>
<view
v-if=
"os === 'android' "
style=
"display: flex;height: 200rpx;margin: 20rpx;background: #f5ca86;border-radius: 20rpx;"
>
<view
style=
"flex-grow: 2; margin-left: 20rpx;"
>
<view
style=
"flex-grow: 2; margin-left: 20rpx;"
>
<view
<view
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;"
>
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;"
>
...
@@ -127,13 +128,15 @@
...
@@ -127,13 +128,15 @@
userBean
:
{},
userBean
:
{},
showAnimate
:
false
,
showAnimate
:
false
,
windowHeight
:
0
,
windowHeight
:
0
,
os
:
'android'
,
os
:
'android'
,
versionName
:
app
.
globalData
.
versionName
versionName
:
app
.
globalData
.
versionName
,
corpid
:
''
,
// 企业ID
curl
:
''
,
// 客服链接
};
};
},
},
methods
:
{
methods
:
{
show
()
{
show
()
{
this
.
os
=
wx
.
getSystemInfoSync
().
platform
;
this
.
os
=
wx
.
getSystemInfoSync
().
platform
;
this
.
windowHeight
=
uni
.
getSystemInfoSync
().
windowHeight
this
.
windowHeight
=
uni
.
getSystemInfoSync
().
windowHeight
// loadData() {
// loadData() {
this
.
post
({
this
.
post
({
...
@@ -170,39 +173,53 @@
...
@@ -170,39 +173,53 @@
navigateTo
(
`/pagesA/vipPay/vipPay`
)
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
},
handlePhone
()
{
handlePhone
()
{
if
(
this
.
corpid
!=
''
&&
this
.
curl
!=
''
)
{
wx
.
openCustomerServiceChat
({
extInfo
:
{
url
:
this
.
curl
},
corpId
:
this
.
corpid
,
success
(
res
)
{},
fail
(
e
)
{
console
.
log
(
e
)
}
})
}
else
{
let
that
=
this
// 联系我们
// 联系我们
// this.post({
this
.
post
({
// url: '/vedio/customerServiceNumbers',
url
:
'/vedio/customerServiceNumbers'
,
// showLoading: false,
showLoading
:
false
,
// success: ({
success
:
({
// data
data
// }) => {
})
=>
{
// let datas = data.customerServiceNumbers.split(',')
let
datas
=
data
.
customerServiceNumbers
.
split
(
','
)
// let corpid = datas[0]
that
.
corpid
=
datas
[
0
]
// let curl = datas[1]
that
.
curl
=
datas
[
1
]
// wx.openCustomerServiceChat({
// extInfo: {
// url: curl
// },
// corpId: corpid,
// success(res) {},
// fail(e) {
// console.log(e)
// }
// })
// }
// });
wx
.
makePhoneCall
({
wx
.
openCustomerServiceChat
({
phoneNumber
:
'4000969950'
,
extInfo
:
{
success
:
function
(
res
)
{
url
:
that
.
curl
console
.
log
(
'拨打电话成功!'
);
},
},
fail
:
function
(
res
)
{
corpId
:
that
.
corpid
,
console
.
log
(
'拨打电话失败!'
);
success
(
res
)
{},
fail
(
e
)
{
console
.
log
(
e
)
}
}
})
})
}
});
}
// wx.makePhoneCall({
// phoneNumber: '4000969950',
// success: function(res) {
// console.log('拨打电话成功!');
// },
// fail: function(res) {
// console.log('拨打电话失败!');
// }
// })
},
},
paySuccess
(
largeType
)
{
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=vip 开通vip
...
...
vedio/pages/recommend/follow.vue
View file @
9ebd2a08
...
@@ -8,11 +8,13 @@
...
@@ -8,11 +8,13 @@
style=
"width:31%; position: relative; border-radius:20rpx;margin-bottom: 10rpx;margin-left: 14rpx;"
style=
"width:31%; position: relative; border-radius:20rpx;margin-bottom: 10rpx;margin-left: 14rpx;"
@
click
.
stop=
"click(value)"
@
longpress
.
stop=
"longClick(key)"
>
@
click
.
stop=
"click(value)"
@
longpress
.
stop=
"longClick(key)"
>
<image
class=
"integral-mall-goods"
mode=
"aspectFill"
:src=
"value.coverImage"
></image>
<image
class=
"integral-mall-goods"
mode=
"aspectFill"
:src=
"value.coverImage"
></image>
<view
class=
"text"
style=
"font-size: 26rpx;color: black;height: 36rpx;"
>
{{
value
.
title
}}
</view>
<view
class=
"text"
style=
"font-size: 26rpx;color: black;height: 36rpx;margin-left: 5rpx;"
>
<view
class=
"text"
style=
"font-size: 22rpx;color: gray;height: 30rpx;"
>
{{
value
.
title
}}
</view>
<view
class=
"text"
style=
"font-size: 22rpx;color: gray;height: 30rpx;margin-left: 5rpx;"
>
{{
value
.
vedioDesc
}}
{{
value
.
vedioDesc
}}
</view>
</view>
<view
v-if=
"isEditStyle"
@
click
.
stop=
"cbClick(key)"
style=
"position: absolute;background: #000000; opacity: 0.6;width: 92%;height:
100
%;top: 0;border-radius:20rpx;
<view
v-if=
"isEditStyle"
@
click
.
stop=
"cbClick(key)"
style=
"position: absolute;background: #000000; opacity: 0.6;width: 92%;height:
96
%;top: 0;border-radius:20rpx;
padding-left: 20rpx;padding-top: 20rpx;"
>
padding-left: 20rpx;padding-top: 20rpx;"
>
<image
v-if=
"value.isChecked"
src=
"@/static/ic_selected.png"
<image
v-if=
"value.isChecked"
src=
"@/static/ic_selected.png"
style=
"width: 50rpx;height: 50rpx;"
/>
style=
"width: 50rpx;height: 50rpx;"
/>
...
@@ -164,7 +166,6 @@
...
@@ -164,7 +166,6 @@
}
}
.cb
{
.cb
{
margin-top
:
10rpx
;
margin-top
:
10rpx
;
margin-left
:
10rpx
;
margin-left
:
10rpx
;
// position: absolute;
// position: absolute;
...
...
vedio/pages/recommend/recommendVideo.vue
View file @
9ebd2a08
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<video
v-if=
"Math.abs(displayIndex-index)==0"
:id=
"''+list.vedioId"
:controls=
"controls"
<video
v-if=
"Math.abs(displayIndex-index)==0"
:id=
"''+list.vedioId"
:controls=
"controls"
:autoplay=
"true"
:isplay=
"true"
play-btn-position=
"center"
:loop=
"!isplay"
@
ended=
"ended"
:autoplay=
"true"
:isplay=
"true"
play-btn-position=
"center"
:loop=
"!isplay"
@
ended=
"ended"
@
controlstoggle=
"controlstoggle"
:show-fullscreen-btn=
"false"
:poster=
"list.coverImage"
@
controlstoggle=
"controlstoggle"
:show-fullscreen-btn=
"false"
:poster=
"list.coverImage"
:show-loading=
"true"
@
click=
"tapVideoHover()"
:enable-progress-gesture=
"false"
:show-loading=
"true"
@
click=
"tapVideoHover()"
:enable-progress-gesture=
"false"
class=
"tsvideo"
:s
tyle=
"'width:100%; height:100%;'"
:s
rc=
"list.recommendUrl"
object-fit=
"cover"
/>
:src=
"list.recommendUrl"
object-fit=
"cover"
/>
</view>
</view>
<view
v-if=
"!isqp"
class=
"userInfo flex"
>
<view
v-if=
"!isqp"
class=
"userInfo flex"
>
<!-- 点赞 -->
<!-- 点赞 -->
...
@@ -296,7 +296,6 @@
...
@@ -296,7 +296,6 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.body
{
.body
{
// background: yellow;
background
:
#000000
;
background
:
#000000
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
@@ -345,7 +344,6 @@
...
@@ -345,7 +344,6 @@
z-index
:
99
;
z-index
:
99
;
width
:
100%
;
width
:
100%
;
position
:
absolute
;
position
:
absolute
;
// bottom: 32px;
bottom
:
0
;
bottom
:
0
;
color
:
#ffffff
;
color
:
#ffffff
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -397,4 +395,20 @@
...
@@ -397,4 +395,20 @@
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.tsvideo
{
width
:
100%
;
height
:
100%
;
animation
:
showDivAni
1s
1
;
}
@keyframes
showDivAni
{
0
%
{
opacity
:
0
;
}
100
%
{
opacity
:
1
;
}
}
</
style
>
</
style
>
\ No newline at end of file
vedio/pagesC/video/newVideoDetail.vue
View file @
9ebd2a08
<
template
>
<
template
>
<view
style=
"width: 100%;height: 100%;"
>
<view
style=
"width: 100%;height: 100%;"
>
<status-title
style=
"position: absolute;"
iconColor=
"white"
:showBack=
"true"
></status-title
>
<status-title
style=
"position: absolute;"
iconColor=
"white"
:showBack=
"true"
/
>
<swiper
class=
"swiper"
circular
@
change=
"swiperChange"
:current=
"current"
:vertical=
"true"
>
<swiper
class=
"swiper"
circular
@
change=
"swiperChange"
:current=
"current"
:vertical=
"true"
:duration=
"duration"
>
<swiper-item
v-for=
"(list, index) in displaySwiperList"
:key=
"index"
:style=
"'width:100%; height:100%;'"
>
<swiper-item
v-for=
"(list, index) in displaySwiperList"
:key=
"index"
>
<view
style=
"width:100%; height:100%;"
>
<view
style=
"width:100%; height:100%;"
>
<video
v-if=
"Math.abs(displayIndex-index)==0 && list.vedioUrl"
:id=
"list.vedioIndex"
@
play=
"play"
<video
v-if=
"Math.abs(displayIndex-index)==0 && list.vedioUrl"
:id=
"list.vedioIndex"
@
ended=
"ended"
@
ended=
"ended"
:controls=
"controls"
:loop=
"!isplay"
:enable-progress-gesture=
"false"
:controls=
"controls"
:loop=
"!isplay"
:enable-progress-gesture=
"false"
:show-loading=
"true"
:show-loading=
"true"
:show-fullscreen-btn=
"false"
@
controlstoggle=
"controlstoggle"
:show-fullscreen-btn=
"false"
@
controlstoggle=
"controlstoggle"
:poster=
"data.coverImage"
:poster=
"data.coverImage"
@
click=
"tapVides()"
@
timeupdate=
"timeupdate"
@
click=
"tapVides()"
@
timeupdate=
"timeupdate"
:autoplay=
"!list.lock"
:src=
"list.vedioUrl"
style=
"width:100%; height:100%;"
:autoplay=
"!list.lock"
:src=
"list.vedioUrl"
class=
"tsvideo"
class=
"tsvideo"
play-btn-position=
"center"
object-fit=
"contain"
/>
play-btn-position=
"center"
object-fit=
"contain"
/>
<view
v-if=
"!isqp"
class=
"userInfo"
>
<view
v-if=
"!isqp"
class=
"userInfo"
>
<!-- 点赞 -->
<!-- 点赞 -->
<view
class=
"flex"
style=
"opacity: 0.9; margin-top: 10rpx;"
>
<view
class=
"flex"
style=
"opacity: 0.9; margin-top: 10rpx;"
>
...
@@ -54,7 +53,7 @@
...
@@ -54,7 +53,7 @@
</swiper-item>
</swiper-item>
</swiper>
</swiper>
<uni-popup
type=
"bottom"
ref=
"select
2
"
>
<uni-popup
type=
"bottom"
ref=
"select"
>
<view
<view
:style=
"'width: '+ windowWidth +'px; height: 860rpx; background-color: #202020; border-radius:20rpx 20rpx 0 0;'"
>
:style=
"'width: '+ windowWidth +'px; height: 860rpx; background-color: #202020; border-radius:20rpx 20rpx 0 0;'"
>
<view
style=
"height: 70rpx;display: flex; flex-direction: row;align-items: center;"
>
<view
style=
"height: 70rpx;display: flex; flex-direction: row;align-items: center;"
>
...
@@ -107,7 +106,8 @@
...
@@ -107,7 +106,8 @@
</swiper>
</swiper>
</view>
</view>
</uni-popup>
</uni-popup>
<coin-popup
:show=
"showCoinPop"
:point=
"data.point"
:vedioId=
"data.vedioId"
@
close=
"showCoinPop = false"
@
paySuccess=
"paySuccess"
>
<coin-popup
:show=
"showCoinPop"
:point=
"data.point"
:vedioId=
"data.vedioId"
@
close=
"showCoinPop = false"
@
paySuccess=
"paySuccess"
>
</coin-popup>
</coin-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -148,15 +148,13 @@
...
@@ -148,15 +148,13 @@
originIndex
:
0
,
// 记录源数据的下标
originIndex
:
0
,
// 记录源数据的下标
windowWidth
:
0
,
windowWidth
:
0
,
windowHeight
:
0
,
windowHeight
:
0
,
current
:
0
,
current
:
0
,
// swiper 下标
oid
:
0
,
oid
:
0
,
isplay
:
true
,
//是否自动播放下一个视频
isplay
:
true
,
//是否自动播放下一个视频
duration
:
500
,
duration
:
500
,
isqp
:
false
,
isqp
:
false
,
mid
:
0
,
safeArea
:
0
,
safeArea
:
0
,
ttuop
:
0
,
ttuop
:
0
,
heightxw
:
100
,
data
:
{},
data
:
{},
isPlayNext
:
0
,
isPlayNext
:
0
,
tabIndex
:
0
,
tabIndex
:
0
,
...
@@ -175,9 +173,6 @@
...
@@ -175,9 +173,6 @@
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
res
=>
{
success
:
res
=>
{
this
.
safeArea
=
res
.
safeAreaInsets
.
bottom
;
this
.
safeArea
=
res
.
safeAreaInsets
.
bottom
;
if
(
this
.
safeArea
>
0
)
{
this
.
heightxw
=
97
}
}
}
})
})
...
@@ -250,10 +245,10 @@
...
@@ -250,10 +245,10 @@
},
500
)
},
500
)
},
},
down
()
{
down
()
{
this
.
$refs
.
select
2
.
close
();
this
.
$refs
.
select
.
close
();
},
},
sellxj
()
{
sellxj
()
{
this
.
$refs
.
select
2
.
open
(
'bottom'
);
this
.
$refs
.
select
.
open
(
'bottom'
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
tabIndex
=
parseInt
(
this
.
originIndex
/
30
)
this
.
tabIndex
=
parseInt
(
this
.
originIndex
/
30
)
// 延迟渲染,否则位置错乱
// 延迟渲染,否则位置错乱
...
@@ -351,7 +346,6 @@
...
@@ -351,7 +346,6 @@
}
}
});
});
},
},
play
()
{},
ended
()
{
ended
()
{
// 1.播放当前视频结束时触发,自动切换下一个视频
// 1.播放当前视频结束时触发,自动切换下一个视频
if
(
this
.
isplay
)
{
if
(
this
.
isplay
)
{
...
@@ -584,7 +578,9 @@
...
@@ -584,7 +578,9 @@
}
}
.tsvideo
{
.tsvideo
{
/* animation:showDivAni 1s 1; */
width
:
100%
;
height
:
100%
;
animation
:
showDivAni
1s
1
;
}
}
@keyframes
showDivAni
{
@keyframes
showDivAni
{
...
@@ -598,7 +594,7 @@
...
@@ -598,7 +594,7 @@
}
}
.tsimg
{
.tsimg
{
/
* animation:fadenum12 10s 1; */
/
/ animation: fadenum12 10s 1;
}
}
.contentcd
{
.contentcd
{
...
@@ -606,7 +602,6 @@
...
@@ -606,7 +602,6 @@
left
:
4%
;
left
:
4%
;
width
:
92%
;
width
:
92%
;
position
:
absolute
;
position
:
absolute
;
// bottom: 36px;
bottom
:
30rpx
;
bottom
:
30rpx
;
color
:
#ffffff
;
color
:
#ffffff
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
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