From d1c6798c7e27a559892a5f2376b505d2ce1534ad Mon Sep 17 00:00:00 2001
From: liangjunhao <3220663807@qq.com>
Date: Tue, 31 Dec 2024 17:57:31 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 29 ----------
activity.log | 16 ++++++
.../src/components/chessboard/ChessBoard.css | 43 +++++++++++---
.../src/components/chessboard/ChessBoard.jsx | 56 +++++++++++++++----
4 files changed, 97 insertions(+), 47 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 330a3f8..5da7e65 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,37 +7,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/activity.log b/activity.log
index fbef7a3..d726cf4 100644
--- a/activity.log
+++ b/activity.log
@@ -2342,3 +2342,19 @@
{"level":"INFO","time":"2024-12-31T16:05:02.844+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
{"level":"INFO","time":"2024-12-31T16:05:13.669+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
{"level":"INFO","time":"2024-12-31T16:05:16.837+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:20:52.979+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T16:20:52.983+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T16:20:53.442+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T16:20:59.263+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"INFO","time":"2024-12-31T16:21:15.344+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:21:31.993+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"ERROR","time":"2024-12-31T16:21:45.408+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"ERROR","time":"2024-12-31T16:22:09.877+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"ERROR","time":"2024-12-31T16:22:11.101+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"INFO","time":"2024-12-31T16:23:56.786+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"ERROR","time":"2024-12-31T16:24:10.467+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"ERROR","time":"2024-12-31T16:24:13.270+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"INFO","time":"2024-12-31T16:25:47.673+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:37:37.310+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:41:30.442+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=2)连接"}
+{"level":"INFO","time":"2024-12-31T16:42:52.563+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
diff --git a/checkerboard/src/components/chessboard/ChessBoard.css b/checkerboard/src/components/chessboard/ChessBoard.css
index f6a36f0..fbf92b6 100644
--- a/checkerboard/src/components/chessboard/ChessBoard.css
+++ b/checkerboard/src/components/chessboard/ChessBoard.css
@@ -23,7 +23,7 @@
align-items: center;
justify-content: center;
height: 750rem;
- width: 1324rem;
+ width: 1124rem;
margin-top: 40rem;
clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%);
background-color: #000000;
@@ -40,10 +40,11 @@
flex-wrap: wrap;
flex-direction: column;
height: 730rem;
- width: 989rem;
+ width: 789rem;
margin-left: 94rem;
background-color: #191919;
clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
+ position: relative;
}
.betch-container-right {
@@ -60,8 +61,17 @@
width: 300rem;
}
+.container-avatar{
+ background-color: ;
+
+
+}
+
+
+
.batch-avatar{
margin-top: 130rem;
+ border: 8px solid #3C342F;
}
.is-owner{
@@ -226,11 +236,24 @@
.countdown-wrapper-son {
display: flex;
- justify-content: space-around;
- flex-wrap: wrap;
- align-content: space-around;
+ flex-wrap: nowrap;
+ justify-content: space-between;
align-items: center;
+ width: 600rem;
+ position: absolute;
+ top: 20rem;
+ font-family: Seymour One;
+ font-size: 24px;
+ font-weight: 800;
+ line-height: 30.16px;
+ text-align: left;
+ text-underline-position: from-font;
+ text-decoration-skip-ink: none;
+}
+.countdown-wrapper-son-btn{
+ display: flex;
+ justify-content: center;
}
.countdown-wrapper>* {
@@ -289,15 +312,19 @@
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
+ background-color: #191919 ;
}
.grid-container {
display: grid;
grid-template-columns: repeat(10, 1fr);
gap: 5rem;
- width: 500rem;
- height: 500rem;
- padding: 10rem;
+ width: 500rem;
+ height: 500rem;
+ padding: 10rem;
+ position: absolute;
+ top: 60rem;
+ left: 70rem;
}
.shiled-div{
diff --git a/checkerboard/src/components/chessboard/ChessBoard.jsx b/checkerboard/src/components/chessboard/ChessBoard.jsx
index 4295eb3..2843e24 100644
--- a/checkerboard/src/components/chessboard/ChessBoard.jsx
+++ b/checkerboard/src/components/chessboard/ChessBoard.jsx
@@ -226,11 +226,29 @@ const ChessBoard = ({gId}) => {
// 向左
const leftHandle = (id) => {
+ console.log(id)
+ if ((id-1) === 0){
+ console.log('jinlail')
+ return
+ }
+ if (id-1 === 5){
+ let nextId = id-2
+ dispatch(setPage(nextId))
+ return;
+ }
let nextId = id - 1
dispatch(setPage(nextId))
}
// 向右
const rightHandle = (id) => {
+ if (id+1 === 10){
+ return
+ }
+ if (id+1 === 5){
+ let nextId = id+2
+ dispatch(setPage(nextId))
+ return;
+ }
let nextId = id + 1
dispatch(setPage(nextId))
}
@@ -280,11 +298,33 @@ const ChessBoard = ({gId}) => {
-
-
BarkingCanyon
-
当前位置: {page}
+
Barking Canyon
-
+
+
leftHandle(blockId)}>
+
+
+
rightHandle(blockId)}>
+
+
+
{boxes && boxes.length > 0 ? (
@@ -299,7 +339,7 @@ const ChessBoard = ({gId}) => {