Browse Source

修复大屏

dev
dengyinhuan 3 years ago
parent
commit
ac5199ad28
  1. 4
      web/client/src/sections/quanju/containers/footer/build/index.js

4
web/client/src/sections/quanju/containers/footer/build/index.js

@ -223,7 +223,7 @@ const Build = (props) => {
{lunboindex}//{lunboMsg.current.index}
{/* <img src='/assets/images/quanju/xuanchuanlan.jpg'></img> */}
<Carousel dots={true} ref={lunbo} key={lunboindex} afterChange={(current)=>{
console.log(current,'嘿嘿嘿')
setlunboindex(current)}}>
{/* {
videos.map((v, i) => {
@ -254,7 +254,7 @@ const Build = (props) => {
return item.video.map((i,index)=>{
// console.log(i,'视频')
console.log(index1,'index1')
if(index1-1===lunboindex){
if(index1===lunboindex){
// lunbo.current.goTo(lunboindex)
console.log("自动播放",index1)
return <video src={`${localStorage.getItem("qndmn")}/${i}`} autoPlay={true} ref={lunbovideo} loop></video>

Loading…
Cancel
Save