更新了逻辑

This commit is contained in:
weipengfei 2023-10-19 09:09:46 +08:00
parent d00ca8006e
commit 7c28740994
1 changed files with 3 additions and 3 deletions

View File

@ -66,14 +66,14 @@ const orderList = ref([]);
const loadOrderList = ()=>{ const loadOrderList = ()=>{
axios.get('https://chat.lihaink.cn/index/demo1').then((res)=>{ axios.get('https://chat.lihaink.cn/index/demo1').then((res)=>{
orderList.value = res.data.data; orderList.value = res.data.data;
if(orderList.value[3].type==1){ if(orderList.value[0].type==1){
isVideo.value = false; isVideo.value = false;
showIframe.value = true; showIframe.value = true;
iframeSRC.value = orderList.value[3].uri; iframeSRC.value = orderList.value[0].uri;
}else { }else {
isVideo.value = true; isVideo.value = true;
showIframe.value = false; showIframe.value = false;
MP4SRC.value = orderList.value[3].uri; MP4SRC.value = orderList.value[0].uri;
nextTick(()=>{ nextTick(()=>{
videoRef.value.play(); videoRef.value.play();
}) })