29271
This commit is contained in:
@@ -6,9 +6,7 @@
|
|||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="left-btns">
|
<div class="left-btns">
|
||||||
<img
|
<img :src="isPause ? 'https://cdn.cunwuyun.cn/slw2.0/images/play.png' : 'https://cdn.cunwuyun.cn/slw2.0/images/pause.png'" @click="changePlayStatus">
|
||||||
:src="isPause ? 'https://cdn.cunwuyun.cn/slw2.0/images/play.png' : 'https://cdn.cunwuyun.cn/slw2.0/images/pause.png'"
|
|
||||||
@click="changePlayStatus">
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div
|
<!-- <div
|
||||||
class="volume"
|
class="volume"
|
||||||
@@ -28,7 +26,7 @@
|
|||||||
<div v-else class="back-btn" @click="backLiveing">回到直播</div>
|
<div v-else class="back-btn" @click="backLiveing">回到直播</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right" :style="{ right: right + 'px' }">
|
||||||
<!-- <picker mode="date" @change="onDateChange">
|
<!-- <picker mode="date" @change="onDateChange">
|
||||||
<img src="https://cdn.cunwuyun.cn/slw2.0/images/date.png">
|
<img src="https://cdn.cunwuyun.cn/slw2.0/images/date.png">
|
||||||
</picker> -->
|
</picker> -->
|
||||||
@@ -71,6 +69,7 @@
|
|||||||
isShowVolume: false,
|
isShowVolume: false,
|
||||||
isShowBar: true,
|
isShowBar: true,
|
||||||
date: '',
|
date: '',
|
||||||
|
right: 0,
|
||||||
isLiveing: true
|
isLiveing: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -102,6 +101,10 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
|
if (uni.getSystemInfoSync().platform === 'ios') {
|
||||||
|
this.right = 20
|
||||||
|
}
|
||||||
|
console.log(uni.getSystemInfoSync())
|
||||||
this.date = this.$dayjs(new Date()).format('YYYY-MM-DD')
|
this.date = this.$dayjs(new Date()).format('YYYY-MM-DD')
|
||||||
this.getSlwPlaybackTime()
|
this.getSlwPlaybackTime()
|
||||||
this.width = document.querySelector(`.slw`).offsetWidth + 'px'
|
this.width = document.querySelector(`.slw`).offsetWidth + 'px'
|
||||||
@@ -378,6 +381,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
|
position: relative;
|
||||||
color: #c9c9c9;
|
color: #c9c9c9;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="wrapper" class="canvas" v-if="isInit" style="height: 52px">
|
<div :class="wrapper" class="canvas" v-if="isInit" style="height: 52px">
|
||||||
<canvas
|
<canvas class="canvas" :id="id" :canvas-id="id" :style="{width: canvasWidth + 'px', height: canvasHeight + 'px'}" v-if="canvasWidth" :width="canvasWidth" @click.stop="onClick" :height="canvasHeight">
|
||||||
class="canvas"
|
|
||||||
:id="id"
|
|
||||||
:canvas-id="id"
|
|
||||||
:style="{width: canvasWidth + 'px', height: canvasHeight + 'px'}"
|
|
||||||
v-if="canvasWidth"
|
|
||||||
:width="canvasWidth"
|
|
||||||
@click.stop="onClick"
|
|
||||||
:height="canvasHeight">
|
|
||||||
</canvas>
|
</canvas>
|
||||||
<img
|
<img class="drag-img" :style="{left: x + 'px'}" src="https://cdn.cunwuyun.cn/slw2.0/images/drag.png" />
|
||||||
class="drag-img"
|
|
||||||
:style="{left: x + 'px'}"
|
|
||||||
src="https://cdn.cunwuyun.cn/slw2.0/images/drag.png" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -23,20 +12,20 @@
|
|||||||
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
x: 0,
|
||||||
|
id: `timeline-${new Date().getTime()}`,
|
||||||
ctx: null,
|
ctx: null,
|
||||||
canvasWidth: '',
|
|
||||||
canvasHeight: '',
|
|
||||||
scale: 4,
|
|
||||||
time: '',
|
time: '',
|
||||||
left: 0,
|
left: 0,
|
||||||
x: 0,
|
timer: null,
|
||||||
|
scale: 4,
|
||||||
ratioW: '',
|
ratioW: '',
|
||||||
isHide: true,
|
isHide: true,
|
||||||
isInit: false,
|
isInit: false,
|
||||||
isChoose: false,
|
isChoose: false,
|
||||||
wrapper: `canvas-${new Date().getTime()}`,
|
wrapper: `canvas-${new Date().getTime()}`,
|
||||||
id: `timeline-${new Date().getTime()}`,
|
canvasWidth: '',
|
||||||
timer: null
|
canvasHeight: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user