diff --git a/api/index/index.js b/api/index/index.js new file mode 100644 index 0000000..5260702 --- /dev/null +++ b/api/index/index.js @@ -0,0 +1,51 @@ +// 首页配置相关API +import { request } from '@/utils/request' + +/** + * 获取首页配置 + * @returns {Promise} 返回首页配置数据 + */ +export function getHomeConfig() { + return request({ + url: '/app/homeCfg', + method: 'GET' + }) +} + +/** + * 更新首页配置 + * @param {Object} data - 首页配置数据 + * @returns {Promise} 返回更新结果 + */ +export function updateHomeConfig(data) { + return request({ + url: '/app/homeCfg', + method: 'PUT', + data + }) +} + +/** + * 创建首页配置 + * @param {Object} data - 首页配置数据 + * @returns {Promise} 返回创建结果 + */ +export function createHomeConfig(data) { + return request({ + url: '/app/homeCfg', + method: 'POST', + data + }) +} + +/** + * 删除首页配置 + * @param {string} id - 配置ID + * @returns {Promise} 返回删除结果 + */ +export function deleteHomeConfig(id) { + return request({ + url: `/app/homeCfg/${id}`, + method: 'DELETE' + }) +} diff --git a/enum/navigationData.json b/enum/navigationData.json new file mode 100644 index 0000000..e04ed2e --- /dev/null +++ b/enum/navigationData.json @@ -0,0 +1,97 @@ +{ + "pageConfig": { + "background": { + "img": "https://api.ccttiot.com/smartmeter/img/static/uz3vQk44WkGnJPVjKrw1" + }, + "announcement": { + "icon": "https://api.ccttiot.com/smartmeter/img/static/uIm0UpcFxyLwYpwCIVcg", + "text": "为保障广大善信的出行安全,营造有序、庄严的朝堂之上,不得懈怠神明" + }, + "topIcons": { + "leftIcon": { + "hidden": true, + "img": "https://api.ccttiot.com/smartmeter/img/static/uEC23p8oHigfvliOKvkL" + }, + "rightIcon": { + "img": "https://api.ccttiot.com/smartmeter/img/static/u0xTi5R31GxYwd7WxRhy" + }, + "bottomIcon": { + "img": "https://api.ccttiot.com/image-1753692152175.png" + } + } + }, + "navigationItems": [ + { + "id": "walkInto", + "img": "https://api.ccttiot.com/smartmeter/img/static/uET6o6pB2IDzfJb4BCv3", + "title": "走进平山", + "subtitle": "WALK INTO PINGSHAN", + "page": "walkInto" + }, + { + "id": "institutionalStructure", + "img": "https://api.ccttiot.com/smartmeter/img/static/uOOpKw4AVVYPpvpcqmrZ", + "title": "寺庙建制", + "subtitle": "TEMPLE INSTITUTIONAL STRUCTURE", + "page": "institutionalStructure" + }, + { + "id": "abbot", + "img": "https://api.ccttiot.com/smartmeter/img/static/utmlRwjQwf73DjXntneL", + "title": "主持法师", + "subtitle": "ABBOT MASTER", + "page": "abbot" + }, + { + "id": "ancient", + "img": "https://api.ccttiot.com/smartmeter/img/static/upCsFSxrBjwmeX6f3ykL", + "title": "古刹巡礼", + "subtitle": "ATOUR OF ANCIENT TEMPLE", + "page": "ancient" + }, + { + "id": "monk", + "img": "https://api.ccttiot.com/image-1753687164375.png", + "title": "寺庙高僧", + "subtitle": "VENERABLE MONK IN THE TEMPLE", + "page": "monk" + }, + { + "id": "activity", + "img": "https://api.ccttiot.com/image-1753691910959.png", + "title": "活动预告", + "subtitle": "ACTIVITY NOTICE", + "page": "activity" + }, + { + "id": "news", + "img": "https://api.ccttiot.com/image-1753691974607.png", + "title": "新闻动态", + "subtitle": "DYNAMICS", + "page": "news" + }, + { + "id": "future", + "img": "https://api.ccttiot.com/image-1753854286566.png", + "title": "未来规划", + "subtitle": "FUTURE PLANNING", + "page": "future" + } + ], + "bottomSection": { + "openingTime": { + "title": "寺庙开放时间", + "time": "08:00~18:00", + "decorationImg": "https://api.ccttiot.com/smartmeter/img/static/ugNHTwXFgOT8JGofruez" + }, + "prayerSection": { + "backgroundImg": "https://api.ccttiot.com/smartmeter/img/static/ucPuJT9zaH3VSoWzGwSE", + "title": "日行一善", + "prayerButton": { + "icon": "https://api.ccttiot.com/smartmeter/img/static/u9muibj6c472a87zd6tp", + "title": "在线祈福", + "subtitle": "ONLINE PRAYER" + } + } + } +} \ No newline at end of file diff --git a/pages/nearbystores/index.vue b/pages/nearbystores/index.vue index 0d09011..2c970ca 100644 --- a/pages/nearbystores/index.vue +++ b/pages/nearbystores/index.vue @@ -1,129 +1,68 @@