From 50cbe66332481be6cbcbe5371b69c6287a263ff1 Mon Sep 17 00:00:00 2001 From: linxi Date: Thu, 12 Dec 2024 18:06:03 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=20=E5=AF=BB=E8=B6=A3=E5=91=B3?= =?UTF-8?q?=E6=94=B9=E7=89=88=EF=BC=88=E6=96=B0=E5=A2=9E=E5=8F=A4=E9=95=87?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/inn.js | 18 ++ assets/css/v12-style.less | 4 +- pages.json | 7 + pages/cloud/haveFun.vue | 163 ++++++++++++++--- pages/town/components/culture.vue | 70 +++++++ pages/town/components/information.vue | 254 ++++++++++++++++++++++++++ pages/town/components/projects.vue | 186 +++++++++++++++++++ pages/town/components/service.vue | 127 +++++++++++++ pages/town/index.vue | 148 +++++++++++++++ 9 files changed, 955 insertions(+), 22 deletions(-) create mode 100644 pages/town/components/culture.vue create mode 100644 pages/town/components/information.vue create mode 100644 pages/town/components/projects.vue create mode 100644 pages/town/components/service.vue create mode 100644 pages/town/index.vue diff --git a/api/inn.js b/api/inn.js index 9af877d..089c259 100644 --- a/api/inn.js +++ b/api/inn.js @@ -241,3 +241,21 @@ export function hotelNewsView(data) { export function getFarmerShop(id) { return request.get("/api/countyFamous/farmerShop/" + id) } + +export function getAncientTownIcon() { + return request.get("/ancientTown/icon") +} + +export function getAncientTownList(params) { + return request.get("/ancientTown", params) +} + +export function getAncientTownInfo(id) { + return request.get("/ancientTown/" + id) +} + +export function getAncientTownActive(params) { + return request.get("/ancientTown/activity", params) +} + + diff --git a/assets/css/v12-style.less b/assets/css/v12-style.less index 3191b86..a27ff1f 100644 --- a/assets/css/v12-style.less +++ b/assets/css/v12-style.less @@ -169,7 +169,9 @@ each(@colors, { display: grid; grid-template-columns: 1fr 1fr; } - +.v12-gap-10{ + grid-gap: 20rpx 20rpx; +} .v12-text-right{ text-align: right; diff --git a/pages.json b/pages.json index c5c74ee..b27049c 100644 --- a/pages.json +++ b/pages.json @@ -106,6 +106,13 @@ "navigationBarTitleText": "探索生活好去处" } }, + { + "path": "pages/town/index", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "探索生活好去处" + } + }, { "path": "pages/user/User/index", "style": { diff --git a/pages/cloud/haveFun.vue b/pages/cloud/haveFun.vue index dee9ee6..49f1d9a 100644 --- a/pages/cloud/haveFun.vue +++ b/pages/cloud/haveFun.vue @@ -26,20 +26,39 @@ - - - - {{ item.name }} - - + + + + + + + + {{ townConfig.label }} + + + + + + + {{ item.name }} + + + + @@ -71,7 +90,16 @@ - + + + {{ town.name }} + + 点击进入 + + + + + 推荐 @@ -114,7 +142,7 @@ \ No newline at end of file diff --git a/pages/town/components/information.vue b/pages/town/components/information.vue new file mode 100644 index 0000000..47e2551 --- /dev/null +++ b/pages/town/components/information.vue @@ -0,0 +1,254 @@ + + + + + diff --git a/pages/town/components/projects.vue b/pages/town/components/projects.vue new file mode 100644 index 0000000..b21985d --- /dev/null +++ b/pages/town/components/projects.vue @@ -0,0 +1,186 @@ + + + + + \ No newline at end of file diff --git a/pages/town/components/service.vue b/pages/town/components/service.vue new file mode 100644 index 0000000..2fb34de --- /dev/null +++ b/pages/town/components/service.vue @@ -0,0 +1,127 @@ + + + + + \ No newline at end of file diff --git a/pages/town/index.vue b/pages/town/index.vue new file mode 100644 index 0000000..21b14ba --- /dev/null +++ b/pages/town/index.vue @@ -0,0 +1,148 @@ + + + + + \ No newline at end of file