feat:修改视频列表为6个
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
let loading = ref(false)
|
let loading = ref(false)
|
||||||
let params = reactive({
|
let params = reactive({
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 16,
|
pageSize: 7,
|
||||||
businessScenicArea: '',
|
businessScenicArea: '',
|
||||||
businessVideoDisplayPosition: ''
|
businessVideoDisplayPosition: ''
|
||||||
})
|
})
|
||||||
@@ -215,6 +215,9 @@
|
|||||||
videoSrc.value = res.data.url
|
videoSrc.value = res.data.url
|
||||||
}
|
}
|
||||||
const getVideoList = async () => {
|
const getVideoList = async () => {
|
||||||
|
try {
|
||||||
|
if (loading.value) return
|
||||||
|
loading.value = true
|
||||||
params.businessVideoDisplayPosition = navList.value[current.value].dictValue
|
params.businessVideoDisplayPosition = navList.value[current.value].dictValue
|
||||||
let res = await getVideoListApi(params)
|
let res = await getVideoListApi(params)
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
@@ -249,6 +252,10 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
loading.value = false
|
||||||
|
} catch (error) {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const getVideoType = async (id) => {
|
const getVideoType = async (id) => {
|
||||||
let res = await getVideoTypeApi({
|
let res = await getVideoTypeApi({
|
||||||
@@ -263,17 +270,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const getVideoRegions = async () => {
|
const getVideoRegions = async () => {
|
||||||
if (loading.value) return
|
|
||||||
loading.value = true
|
|
||||||
try {
|
|
||||||
let res = await getVideoRegionsApi({
|
let res = await getVideoRegionsApi({
|
||||||
businessScenicArea: params.businessScenicArea
|
businessScenicArea: params.businessScenicArea
|
||||||
})
|
})
|
||||||
regionList.value = res.data
|
regionList.value = res.data
|
||||||
loading.value = false
|
|
||||||
} catch (error) {
|
|
||||||
loading.value = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
const onMonitorChange = () => {
|
const onMonitorChange = () => {
|
||||||
monitorChange = PubSub.subscribe('monitorChange', (res, data) => {
|
monitorChange = PubSub.subscribe('monitorChange', (res, data) => {
|
||||||
@@ -486,12 +486,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
&-item {
|
&-item {
|
||||||
width: vw(406);
|
width: vw(686);
|
||||||
height: vh(300);
|
height: vh(460);
|
||||||
padding: vw(10);
|
padding: vw(10);
|
||||||
background-image: url('/src/assets/images/item-primary.png');
|
background-image: url('/src/assets/images/item-primary.png');
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
&:nth-child(5n) {
|
&:nth-child(3n) {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -521,7 +521,7 @@
|
|||||||
}
|
}
|
||||||
&-item__video {
|
&-item__video {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: vh(286);
|
height: vh(446);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-detail {
|
&-detail {
|
||||||
|
|||||||
Reference in New Issue
Block a user