diff --git a/dist.zip b/dist.zip
new file mode 100644
index 0000000..bea01ad
Binary files /dev/null and b/dist.zip differ
diff --git a/src/api/lotteryConfig.js b/src/api/lotteryConfig.js
new file mode 100644
index 0000000..a946993
--- /dev/null
+++ b/src/api/lotteryConfig.js
@@ -0,0 +1,52 @@
+import request from "../utils/request";
+
+// 获取彩票列表
+export function getLotteryListApi(page, limit, classify) {
+ return request({
+ url: `/admin/lottery/${page}/${limit}?classify=${classify}`,
+ method: "get",
+ })
+}
+
+// 获取今日开奖通告
+export function getTodayLotteryApi() {
+ return request({
+ url: `/admin/lottery/last`,
+ method: "get",
+ })
+}
+
+// 获取彩票详情
+export function getLotteryDetailApi(id) {
+ return request({
+ url: `/admin/lottery/get/${id}`,
+ method: "get",
+ })
+}
+
+// 删除彩票记录
+export function deleteLotteryApi(id) {
+ return request({
+ url: `/admin/lottery/remove/${id}`,
+ method: "delete",
+ })
+}
+
+// 保存彩票记录
+export function saveLotteryApi(data) {
+ return request({
+ url: `/admin/lottery/save`,
+ method: "post",
+ data,
+ })
+}
+
+// 更新彩票记录
+export function updateLotteryApi(data) {
+ return request({
+ url: `/admin/lottery/update`,
+ method: "put",
+ data,
+ })
+}
+
diff --git a/src/layout/m-aside.vue b/src/layout/m-aside.vue
index 5d960b6..5af9907 100644
--- a/src/layout/m-aside.vue
+++ b/src/layout/m-aside.vue
@@ -119,7 +119,12 @@ onMounted(() => {
case "content":
items.push(getItem(item.title, item.id, item.component, () => h(SettingOutlined)));
break;
-
+ case "gameManagement":
+ items.push(getItem(item.title, item.id, item.component, () => h(AccountBookOutlined)));
+ break;
+ case "winningInformation":
+ items.push(getItem(item.title, item.id, item.component, () => h(AuditOutlined)));
+ break;
case "ServiceMarket":
items.push(getItem(item.title, item.id, item.component, () => h(SketchOutlined)));
break;
diff --git a/src/router/index.js b/src/router/index.js
index e490063..a0b50e2 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -63,6 +63,22 @@ const router = createRouter({
title: '内容管理',
},
component: () => import("../views/message/content.vue")
+ },
+ {
+ path: "/merchantManagement/winningInformation",
+ name: "winningInformation",
+ meta: {
+ title: '开奖信息',
+ },
+ component: () => import("../views/message/winningInformation.vue")
+ },
+ {
+ path: "/merchantManagement/gameManagement",
+ name: "gameManagement",
+ meta: {
+ title: '笔记',
+ },
+ component: () => import("../views/message/gameManagement.vue")
}
// ,{
// path: "/merchantManagement/record",
diff --git a/src/utils/mock.js b/src/utils/mock.js
index b03839f..3460dea 100644
--- a/src/utils/mock.js
+++ b/src/utils/mock.js
@@ -110,7 +110,60 @@ export let mockMenuList = {
"exportTag": 0,
"childrenList": []
},
-
+ {
+ "id": 51,
+ "creator": "",
+ "updator": "",
+ "createTime": "",
+ "updateTime": "",
+ "deleted": 0,
+ "title": "笔记",
+ "menuName": "gameManagement",
+ "parentName": "",
+ "path": "gameManagement",
+ "component": "/merchantManagement/gameManagement.vue",
+ "visible": 0,
+ "perms": "",
+ "icon": "icon-houtaishouye",
+ "remark": "",
+ "parentId": "",
+ "tagNames": "queryTag,addTag,updateTag,deleteTag",
+ "idx": 10,
+ "queryTag": 0,
+ "addTag": 0,
+ "deleteTag": 0,
+ "updateTag": 0,
+ "importTag": 0,
+ "exportTag": 0,
+ "childrenList": []
+ },
+ {
+ "id": 52,
+ "creator": "",
+ "updator": "",
+ "createTime": "",
+ "updateTime": "",
+ "deleted": 0,
+ "title": "开奖信息",
+ "menuName": "winningInformation",
+ "parentName": "",
+ "path": "winningInformation",
+ "component": "/merchantManagement/winningInformation.vue",
+ "visible": 0,
+ "perms": "",
+ "icon": "icon-houtaishouye",
+ "remark": "",
+ "parentId": "",
+ "tagNames": "queryTag,addTag,updateTag,deleteTag",
+ "idx": 10,
+ "queryTag": 0,
+ "addTag": 0,
+ "deleteTag": 0,
+ "updateTag": 0,
+ "importTag": 0,
+ "exportTag": 0,
+ "childrenList": []
+ },
{
"id": 1,
"creator": "",
diff --git a/src/views/message/content.vue b/src/views/message/content.vue
index 5c81b76..530252e 100644
--- a/src/views/message/content.vue
+++ b/src/views/message/content.vue
@@ -173,7 +173,7 @@ const handleModalOk = async () => {
title: formState.title,
content: formState.classify === 1 ? '' : formState.content,
img: processImagePath(formState.img),
- status: formState.status,
+ status: formState.status ? 1 : 0,
};
if (modalMode.value === 'add') {
await saveContentApi(data);
diff --git a/src/views/message/gameManagement.vue b/src/views/message/gameManagement.vue
new file mode 100644
index 0000000..02368b1
--- /dev/null
+++ b/src/views/message/gameManagement.vue
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/message/winningInformation.vue b/src/views/message/winningInformation.vue
new file mode 100644
index 0000000..80de209
--- /dev/null
+++ b/src/views/message/winningInformation.vue
@@ -0,0 +1,221 @@
+
+
+
+
+
+
+
+
+ {{ getFormattedNumbers(record) }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+