Compare commits
No commits in common. "2cfc225b55b087c3f4a6c29c7aa5289145bb28d6" and "9e0a5d251205a67095806e4ee671a23faf1c0fb6" have entirely different histories.
2cfc225b55
...
9e0a5d2512
@ -29,10 +29,10 @@
|
|||||||
<video
|
<video
|
||||||
v-if="showVideo"
|
v-if="showVideo"
|
||||||
class="player-wrapper"
|
class="player-wrapper"
|
||||||
:style="{width: videoWidth + 'px'}"
|
style="height: 220px !important;"
|
||||||
:src="videoSrc"
|
:src="videoSrc"
|
||||||
controls
|
controls
|
||||||
:autoplay="false"
|
autoplay
|
||||||
></video>
|
></video>
|
||||||
<!-- 标签切换 -->
|
<!-- 标签切换 -->
|
||||||
<cover-view class="tabs">
|
<cover-view class="tabs">
|
||||||
@ -204,7 +204,6 @@ const notEnoughVisible = ref(false);
|
|||||||
const notEnoughContent = ref("");
|
const notEnoughContent = ref("");
|
||||||
const welfareNum = ref(0);
|
const welfareNum = ref(0);
|
||||||
const showVideo = ref(false);
|
const showVideo = ref(false);
|
||||||
const videoWidth = ref(350);
|
|
||||||
//import DomVideoPlayer from 'uniapp-video-player'
|
//import DomVideoPlayer from 'uniapp-video-player'
|
||||||
const notEnoughConfirm = () => {
|
const notEnoughConfirm = () => {
|
||||||
notEnoughVisible.value = false;
|
notEnoughVisible.value = false;
|
||||||
@ -507,12 +506,6 @@ const shareToWeibo = () => {
|
|||||||
// 使用uni-app的onLoad生命周期
|
// 使用uni-app的onLoad生命周期
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
console.log(options);
|
console.log(options);
|
||||||
uni.getSystemInfo({
|
|
||||||
success: function (res) {
|
|
||||||
videoWidth.value = res.windowWidth; // 窗口宽度
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
video_uuid.value = options.id;
|
video_uuid.value = options.id;
|
||||||
addVideoWatchRecord();
|
addVideoWatchRecord();
|
||||||
VideoDownloadRecord();
|
VideoDownloadRecord();
|
||||||
@ -680,8 +673,10 @@ $theme-color: #8b2316;
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top:calc(var(--status-bar-height) + 44px);
|
top:calc(var(--status-bar-height) + 44px);
|
||||||
left: 0;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
z-index:0;
|
z-index:0;
|
||||||
height: 220px!important;
|
width: 100%;
|
||||||
|
height: 220px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.share-img {
|
.share-img {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user