diff --git a/.env.development b/.env.development index 4ba6364..1f5da05 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ VUE_APP_NODE_ENV=development -VUE_APP_BASE_URL=https://test.tall.wiki -VUE_APP_API_URL=https://test.tall.wiki/gateway +VUE_APP_BASE_URL=https://www.tall.wiki +VUE_APP_API_URL=https://www.tall.wiki/gateway VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws -VUE_APP_PROJECT_PATH=https://test.tall.wiki/carBasicTall -VUE_APP_QUESTION_PATH=https://test.tall.wiki/carbasics +VUE_APP_PROJECT_PATH=https://www.tall.wiki/carBasicTall +VUE_APP_QUESTION_PATH=https://www.tall.wiki/carbasics VUE_APP_VERSION=v3.1.0 VUE_APP_PUBLIC_PATH=/carBasicCalendar/ diff --git a/.env.production b/.env.production index c289fb7..158f804 100644 --- a/.env.production +++ b/.env.production @@ -1,8 +1,8 @@ VUE_APP_NODE_ENV=production -VUE_APP_BASE_URL=https://test.tall.wiki -VUE_APP_API_URL=https://test.tall.wiki/gateway +VUE_APP_BASE_URL=https://www.tall.wiki +VUE_APP_API_URL=https://www.tall.wiki/gateway VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws -VUE_APP_PROJECT_PATH=https://test.tall.wiki/carBasicTall -VUE_APP_QUESTION_PATH=https://test.tall.wiki/carbasics +VUE_APP_PROJECT_PATH=https://www.tall.wiki/carBasicTall +VUE_APP_QUESTION_PATH=https://www.tall.wiki/carbasics VUE_APP_VERSION=v3.1.0 VUE_APP_PUBLIC_PATH=/carBasicCalendar/ diff --git a/src/apis/carbasics.js b/src/apis/carbasics.js index 4211551..2d1196a 100644 --- a/src/apis/carbasics.js +++ b/src/apis/carbasics.js @@ -5,6 +5,7 @@ export const filedeal = `${fileUrl}/filedeal`; const patient = `${carbasics}/patient`; // 患者相关接口 const firstAid = `${carbasics}/firstAid`; // 急救数据相关接口 const screening = `${carbasics}/screening`; // 高危人群筛查相关接口 +const questionnaire = `${carbasics}/questionnaire`; // 调查问卷相关接口 // 获取急救/出院数据列表 export const querySelf = { @@ -78,6 +79,15 @@ const install = (Vue, vm) => { vm.$u.api.getRecord = params => getRecord.index(params); // 获取急救/出院数据列表 vm.$u.api.querySelf = params => querySelf.index(params); + // 查询地区 + vm.$u.api.searchArea = params => vm.$u.post(`${questionnaire}/area`, params); + // 查询职位 + vm.$u.api.searchPosition = params => vm.$u.post(`${questionnaire}/queryPosition`, params); + // 查询当前地区的医院列表 + vm.$u.api.queryHospitalList = params => vm.$u.post(`${questionnaire}/queryHospitalList`, params); + // 医院名称回显 + vm.$u.api.hospitalNameEcho = params => vm.$u.post(`${questionnaire}/hospitalNameEcho`, params); + // 患者加入急救 vm.$u.api.joinAid = params => vm.$u.post(`${firstAid}/join`, params); // 患者退出急救 diff --git a/src/apis/tall.js b/src/apis/tall.js index bfef7c4..f3af0c0 100644 --- a/src/apis/tall.js +++ b/src/apis/tall.js @@ -41,6 +41,10 @@ const install = (Vue, vm) => { vm.$u.api.getProjects = (startTime, endTime) => vm.$u.post(`${tall}/project/query`, { startTime, endTime }); // 查询首页的按钮展示及跳转 vm.$u.api.getQueryButton = params => vm.$u.post(`${carbasics}/questionnaire/queryButton`, params); + // 查询首页轮播图 + vm.$u.api.getCarouselShow = params => vm.$u.post(`${carbasics}/carousel/show`, params); + // 查询首页轮播图 + vm.$u.api.getNoticeList = params => vm.$u.post(`${carbasics}/notice/query`, params); // 查询当前用户是否展示宣传页按钮 vm.$u.api.queryIsShow = params => vm.$u.post(`${carbasics}/questionnaire/queryIsShow`, params); // 查询日历是否有小红点 diff --git a/src/components/PrettyExchange/PrettyExchange.vue b/src/components/PrettyExchange/PrettyExchange.vue index e4e8199..019baa2 100644 --- a/src/components/PrettyExchange/PrettyExchange.vue +++ b/src/components/PrettyExchange/PrettyExchange.vue @@ -111,7 +111,7 @@ - v2.1.0 + v2.2.1 diff --git a/src/components/Projects/ProjectItem.vue b/src/components/Projects/ProjectItem.vue index 4746e1b..f496b78 100644 --- a/src/components/Projects/ProjectItem.vue +++ b/src/components/Projects/ProjectItem.vue @@ -39,22 +39,18 @@ - + - - {{ subItem.name }} - - + --> diff --git a/src/components/Service/Service.vue b/src/components/Service/Service.vue index 7892314..b2a78ee 100644 --- a/src/components/Service/Service.vue +++ b/src/components/Service/Service.vue @@ -9,6 +9,7 @@ + v3.0.0 diff --git a/src/components/VolumeProject/VolumeProject.vue b/src/components/VolumeProject/VolumeProject.vue new file mode 100644 index 0000000..95fe952 --- /dev/null +++ b/src/components/VolumeProject/VolumeProject.vue @@ -0,0 +1,120 @@ + + + + + {{ item.name }} + + + + + + + diff --git a/src/pages.json b/src/pages.json index 78a57de..ae4d021 100644 --- a/src/pages.json +++ b/src/pages.json @@ -85,6 +85,12 @@ "style": { "navigationBarTitleText": "暴风眼详情页" } + }, + { + "path": "pages/BL/BL-zhuce", + "style": { + "navigationBarTitleText": "注册" + } } ], "globalStyle": { diff --git a/src/pages/BL/BL-zhuce.vue b/src/pages/BL/BL-zhuce.vue new file mode 100644 index 0000000..9e6f299 --- /dev/null +++ b/src/pages/BL/BL-zhuce.vue @@ -0,0 +1,197 @@ + + + + + 山西省急性缺血性脑卒中数据汇总表 + 2021年7月-12月收治急性脑梗死患者相关数据 + + + + + + + + + + + + + + {{ item.name }} + + + + + + + {{ item.name }} + + + + + + + + + + + diff --git a/src/pages/BL/mixin.js b/src/pages/BL/mixin.js new file mode 100644 index 0000000..75ae2a3 --- /dev/null +++ b/src/pages/BL/mixin.js @@ -0,0 +1,113 @@ +const mixin = { + data() { + return { + codeValue: { + 'CITY-COUNTY': [], + 'HOS-NAME': null, + 'HOS-LEVEL': [], + 'HOS-GRADE': null, + 'HOS-KESHI': null, + 'HOS-ZHIWU': null, + 'HOS-MAN': null, + 'HOS-TEL': null, + }, + list: [], + }; + }, + methods: { + // 试题类型:type: 1:省市区三级下拉 11:医院等级 2:输入框模糊搜索 3:下拉菜单 5:输入框 + getList() { + this.list = [ + { + name: '', + testList: [ + { + secondName: '', + contentList: [ + { + name: '市/县', + code: 'CITY-COUNTY', + value: this.codeValue['CITY-COUNTY'], + type: 1, + itemList: [], + }, + { + name: '医院名称', + code: 'HOS-NAME', + value: this.codeValue['HOS-NAME'], + type: 2, + }, + { + name: '医院等级', + code: 'HOS-LEVEL', + value: this.codeValue['HOS-LEVEL'], + type: 11, + itemList: [ + { + value: '二级', + label: '二级', + children: [ + { + value: '甲等', + label: '甲等', + }, + { + value: '乙等', + label: '乙等', + }, + ], + }, + { + value: '三级', + label: '三级', + children: [ + { + value: '甲等', + label: '甲等', + }, + { + value: '乙等', + label: '乙等', + }, + ], + }, + ], + }, + { + name: '科室', + code: 'HOS-KESHI', + value: this.codeValue['HOS-KESHI'], + type: 3, + itemList: ['神经内科', '内科', '神经外科'], + }, + { + name: '职务', + code: 'HOS-ZHIWU', + value: this.codeValue['HOS-ZHIWU'], + type: 3, + // itemList: [], + itemList: ['科主任', '副主任', '卒中质控医生', '医生'], + }, + { + name: '联系人', + code: 'HOS-MAN', + value: this.codeValue['HOS-MAN'], + type: 5, + }, + { + name: '联系电话', + code: 'HOS-TEL', + value: this.codeValue['HOS-TEL'], + disable: true, + type: 5, + }, + ], + }, + ], + }, + ]; + }, + }, +}; + +export default mixin; diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 6548e55..e9b8ebc 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,19 +1,39 @@ - - - - - - - - - + + + + + + + + + + + + + + 新闻中心 + + + {{ item.title }} + + + + {{ item.publishName || '未知' }} + + + {{ $moment(+item.publishTime).format('YYYY-MM-DD') }} + + + + + - + @@ -30,8 +50,10 @@ export default { mixins: [UserAuthMixin], data() { return { + list: [], calendar: null, days: [], + newsList: [], }; }, @@ -51,15 +73,17 @@ export default { const that = this; setTimeout(function () { that.getProjects(); - that.handleFindPoint(); + // that.handleFindPoint(); }, 100); }, }, async created() { + this.getCarouselList(); + this.getNotice(); if (!this.token) return; this.getProjects(); - this.handleFindPoint(); + // this.handleFindPoint(); }, onReady() { @@ -68,6 +92,43 @@ export default { methods: { ...mapMutations('project', ['setProjects', 'setDotList']), + // 查看文章详情 + jumpDetail(item) { + if (item.articleUrl) { + uni.navigateTo({ url: `/pages/detail-webview/detail-webview?jumpUrl=${item.articleUrl}` }); + } + }, + async getNotice() { + try { + const param = { + pageNum: 1, + pageSize: 10, + }; + const res = await this.$u.api.getNoticeList(param); + console.log('res: ', res); + this.newsList = this.newsList.concat(res.list); + } catch (error) { + console.log('error: ', error); + } + }, + + // 获取轮播图 + async getCarouselList() { + try { + const param = { + showPosition: 1, + showType: 0, + }; + const res = await this.$u.api.getCarouselShow(param); + console.log('res: ', res); + for (let i = 0; i < res.length; i++) { + res[i].image = res[i].url; + } + this.list = [...res]; + } catch (error) { + console.log('error: ', error); + } + }, // 获取项目列表 getProjects(start = this.$moment().startOf('day').valueOf(), end = this.$moment().endOf('day').valueOf()) { @@ -81,6 +142,7 @@ export default { item.show = false; }); this.setProjects(data); + console.log('data: ', data); if (data && data[0]) { // this.openFirstProject(data[0]); } @@ -96,68 +158,69 @@ export default { * @param { string } endTime 结束时间 * @param { string } startTime 开始时间 */ - async handleFindPoint(start, end) { - try { - const startTime = start || this.$moment().startOf('month').valueOf(); - const endTime = end || this.$moment().endOf('month').valueOf(); - const data = await this.$u.api.findRedPoint(startTime, endTime); - this.setDotList(data); - } catch (error) { - console.log('error: ', error); - } - }, + // async handleFindPoint(start, end) { + // try { + // const startTime = start || this.$moment().startOf('month').valueOf(); + // const endTime = end || this.$moment().endOf('month').valueOf(); + // const data = await this.$u.api.findRedPoint(startTime, endTime); + // this.setDotList(data); + // } catch (error) { + // console.log('error: ', error); + // } + // }, // 点击了某个日期 - onDateChange(event) { - const day = this.$moment(event.fullDate); - const start = day.startOf('date').valueOf(); - const end = day.endOf('date').valueOf(); - this.getProjects(start, end); - }, + // onDateChange(event) { + // const day = this.$moment(event.fullDate); + // const start = day.startOf('date').valueOf(); + // const end = day.endOf('date').valueOf(); + // this.getProjects(start, end); + // }, // 监听触摸滑动 切换日历的模式 月/周 - onMove(event) { - const y = event.changedTouches[0].pageY; - if (y - prevY > 0) { - // 向下滑动 如果是周视图weekMode=true 就 变成 月视图weekMode=false - this.calendar.weekMode && (this.calendar.weekMode = false); - } else if (y - prevY < 0) { - // 向上滑动 如果是月视图weekMode=false 就变成 周视图weekMode=true - !this.calendar.weekMode && (this.calendar.weekMode = true); - } - prevY = y; - this.calendar.initDate(); - }, + // onMove(event) { + // console.log('event: ', event); + // const y = event.changedTouches[0].pageY; + // if (y - prevY > 0) { + // // 向下滑动 如果是周视图weekMode=true 就 变成 月视图weekMode=false + // this.calendar.weekMode && (this.calendar.weekMode = false); + // } else if (y - prevY < 0) { + // // 向上滑动 如果是月视图weekMode=false 就变成 周视图weekMode=true + // !this.calendar.weekMode && (this.calendar.weekMode = true); + // } + // prevY = y; + // this.calendar.initDate(); + // }, // 导入成功 - onUploadSuccess() { - this.$refs.uTips.show({ - title: '导入成功,即将打开新项目', - type: 'success', - duration: '3000', - }); - }, + // onUploadSuccess() { + // this.$refs.uTips.show({ + // title: '导入成功,即将打开新项目', + // type: 'success', + // duration: '3000', + // }); + // }, // 导入失败 - onUploadError(error) { - this.$refs.uTips.show({ - title: error || '导入失败', - type: 'error', - duration: '6000', - }); - }, + // onUploadError(error) { + // this.$refs.uTips.show({ + // title: error || '导入失败', + // type: 'error', + // duration: '6000', + // }); + // }, // 打开第一个项目 - openFirstProject(project) { - const { name, id, url } = project; - url && (uni.$t.domain = url); - this.$u.route('pages/project-webview/project-webview', { - u: this.userId, - p: id, - pname: name, - url: encodeURIComponent(url), - }); - }, + // openFirstProject(project) { + // const { name, id, url } = project; + // url && (uni.$t.domain = url); + // this.$u.route('pages/project-webview/project-webview', { + // u: this.userId, + // p: id, + // pname: name, + // url: encodeURIComponent(url), + // }); + // }, }, }; @@ -167,4 +230,23 @@ page { height: 100%; overflow: hidden; } +.news-title { + font-weight: bold; + font-size: 32rpx; + border-left: 4rpx solid #3dadff; + margin: 0 25rpx 25rpx 25rpx; + padding-left: 16rpx; +} +.news-content { + width: calc(100% - 50rpx); + font-size: 28rpx; + margin: 0 25rpx 25rpx 25rpx; + padding: 16rpx 0; + border-bottom: 1px solid #ccc; + display: inline-block; + text-align: justify; + text-justify: distribute-all-lines; // 这行必加,兼容ie浏览器 + // text-align-last: justify; + text-align-last: left; +} diff --git a/src/static/image.png b/src/static/image.png new file mode 100644 index 0000000..9165b05 Binary files /dev/null and b/src/static/image.png differ diff --git a/src/static/图1.png b/src/static/图1.png new file mode 100644 index 0000000..d362d50 Binary files /dev/null and b/src/static/图1.png differ diff --git a/src/static/图2.png b/src/static/图2.png new file mode 100644 index 0000000..9869a31 Binary files /dev/null and b/src/static/图2.png differ diff --git a/src/static/图3.png b/src/static/图3.png new file mode 100644 index 0000000..4aff0b9 Binary files /dev/null and b/src/static/图3.png differ
山西省急性缺血性脑卒中数据汇总表
2021年7月-12月收治急性脑梗死患者相关数据