diff --git a/src/pages/lobby/lobby.jsx b/src/pages/lobby/lobby.jsx index 3f73b43..b05bcd6 100644 --- a/src/pages/lobby/lobby.jsx +++ b/src/pages/lobby/lobby.jsx @@ -1,5 +1,5 @@ import React, { Component, useState } from 'react' -import { View, Text, Button, Image } from '@tarojs/components' +import { View, Text, Button, Image, Radio, RadioGroup, Label, Slider,Head } from '@tarojs/components' import Taro from '@tarojs/taro' import { useSelector, useDispatch } from 'react-redux' @@ -26,6 +26,42 @@ class Lobby extends Component { tables: [], defaultAvatar: "https://img0.baidu.com/it/u=2477829979,2171947490&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500", lobbyLoading: false, + gameType: [ + {value: 1, text: '', checked: false}, + + ], + list: [ + { + value: '美国', + text: '美国', + checked: false + }, + { + value: '中国', + text: '中国', + checked: true + }, + { + value: '巴西', + text: '巴西', + checked: false + }, + { + value: '日本', + text: '日本', + checked: false + }, + { + value: '英国', + text: '英国', + checked: false + }, + { + value: '法国', + text: '法国', + checked: false + } + ], } this.circleEle = [1,2,3,4,5,6,7]; this.circleElePos = [{x:16,y:8},{x:70,y:-3},{x:110,y:28},{x:115,y:70},{x:80,y:105},{x:20,y:100},{x:-2,y:60}]; @@ -82,6 +118,45 @@ class Lobby extends Component { // const user = useSelector((state) => state.user) // console.log('state', this.state) + + // return ( + // + // 设置 step + // + // 显示当前 value + // + // 设置最小/最大值 + // + // + // ); + + return ( + + {/* */} + + + 默认样式 + 选中 + 未选中 + + + 推荐展示样式 + + + {this.state.list.map((item, i) => { + return ( + + ) + })} + + + + + + ); + return ( ( <View key={j} className="player-wrap" onClick={(p => {console.log(p)}).bind(this, player)}> { - player.status === 2 && <View className="p-status-ready"><Text>Ready!</Text></View> + player.status === 2 && <View className="p-status-ready"><Text>Ready</Text></View> } <View className="player-bar"> { diff --git a/src/pages/table/table.scss b/src/pages/table/table.scss index d8ce6c2..8d5bda4 100644 --- a/src/pages/table/table.scss +++ b/src/pages/table/table.scss @@ -18,7 +18,7 @@ position: absolute; top: -25px; left: 30px; - color: #EE914E; + color: #1BCE7D; font-weight: bold; font-size: 12px; }