diff --git a/api/fortune.js b/api/fortune.js index 4a9be18..4b13458 100644 --- a/api/fortune.js +++ b/api/fortune.js @@ -6,3 +6,10 @@ export const drawFortune = async () => { method: "GET", }); }; + +export const getList = async (page = 1) => { + return request({ + url: `/api/blessing/fortune/list?page=${page}`, + method: "GET", + }); +}; diff --git a/pages.json b/pages.json index 5795cb3..e0af25f 100644 --- a/pages.json +++ b/pages.json @@ -56,6 +56,14 @@ "enablePullDownRefresh": false, "navigationStyle": "custom" } + }, + { + "path": "pages/fortune/record", + "style": { + "navigationBarTitleText": "我的运势记录", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/fortune/index.vue b/pages/fortune/index.vue index 9e9793d..28b61b0 100644 --- a/pages/fortune/index.vue +++ b/pages/fortune/index.vue @@ -95,7 +95,7 @@ - @@ -208,6 +208,12 @@ const goBack = () => { } }; +const goToRecord = () => { + uni.navigateTo({ + url: "/pages/fortune/record", + }); +}; + const startShake = async () => { if (!isLoggedIn.value) { loginPopupRef.value.open(); diff --git a/pages/fortune/record.vue b/pages/fortune/record.vue new file mode 100644 index 0000000..583bb88 --- /dev/null +++ b/pages/fortune/record.vue @@ -0,0 +1,413 @@ + + + + + diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index 267a56b..46b671f 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -1,17 +1,24 @@ \ No newline at end of file +