/** * 用于 page 根目录的样式等设置 */ import { View, Video } from "@tarojs/components"; import React from "react"; import pageStyle from "./index.module.less"; import { GlobalModal } from '@/components/GlobalModal/index'; interface Props { children?: React.ReactChild | React.ReactChild[]; style?: React.CSSProperties; styleBg?: string; onClick?: (e:any)=> void } const Index: React.FC = ({ children, styleBg, style, onClick }) => { // 自定义背景样式 const bgImageStyle = { backgroundImage: `url(${styleBg})`, }; const renderBg = () => { if(!styleBg) { return <> } if(styleBg.lastIndexOf('.mp4') > -1){ return