西海岸需求开发

This commit is contained in:
a0049873 2022-11-22 19:16:10 +08:00
parent 5a98693b05
commit 6682746254
1 changed files with 73 additions and 63 deletions

View File

@ -2,7 +2,7 @@
* @Author: Light * @Author: Light
* @Date: 2022-11-18 11:53:43 * @Date: 2022-11-18 11:53:43
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-11-22 14:50:32 * @LastEditTime: 2022-11-22 19:13:02
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<template> <template>
@ -69,7 +69,10 @@
</a-list-item> </a-list-item>
</template> </template>
<template #header> <template #header>
<div class="title">已申请列表</div> <div class="title">
已申请列表
<a-button type="link" @click="goToApply">详情</a-button>
</div>
</template> </template>
</a-list> </a-list>
</div> </div>
@ -104,8 +107,7 @@
@cancel="clear" @cancel="clear"
> >
<div style="width: 100%; display: flex; justify-content: center"> <div style="width: 100%; display: flex; justify-content: center">
<div <div style="width: 100%; height: 100%; position: relative">
style="width: 100%; height: 100%; position: relative">
<div class="waterMark waterMark-left-top"> <div class="waterMark waterMark-left-top">
{{ userInfo.usernameShow }} {{ userInfo.usernameShow }}
</div> </div>
@ -243,10 +245,18 @@
} }
} }
} }
const goToApply = () => {
router.push({
path: '/personalCenter',
query: {
type: 'apply',
},
})
}
const selectItem = (item) => { const selectItem = (item) => {
if (item.approveStatus == '通过') { if (item.approveStatus == '通过') {
dataList.selectItem = item dataList.selectItem = item
getVideoUrl(item.cameraInfo); getVideoUrl(item.cameraInfo)
} else { } else {
dataList.selectItem = {} dataList.selectItem = {}
showVisible.value = false showVisible.value = false
@ -303,11 +313,11 @@
const videoUrl = ref('') const videoUrl = ref('')
// //
const getVideoUrl = (data) => { const getVideoUrl = (data) => {
let param = data; let param = data
getCameraLiveStream(param).then((res) => { getCameraLiveStream(param).then((res) => {
//console.log('555555rrrrr',res) //console.log('555555rrrrr',res)
if (res.data.data) { if (res.data.data) {
videoUrl.value = res.data.data.url; videoUrl.value = res.data.data.url
} }
showVisible.value = true showVisible.value = true
}) })