重点工程播放视频
parent
beeb53f40e
commit
cc8ff0d52b
|
@ -1,6 +1,19 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<u-search placeholder="请输入搜索关键词" v-model="KEYWORDS" @custom="fnSearchList" @clear="fnSearchList" @search="fnSearchList"></u-search>
|
||||
<view class="search card">
|
||||
<u--input
|
||||
prefixIcon="search"
|
||||
placeholder="请输入关键字"
|
||||
border="surround"
|
||||
v-model="KEYWORDS"
|
||||
clearable
|
||||
shape="circle"
|
||||
></u--input>
|
||||
<view class="bth-mini ml-10">
|
||||
<u-button type="success" text="确定" @click="fnSearchList"></u-button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
||||
<u-list-item v-for="(item, index) in list" :key="index">
|
||||
<view class="flex-between main-title" @click="fnKeyProjectApply(item.OUTSOURCED_ID)">
|
||||
|
|
|
@ -1,7 +1,19 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<u-search placeholder="请输入搜索关键词" v-model="KEYWORDS" @custom="fnSearchList" @clear="fnSearchList"
|
||||
@search="fnSearchList"></u-search>
|
||||
<view class="search card">
|
||||
<u--input
|
||||
prefixIcon="search"
|
||||
placeholder="请输入关键字"
|
||||
border="surround"
|
||||
v-model="KEYWORDS"
|
||||
clearable
|
||||
shape="circle"
|
||||
></u--input>
|
||||
<view class="bth-mini ml-10">
|
||||
<u-button type="success" text="确定" @click="fnSearchList"></u-button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
|
||||
<u-list-item v-for="(item, index) in list" :key="index">
|
||||
<view class="flex-between main-title">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view class="content">
|
||||
<video id="coursewareVideo" src="https://arqsp.qhdsafety.com:10010/api/v1/stream/start?serial=34020000001110001307&code=34020000001320000004&channel=1&token=&_=1733366514489"
|
||||
controls autoplay="autoplay" style="width: 100%;"></video>
|
||||
<video id="coursewareVideo" :src="src"
|
||||
controls autoplay="autoplay" style="width: 100%;"></video>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
@ -12,7 +12,8 @@ import {getPlatVideoPlay, loginVideoPlat} from "@/api";
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
info: {}
|
||||
info: {},
|
||||
src: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
@ -20,12 +21,18 @@ export default {
|
|||
this.fnInit()
|
||||
},
|
||||
methods: {
|
||||
fnInit(){
|
||||
fnInit() {
|
||||
this.fnInitVideoPlat()
|
||||
},
|
||||
async fnInitVideoPlat(){
|
||||
// this.src = 'https://arqsp.qhdsafety.com:10010/api/v1/stream/start?serial=34020000001110001307&code=34020000001320000004&channel=1&token=&_=1733366514489'
|
||||
// console.log(src)
|
||||
async fnInitVideoPlat() {
|
||||
const resData = await getPlatVideoPlay({
|
||||
serial: '34020000001110001307',
|
||||
code: '34020000001320000004',
|
||||
channel: 1,
|
||||
})
|
||||
this.src = resData.HLS
|
||||
// this.src = 'https://arqsp.qhdsafety.com:10010/api/v1/stream/start?serial=34020000001110001307&code=34020000001320000004&channel=1&token=&_=1733366514489'
|
||||
// console.log(src)
|
||||
},
|
||||
fnBack() {
|
||||
uni.$u.route({
|
||||
|
@ -51,16 +58,6 @@ export default {
|
|||
<style lang="scss" scoped>
|
||||
.content {
|
||||
background-color: #fff;
|
||||
padding: 0 20upx;
|
||||
}
|
||||
|
||||
.button {
|
||||
text-align: center;
|
||||
margin-top: 40upx;
|
||||
margin-bottom: 40upx;
|
||||
|
||||
button {
|
||||
width: 70%;
|
||||
}
|
||||
padding: 20rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue