更新了逻辑
This commit is contained in:
parent
d00ca8006e
commit
7c28740994
|
@ -66,14 +66,14 @@ const orderList = ref([]);
|
|||
const loadOrderList = ()=>{
|
||||
axios.get('https://chat.lihaink.cn/index/demo1').then((res)=>{
|
||||
orderList.value = res.data.data;
|
||||
if(orderList.value[3].type==1){
|
||||
if(orderList.value[0].type==1){
|
||||
isVideo.value = false;
|
||||
showIframe.value = true;
|
||||
iframeSRC.value = orderList.value[3].uri;
|
||||
iframeSRC.value = orderList.value[0].uri;
|
||||
}else {
|
||||
isVideo.value = true;
|
||||
showIframe.value = false;
|
||||
MP4SRC.value = orderList.value[3].uri;
|
||||
MP4SRC.value = orderList.value[0].uri;
|
||||
nextTick(()=>{
|
||||
videoRef.value.play();
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue