From 2c1d2ddaff28643c12ac3e678bf908f1916b942f Mon Sep 17 00:00:00 2001
From: tangmingyou <234767776@qq.com>
Date: Tue, 7 Feb 2023 17:56:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=B3=A8=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/lobby/lobby.jsx | 77 +++++++++++++++++++++++++++++++++++++-
src/pages/login/login.jsx | 3 +-
src/pages/table/table.jsx | 2 +-
src/pages/table/table.scss | 2 +-
4 files changed, 80 insertions(+), 4 deletions(-)
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 (
(
{console.log(p)}).bind(this, player)}>
{
- player.status === 2 && Ready!
+ player.status === 2 && Ready
}
{
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;
}