From a92fdd735b893d6ec449e4d3884168ebc5a19fb8 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 14 May 2025 11:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- package.json | 2 +- src/api/base/mobile.js | 4 +- src/api/healthCenter/index.js | 147 ++++++ src/views/base/mobile/bannerList/index.vue | 21 +- src/views/base/mobile/complaint/index.vue | 7 +- .../healthCenter/chronicDisease/index.vue | 234 +++++++++ .../healthCenter/nutritionScience/index.vue | 465 ++++++++++++++++++ src/views/index.vue | 2 +- src/views/login.vue | 2 +- src/views/login1.vue | 6 +- src/views/register.vue | 2 +- src/views/register1.vue | 2 +- src/views/system/notice/index.vue | 11 +- vue.config.js | 2 +- 17 files changed, 887 insertions(+), 26 deletions(-) create mode 100644 src/api/healthCenter/index.js create mode 100644 src/views/healthCenter/chronicDisease/index.vue create mode 100644 src/views/healthCenter/nutritionScience/index.vue diff --git a/.env.development b/.env.development index 40bd065d..1f501daa 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 国网安徽经研院绿智食堂 +VUE_APP_TITLE = 绿智食堂 # 开发环境配置 ENV = 'development' diff --git a/.env.production b/.env.production index ef2a9a77..49e9f2cd 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 国网安徽经研院绿智食堂 +VUE_APP_TITLE = 绿智食堂 # 生产环境配置 ENV = 'production' diff --git a/.env.staging b/.env.staging index 4738afe1..134b77cf 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 国网安徽经研院绿智食堂 +VUE_APP_TITLE = 绿智食堂 NODE_ENV = production diff --git a/package.json b/package.json index eef04c86..a48ffbad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bonus", "version": "3.6.4", - "description": "国网安徽经研院绿智食堂", + "description": "绿智食堂", "author": "博诺思", "license": "MIT", "scripts": { diff --git a/src/api/base/mobile.js b/src/api/base/mobile.js index d118ffcc..65db8617 100644 --- a/src/api/base/mobile.js +++ b/src/api/base/mobile.js @@ -31,11 +31,11 @@ import request from '@/utils/request' export function getCarouselListApi(data) { return request({ url: '/smart-canteen/android/baseSetting/getCarouselImage', - method: 'post', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data + params: data }) } diff --git a/src/api/healthCenter/index.js b/src/api/healthCenter/index.js new file mode 100644 index 00000000..bfbec0f9 --- /dev/null +++ b/src/api/healthCenter/index.js @@ -0,0 +1,147 @@ +import request from '@/utils/request' + +// 分页查询 营养科普-列表 +export function getHealthSciencePageApi(data) { + return request({ + url: '/smart-canteen/health_popular_science/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params:data + }) +} + +// 营养科普-新增 +export function addHealthScienceApi(data) { + return request({ + url: '/smart-canteen/health_popular_science', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 营养科普-编辑 +export function editHealthScienceApi(data) { + return request({ + url: '/smart-canteen/health_popular_science/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 营养科普-删除 +export function delHealthScienceApi(Id) { + return request({ + url: '/smart-canteen/health_popular_science/del/'+Id, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + } + }) +} + + +// 获取慢性病字典-下拉 +export function dictHealthChronicApi(data) { + return request({ + url: '/smart-canteen/health/chronic/dict-health-chronic', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 分页查询 慢性病 列表 +export function getChronicPageApi(data) { + return request({ + url: '/smart-canteen/health_chronic/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params:data + }) +} +// 慢性病-新增 +export function addChronicApi(data) { + return request({ + url: '/smart-canteen/health_chronic', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 慢性病-更新 +export function editChronicApi(data) { + return request({ + url: '/smart-canteen/health_chronic/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 慢性病-更新 +export function delChronicApi(Id) { + return request({ + url: '/smart-canteen/health_chronic/del/'+Id, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + } + }) +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/mobile/bannerList/index.vue b/src/views/base/mobile/bannerList/index.vue index cf27e2af..0d8de765 100644 --- a/src/views/base/mobile/bannerList/index.vue +++ b/src/views/base/mobile/bannerList/index.vue @@ -24,6 +24,11 @@ + + + @@ -210,13 +215,13 @@ export default { getList() { this.loading = true; let param = { - // "pageNum": this.queryParams.pageNum, - // "pageSize": this.queryParams.pageSize, - "imageName": this.queryParams.imageName + "pageNum": this.queryParams.pageNum, + "pageSize": this.queryParams.pageSize, + "imageName": this.queryParams.imageName } getCarouselListApi(param).then(response => { - this.tableListData = response.data; - // this.total = Number(response.total); + this.tableListData = response.rows; + this.total = Number(response.total); this.loading = false; }); }, @@ -279,12 +284,12 @@ export default { id:row.id, imageName:row.imageName, externalUrl:row.externalUrl, - imageUrl:row.imageUrl, + imageUrl:row.imageUrl, } if(row.isEnabled==0){ - param.isEnabled=2 + param.isEnabled='2' }else{ - param.isEnabled=0 + param.isEnabled='0' } console.log(param) updateCarouselApi(param).then(response => { diff --git a/src/views/base/mobile/complaint/index.vue b/src/views/base/mobile/complaint/index.vue index ff08d227..9b81e41f 100644 --- a/src/views/base/mobile/complaint/index.vue +++ b/src/views/base/mobile/complaint/index.vue @@ -54,7 +54,12 @@ - + + + + diff --git a/src/views/healthCenter/chronicDisease/index.vue b/src/views/healthCenter/chronicDisease/index.vue new file mode 100644 index 00000000..e7cc7b6f --- /dev/null +++ b/src/views/healthCenter/chronicDisease/index.vue @@ -0,0 +1,234 @@ + + + + diff --git a/src/views/healthCenter/nutritionScience/index.vue b/src/views/healthCenter/nutritionScience/index.vue new file mode 100644 index 00000000..e9f2dafb --- /dev/null +++ b/src/views/healthCenter/nutritionScience/index.vue @@ -0,0 +1,465 @@ + + + + diff --git a/src/views/index.vue b/src/views/index.vue index d4596178..3a8269d1 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -2,7 +2,7 @@
-

国网安徽经研院绿智食堂

+

绿智食堂

当前版本: v{{ version }}

diff --git a/src/views/login.vue b/src/views/login.vue index 4013ceff..15baca00 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,7 +1,7 @@