diff --git a/src/api/index.ts b/src/api/index.ts
new file mode 100644
index 0000000..503f56b
--- /dev/null
+++ b/src/api/index.ts
@@ -0,0 +1,17 @@
+import request from "@/utils/request";
+
+export const getGameOption = () =>
+ request({
+ url: "/betting",
+ method: "GET",
+ });
+
+export const getKaiJiangList = () => request({url: "/draw", method: "GET"});
+
+// 用户信息
+export const getJfDz = (uid: string) =>
+ request({url: `/userBettingInfo?uid=${uid}`, method: "GET"});
+
+// 用户投注记录
+export const getTzJl = (uid: string) =>
+ request({url: `/userBettingRecord?uid=${uid}`, method: "GET"});
diff --git a/src/config/index.ts b/src/config/index.ts
new file mode 100644
index 0000000..28ac20b
--- /dev/null
+++ b/src/config/index.ts
@@ -0,0 +1,13 @@
+// 用于配置项目的一些常量,如接口地址、websocket地址等
+import Taro from "@tarojs/taro";
+
+export const app = {
+ API_URL: () =>
+ process.env.NODE_ENV === "production"
+ ? "https://game.jdt168.com/dice"
+ : "http://game.jdt168.com/dice",
+ API_WS: () =>
+ process.env.NODE_ENV === "production"
+ ? `wss://game.jdt168.com/dice/home?uid=${Taro.getStorageSync('uid')}`
+ : `ws://game.jdt168.com/dice/home?uid=${Taro.getStorageSync('uid')}`,
+};
diff --git a/src/pages/game_detail/index.scss b/src/pages/game_detail/index.scss
index cfabad1..6245036 100644
--- a/src/pages/game_detail/index.scss
+++ b/src/pages/game_detail/index.scss
@@ -21,7 +21,7 @@
margin: 20px auto;
padding: 10px;
border-radius: 50px;
- background-color: #74c0fc;
+ background-color: #7950f2;
color: #fff;
width: 300px;
text-align: center;
diff --git a/src/pages/game_list/yaotouzi/index.scss b/src/pages/game_list/yaotouzi/index.scss
index 8604ee3..7d0e023 100644
--- a/src/pages/game_list/yaotouzi/index.scss
+++ b/src/pages/game_list/yaotouzi/index.scss
@@ -188,6 +188,9 @@
width: 300px;
height: 100px;
margin-bottom: 20px;
+ line-height: 100px;
+ color: #FBE039;
+ font-weight: bold;
}
}
}
diff --git a/src/pages/game_list/yaotouzi/index.vue b/src/pages/game_list/yaotouzi/index.vue
index 4339f6e..5d25d66 100644
--- a/src/pages/game_list/yaotouzi/index.vue
+++ b/src/pages/game_list/yaotouzi/index.vue
@@ -54,7 +54,9 @@
-
+
+ {{ qzTitle }}
+
@@ -85,6 +87,11 @@