import React, {useState} from 'react' import { View, Image } from '@tarojs/components' import Taro from '@tarojs/taro' import './index.scss' const entranceList = [ { id: 0, x: '51.47vw', y: '79.89vh' }, { id: 1, x: '39.2vw', y: '66.26vh' }, { id: 2, x: '71.2vw', y: '53.75vh' }, { id: 3, x: '8.53vw', y: '50.62vh' }, { id: 4, x: '45.33vw', y: '41.75vh' }, { id: 5, x: '73.87vw', y: '28.57vh' }, { id: 6, x: '37.33vw', y: '20.69vh' }, { id: 7, x: '16vw', y: '7.27vh' } ] const Enteance: React.FC = () => { const [visible, setVisible] = useState(false) // 去我的页面 const goMypage = () => { Taro.navigateTo({ url: '/pages/My/index' }); } return ( goMypage()} src={require('../../assets/Entrance/my.png')} /> {/* 游戏入口 */} { entranceList.map( (item, index) => ( )) } {/* 第一次进入的活动规则 */} { visible && setVisible(false)} src={require('../../assets/Entrance/go.png')} > } ) } export default Enteance