diff --git a/README.md b/README.md
index 7fed184..df8f013 100644
--- a/README.md
+++ b/README.md
@@ -9,10 +9,19 @@ https://pic1.zhimg.com/50/v2-dcfbab1219ae4f7a7a6db168bb1580a2_720w.jpg?source=2c
images svn 地址
svn://39.106.86.127:28386/projects/takeda/proj_src/shop/frontend/web/wt
-(/images/)(\S*(?=["|']))
+(/images/)(\S\*(?=["|']))
{{imageUrl}}$2?t={{Timestamp}}
ui问题
1. 首页绑定医生弹窗需要重新切图
2. 播放语音条图片没切
+
+showModel颜色统一
+
+```ts
+wx.showModal({
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
+});
+```
diff --git a/project.private.config.json b/project.private.config.json
index fd3731e..66cbc18 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -9,7 +9,7 @@
"miniprogram": {
"list": [
{
- "name": "病例详情",
+ "name": "病历详情",
"pathName": "module1/pages/casesDetail/index",
"query": "id=25",
"launchMode": "default",
@@ -79,7 +79,7 @@
"scene": null
},
{
- "name": "录入病例结果",
+ "name": "录入病历结果",
"pathName": "module1/pages/entryCasesResult/index",
"query": "",
"launchMode": "default",
diff --git a/src/components/customRecord/index.ts b/src/components/customRecord/index.ts
index d1fdffa..f23f279 100644
--- a/src/components/customRecord/index.ts
+++ b/src/components/customRecord/index.ts
@@ -63,6 +63,13 @@ Component({
});
recorderManager.onStop((res) => {
this.handleHide();
+ if (res.duration < 1000) {
+ wx.showToast({
+ title: "录音时间太短",
+ icon: "none",
+ });
+ return;
+ }
this.uploadFile({
fileType: "audio",
tempFilePath: res.tempFilePath,
@@ -85,6 +92,8 @@ Component({
fail() {
// 用户拒绝了授权
wx.showModal({
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
title: "提示",
content: "需要获取录音权限,请点击确定进入设置页面进行授权。",
showCancel: false,
@@ -148,7 +157,7 @@ Component({
const suffix = this.GetExtensionFileName(data.data.Url);
const expandJson = {
fileId: "",
- name: `病例相关文件.${suffix}`,
+ name: `病历相关文件.${suffix}`,
size: (item.size / 1024).toFixed(2),
fileUrl: data.data.Url,
suffix,
diff --git a/src/components/popupDoctorDetail/index.scss b/src/components/popupDoctorDetail/index.scss
index 4f42d44..7dcf05c 100644
--- a/src/components/popupDoctorDetail/index.scss
+++ b/src/components/popupDoctorDetail/index.scss
@@ -99,7 +99,7 @@
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
border-radius: 4rpx 4rpx 4rpx 4rpx;
- border: 1rpx solid #bfeff4;
+ border: 1px solid #bfeff4;
}
}
.brief-introduction {
diff --git a/src/components/popupDoctorDetail/index.wxml b/src/components/popupDoctorDetail/index.wxml
index 2423b03..e21b41b 100644
--- a/src/components/popupDoctorDetail/index.wxml
+++ b/src/components/popupDoctorDetail/index.wxml
@@ -20,7 +20,7 @@
{{params.HospitalName}}
{{params.HospitalClassificationName}}{{params.HospitalLevelName}}
- {{params.CityName}}/{{params.CountyName}}
+ {{params.CityName}}{{params.CountyName?'/':''}}{{params.CountyName}}
diff --git a/src/components/uploadFile/index.ts b/src/components/uploadFile/index.ts
index 4a36dcd..5e8f7ad 100644
--- a/src/components/uploadFile/index.ts
+++ b/src/components/uploadFile/index.ts
@@ -75,10 +75,12 @@ Component({
this.triggerEvent("file", res as object);
});
},
- fail: () => {
- this.uploadFile(e.detail.file).then((res) => {
- this.triggerEvent("file", res as object);
- });
+ fail: (err) => {
+ if (err.errMsg.includes("开发者工具")) {
+ this.uploadFile(e.detail.file).then((res) => {
+ this.triggerEvent("file", res as object);
+ });
+ }
},
});
} else {
@@ -148,7 +150,7 @@ Component({
const suffix = this.GetExtensionFileName(data.data.Url);
const expandJson = {
fileId: "",
- name: `病例相关文件.${suffix}`,
+ name: `病历相关文件.${suffix}`,
size: (item.size / 1024).toFixed(2),
fileUrl: data.data.Url,
suffix,
diff --git a/src/custom-tab-bar/index.scss b/src/custom-tab-bar/index.scss
index c569fe8..5a260a9 100644
--- a/src/custom-tab-bar/index.scss
+++ b/src/custom-tab-bar/index.scss
@@ -8,7 +8,7 @@
flex-shrink: 0;
position: relative;
width: 94rpx;
- height: 94rpx;
+ height: 64rpx;
.add {
position: absolute;
top: -42rpx;
@@ -69,6 +69,7 @@
}
}
.tab-item {
+ padding-top: 10rpx;
flex: 1;
display: flex;
flex-direction: column;
diff --git a/src/custom-tab-bar/index.ts b/src/custom-tab-bar/index.ts
index 8bf8250..6eaf327 100644
--- a/src/custom-tab-bar/index.ts
+++ b/src/custom-tab-bar/index.ts
@@ -1,4 +1,4 @@
-const _app = getApp()
+const _app = getApp();
// pages/story/a.ts
Component({
@@ -15,38 +15,39 @@ Component({
active: 0,
tabbar: [
{
- path: '/pages/home/index',
- name: '首页',
- icon: 'tab1.png',
- iconActive: 'tab-active1.png',
+ path: "/pages/home/index",
+ name: "首页",
+ icon: "tab1.png",
+ iconActive: "tab-active1.png",
activeIndex: 1,
},
{
- path: '/pages/cases/index',
- name: '病历',
- icon: 'tab2.png',
- iconActive: 'tab-active2.png',
+ path: "/pages/cases/index",
+ name: "病历",
+ icon: "tab2.png",
+ iconActive: "tab-active2.png",
activeIndex: 2,
},
{
custom: true,
- path: '/module1/pages/entryCases/index',
+ path: "/module1/pages/entryCases/index",
},
{
- path: '/pages/chatRoomList/index',
- name: '聊天室',
- icon: 'tab3.png',
- iconActive: 'tab-active3.png',
+ path: "/pages/chatRoomList/index",
+ name: "聊天室",
+ icon: "tab3.png",
+ iconActive: "tab-active3.png",
activeIndex: 3,
},
{
- path: '/pages/my/index',
- name: '我的',
- icon: 'tab4.png',
- iconActive: 'tab-active3.png',
+ path: "/pages/my/index",
+ name: "我的",
+ icon: "tab4.png",
+ iconActive: "tab-active4.png",
activeIndex: 4,
},
],
+ userInfo: {},
},
/**
@@ -54,17 +55,17 @@ Component({
*/
methods: {
handleTab(e: any) {
- const { index } = e.currentTarget.dataset
- const tab = this.data.tabbar[index]
+ const { index } = e.currentTarget.dataset;
+ const tab = this.data.tabbar[index];
if (tab.custom) {
wx.navigateTo({
url: tab.path,
- })
+ });
} else {
wx.switchTab({
url: tab.path,
- })
+ });
}
},
},
-})
+});
diff --git a/src/custom-tab-bar/index.wxml b/src/custom-tab-bar/index.wxml
index 8b5b17f..856e348 100644
--- a/src/custom-tab-bar/index.wxml
+++ b/src/custom-tab-bar/index.wxml
@@ -1,6 +1,6 @@
-
+
-
+
{{item.name}}
diff --git a/src/echart/components/homeLevel1/index.scss b/src/echart/components/homeLevel1/index.scss
index 5f85013..ba0b200 100644
--- a/src/echart/components/homeLevel1/index.scss
+++ b/src/echart/components/homeLevel1/index.scss
@@ -67,7 +67,7 @@
box-sizing: border-box;
background: linear-gradient(180deg, #dcf5f7 0%, #ffffff 100%);
border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
.bg {
padding-top: 40rpx;
@@ -77,7 +77,7 @@
.b-container {
position: relative;
z-index: 2;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
display: flex;
@@ -117,7 +117,7 @@
color: #fff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
}
}
@@ -316,7 +316,7 @@
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
diff --git a/src/echart/components/homeLevel2/index.scss b/src/echart/components/homeLevel2/index.scss
index 299a929..29fbb6d 100644
--- a/src/echart/components/homeLevel2/index.scss
+++ b/src/echart/components/homeLevel2/index.scss
@@ -86,7 +86,7 @@
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
@@ -106,7 +106,7 @@
box-sizing: border-box;
background: linear-gradient(180deg, #dcf5f7 0%, #ffffff 100%);
border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
.bg {
padding-top: 40rpx;
@@ -116,7 +116,7 @@
.b-container {
position: relative;
z-index: 2;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
display: flex;
@@ -156,7 +156,7 @@
color: #fff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
}
}
@@ -376,7 +376,7 @@
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
diff --git a/src/echart/components/homeLevel3/index.scss b/src/echart/components/homeLevel3/index.scss
index 4847941..e60a5af 100644
--- a/src/echart/components/homeLevel3/index.scss
+++ b/src/echart/components/homeLevel3/index.scss
@@ -86,7 +86,7 @@
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
@@ -106,7 +106,7 @@
box-sizing: border-box;
background: linear-gradient(180deg, #dcf5f7 0%, #ffffff 100%);
border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
.bg {
padding-top: 40rpx;
@@ -116,7 +116,7 @@
.b-container {
position: relative;
z-index: 2;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
display: flex;
@@ -156,7 +156,7 @@
color: #fff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
}
}
diff --git a/src/echart/components/homeLevel4/index.scss b/src/echart/components/homeLevel4/index.scss
index fd32747..4039b04 100644
--- a/src/echart/components/homeLevel4/index.scss
+++ b/src/echart/components/homeLevel4/index.scss
@@ -86,7 +86,7 @@
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
@@ -106,7 +106,7 @@
box-sizing: border-box;
background: linear-gradient(180deg, #dcf5f7 0%, #ffffff 100%);
border-radius: 24rpx 24rpx 24rpx 24rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
.bg {
padding-top: 40rpx;
@@ -116,7 +116,7 @@
.b-container {
position: relative;
z-index: 2;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
display: flex;
@@ -156,7 +156,7 @@
color: #fff;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
}
}
@@ -185,7 +185,7 @@
color: rgba(133, 133, 133, 1);
background: #ffffff;
border-radius: 98rpx 98rpx 98rpx 98rpx;
- border: 1rpx solid #f6f6f6;
+ border: 1px solid #f6f6f6;
}
}
.more {
@@ -339,7 +339,7 @@
color: rgba(133, 133, 133, 1);
background: #ffffff;
border-radius: 98rpx 98rpx 98rpx 98rpx;
- border: 1rpx solid #f6f6f6;
+ border: 1px solid #f6f6f6;
}
}
}
diff --git a/src/images/icon-del-dark.png b/src/images/icon-del-dark.png
new file mode 100644
index 0000000..61ef23d
Binary files /dev/null and b/src/images/icon-del-dark.png differ
diff --git a/src/module1/pages/auditDoctorDetail/index.scss b/src/module1/pages/auditDoctorDetail/index.scss
index 7bfd36f..c3ca989 100644
--- a/src/module1/pages/auditDoctorDetail/index.scss
+++ b/src/module1/pages/auditDoctorDetail/index.scss
@@ -85,7 +85,7 @@ page {
font-size: 32rpx;
color: rgba(1, 180, 197, 1);
border-radius: 96rpx 96rpx 96rpx 96rpx;
- border: 1rpx solid #01b4c5;
+ border: 1px solid #01b4c5;
}
.submit {
width: 330rpx;
diff --git a/src/module1/pages/cHostipal/index.scss b/src/module1/pages/cHostipal/index.scss
index 8184517..090599b 100644
--- a/src/module1/pages/cHostipal/index.scss
+++ b/src/module1/pages/cHostipal/index.scss
@@ -113,7 +113,7 @@ page {
font-size: 32rpx;
color: rgba(1, 180, 197, 1);
border-radius: 96rpx 96rpx 96rpx 96rpx;
- border: 1rpx solid #01b4c5;
+ border: 1px solid #01b4c5;
}
.submit {
width: 330rpx;
diff --git a/src/module1/pages/casesDetail/index.scss b/src/module1/pages/casesDetail/index.scss
index 7e27e84..da722ed 100644
--- a/src/module1/pages/casesDetail/index.scss
+++ b/src/module1/pages/casesDetail/index.scss
@@ -113,7 +113,7 @@ page {
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid #bfeff4;
+ border: 1px solid #bfeff4;
border-radius: 4rpx;
}
}
@@ -204,7 +204,7 @@ page {
line-height: 32rpx;
background: #ffffff;
border-radius: 4rpx 4rpx 4rpx 4rpx;
- border: 1rpx solid #bfeff4;
+ border: 1px solid #bfeff4;
}
}
.edit-tag {
@@ -252,6 +252,9 @@ page {
display: flex;
gap: 28rpx;
align-items: center;
+ &:not(:last-of-type) {
+ margin-bottom: 24rpx;
+ }
.audio-bar {
flex: 1;
border-radius: 104rpx;
@@ -333,10 +336,54 @@ page {
width: 136rpx;
height: 44rpx;
}
- .gather {
+ .option {
+ position: relative;
padding: 12rpx 32rpx;
width: 48rpx;
height: 48rpx;
+ .o-icon {
+ width: 48rpx;
+ height: 48rpx;
+ }
+ .option-popup {
+ display: none;
+ position: absolute;
+ top: -5rpx;
+ left: 30%;
+ transform: translate(-50%, -100%);
+ border-radius: 8rpx;
+ background-color: #fff;
+ box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.1);
+ .op-row {
+ padding: 24rpx;
+ display: flex;
+ align-items: center;
+ white-space: nowrap;
+ gap: 20rpx;
+ font-size: 28rpx;
+ color: #141515;
+ .icon {
+ width: 36rpx;
+ height: 36rpx;
+ }
+ }
+ &::after {
+ position: absolute;
+ bottom: -12rpx;
+ left: 45%;
+ content: "";
+ width: 0;
+ height: 0;
+ border-style: solid;
+ border-width: 27rpx 27rpx 0 27rpx;
+ border-color: #fff transparent transparent transparent;
+ }
+ }
+ &:hover {
+ .option-popup {
+ display: block;
+ }
+ }
}
}
.li-row {
@@ -397,7 +444,7 @@ page {
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid #bfeff4;
+ border: 1px solid #bfeff4;
border-radius: 4rpx;
}
}
@@ -501,6 +548,9 @@ page {
display: flex;
gap: 28rpx;
align-items: center;
+ &:not(:last-of-type) {
+ margin-bottom: 24rpx;
+ }
.audio-bar {
flex: 1;
border-radius: 104rpx;
@@ -670,7 +720,7 @@ page {
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
diff --git a/src/module1/pages/casesDetail/index.ts b/src/module1/pages/casesDetail/index.ts
index dbaaead..dc43c9f 100644
--- a/src/module1/pages/casesDetail/index.ts
+++ b/src/module1/pages/casesDetail/index.ts
@@ -2,10 +2,10 @@ const app = getApp();
Page({
data: {
- show1: false, // 驳回病例
- show2: false, // 优质病例
+ show1: false, // 驳回病历
+ show2: false, // 优质病历
show3: false, // 归档
- show4: false, // 取消优质病例
+ show4: false, // 取消优质病历
show5: false, // 取消归档
show6: false, // 创建聊天室
show7: false, // 更改标签
@@ -374,6 +374,8 @@ Page({
const { detail, id } = this.data;
const isOpen = detail.isOpen === "1";
wx.showModal({
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
title: `确认${isOpen ? "取消公开" : "公开"}?`,
success: (res) => {
if (res.confirm) {
@@ -420,6 +422,8 @@ Page({
handleDel() {
const { id } = this.data;
wx.showModal({
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
title: `确认删除?`,
success: (res) => {
if (res.confirm) {
@@ -450,6 +454,8 @@ Page({
const { detail } = this.data;
const item = detail.feedbackList[index];
wx.showModal({
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
title: `确认删除该反馈?`,
success: (res) => {
if (res.confirm) {
diff --git a/src/module1/pages/casesDetail/index.wxml b/src/module1/pages/casesDetail/index.wxml
index 5d48f82..dedfa91 100644
--- a/src/module1/pages/casesDetail/index.wxml
+++ b/src/module1/pages/casesDetail/index.wxml
@@ -3,7 +3,7 @@
@@ -80,7 +82,7 @@
-
+
{{item.name}}
@@ -110,13 +112,15 @@
src="{{imageUrl}}self.png?t={{Timestamp}}"
mode="scaleToFill"
>
-
+
+
+
+
提交时间
@@ -142,13 +146,15 @@
{{item.createDoctorInfo.hospitalClassificationName}}{{item.createDoctorInfo.hospitalLevelName}}
- {{item.createDoctorInfo.cityName}}/{{item.createDoctorInfo.countyName}}
+
+ {{item.createDoctorInfo.cityName}}{{item.createDoctorInfo.countyName?'/':''}}{{item.createDoctorInfo.countyName}}
+
@@ -176,7 +182,7 @@
-
+
{{cItem.name}}
@@ -221,7 +227,7 @@
{{dealDoctorInfo.hospitalName}}
{{dealDoctorInfo.hospitalClassificationName}}{{dealDoctorInfo.hospitalLevelName}}
- {{dealDoctorInfo.cityName}}/{{dealDoctorInfo.countyName}}
+ {{dealDoctorInfo.cityName}}{{dealDoctorInfo.countyName?'/':''}}{{dealDoctorInfo.countyName}}
- {{detail.isOpen==='1'?'公开':'取消公开'}}
+ {{detail.isOpen==='1'?'取消公开':'公开'}}
-
提交反馈
diff --git a/src/module1/pages/casesFeedback/index.scss b/src/module1/pages/casesFeedback/index.scss
index b3fb850..23cb7ea 100644
--- a/src/module1/pages/casesFeedback/index.scss
+++ b/src/module1/pages/casesFeedback/index.scss
@@ -37,6 +37,7 @@ page {
.image-files {
margin-top: 32rpx;
display: flex;
+ flex-wrap: wrap;
gap: 14rpx;
.upload-file {
width: 144rpx;
@@ -298,7 +299,7 @@ page {
font-size: 32rpx;
color: rgba(1, 180, 197, 1);
border-radius: 96rpx 96rpx 96rpx 96rpx;
- border: 1rpx solid #01b4c5;
+ border: 1px solid #01b4c5;
}
.disabled {
opacity: 0.3;
diff --git a/src/module1/pages/casesFeedback/index.ts b/src/module1/pages/casesFeedback/index.ts
index 04e0a48..e84ebdc 100644
--- a/src/module1/pages/casesFeedback/index.ts
+++ b/src/module1/pages/casesFeedback/index.ts
@@ -23,6 +23,18 @@ Page({
DoctorLevel: res.DoctorLevel,
});
});
+ this.getAuth();
+ });
+ },
+ getAuth() {
+ wx.ajax({
+ method: "GET",
+ url: "?r=takeda/case/get-case-detail-op-auth",
+ data: { caseId: this.data.caseId },
+ }).then((res) => {
+ this.setData({
+ auth: res,
+ });
});
},
handlePhoto(e) {
diff --git a/src/module1/pages/casesFeedback/index.wxml b/src/module1/pages/casesFeedback/index.wxml
index c836a40..04698d2 100644
--- a/src/module1/pages/casesFeedback/index.wxml
+++ b/src/module1/pages/casesFeedback/index.wxml
@@ -8,9 +8,9 @@
placeholder-style="color:rgba(205, 205, 205, 1);"
placeholder="请输入您的病历备注"
auto-height
- maxlength="{{3000}}"
+ maxlength="{{1000}}"
>
- {{description.length}}/3000
+ {{info.length}}/1000
@@ -104,10 +104,10 @@
diff --git a/src/module1/pages/entryCases/index.json b/src/module1/pages/entryCases/index.json
index ba30c17..bdaebb7 100644
--- a/src/module1/pages/entryCases/index.json
+++ b/src/module1/pages/entryCases/index.json
@@ -6,6 +6,7 @@
"customRecord": "/components/customRecord/index",
"customAudioBar": "/components/customAudioBar/index",
"van-popup": "@vant/weapp/popup/index",
- "van-nav-bar": "@vant/weapp/nav-bar/index"
+ "van-nav-bar": "@vant/weapp/nav-bar/index",
+ "van-toast": "@vant/weapp/toast/index"
}
}
diff --git a/src/module1/pages/entryCases/index.scss b/src/module1/pages/entryCases/index.scss
index b572b74..1b5f4b1 100644
--- a/src/module1/pages/entryCases/index.scss
+++ b/src/module1/pages/entryCases/index.scss
@@ -37,6 +37,7 @@ page {
.image-files {
margin-top: 32rpx;
display: flex;
+ flex-wrap: wrap;
gap: 14rpx;
.upload-file {
width: 144rpx;
@@ -298,7 +299,7 @@ page {
font-size: 32rpx;
color: rgba(1, 180, 197, 1);
border-radius: 96rpx 96rpx 96rpx 96rpx;
- border: 1rpx solid #01b4c5;
+ border: 1px solid #01b4c5;
}
.disabled{
opacity: 0.3;
diff --git a/src/module1/pages/entryCases/index.ts b/src/module1/pages/entryCases/index.ts
index ce734e6..93612e2 100644
--- a/src/module1/pages/entryCases/index.ts
+++ b/src/module1/pages/entryCases/index.ts
@@ -1,3 +1,4 @@
+import Toast from "@vant/weapp/toast/toast";
const app = getApp();
Page({
@@ -20,9 +21,12 @@ Page({
DoctorLevel: 1,
caseId: "",
+
+ edit: true,
},
onLoad(options) {
app.waitLogin().then(() => {
+ this.getVisit();
this.getDoctorDict();
this.getInviteDoctorList();
app.getUserInfo(this, (res) => {
@@ -38,6 +42,24 @@ Page({
}
});
},
+ getVisit() {
+ wx.ajax({
+ method: "GET",
+ url: "?r=takeda/case/is-visit",
+ data: {},
+ }).then((res) => {
+ this.setData({
+ edit: res === 2,
+ });
+ });
+ },
+ postVisit() {
+ wx.ajax({
+ method: "POST",
+ url: "?r=takeda/case/visit",
+ data: {},
+ });
+ },
getDetail() {
wx.ajax({
method: "GET",
@@ -51,7 +73,7 @@ Page({
description: res.description,
audios: res.caseAudios,
files: res.caseFiles,
- deptId: res.caseDeptId[0] || '',
+ deptId: res.caseDeptId[0] || "",
labelIds: res.caseLabels.map((item) => item.labelId),
});
});
@@ -80,7 +102,13 @@ Page({
},
handlePhoto(e) {
const detail = e.detail;
- const images = this.data.images;
+ const { images, edit } = this.data;
+ if (edit) {
+ this.postVisit();
+ this.setData({
+ edit: false,
+ });
+ }
this.setData({
images: [
...images,
@@ -112,9 +140,18 @@ Page({
});
},
handleDelAudio(e) {
- const { index } = e.currentTarget.dataset;
- this.setData({
- audios: this.data.audios.filter((_, i) => i !== Number(index)),
+ wx.showModal({
+ title: "确认删除?",
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
+ success: (res) => {
+ if (res.confirm) {
+ const { index } = e.currentTarget.dataset;
+ this.setData({
+ audios: this.data.audios.filter((_, i) => i !== Number(index)),
+ });
+ }
+ },
});
},
handleFile(e) {
@@ -134,9 +171,18 @@ Page({
});
},
handleDelFile(e) {
- const { index } = e.currentTarget.dataset;
- this.setData({
- files: this.data.files.filter((_, i) => i !== Number(index)),
+ wx.showModal({
+ title: "确认删除?",
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
+ success: (res) => {
+ if (res.confirm) {
+ const { index } = e.currentTarget.dataset;
+ this.setData({
+ files: this.data.files.filter((_, i) => i !== Number(index)),
+ });
+ }
+ },
});
},
handlePreviewFile(e) {
@@ -225,7 +271,14 @@ Page({
});
},
handleCache() {
- const { caseId } = this.data;
+ const { caseId, images, description, audios, files, deptId, labelIds } = this.data;
+ if (!images.length && !description && !audios.length && !files.length && !deptId && !labelIds.length) {
+ wx.showToast({
+ title: "请完善信息",
+ icon: "none",
+ });
+ return;
+ }
const params = this.formatParams();
const url = caseId ? "?r=takeda/case/save-case" : "?r=takeda/case/create-case";
wx.ajax({
@@ -245,7 +298,7 @@ Page({
const images = this.data.images;
if (images.length === 0) {
wx.showToast({
- title: "请上传病例图片",
+ title: "请上传病历图片",
icon: "none",
});
return;
@@ -260,13 +313,18 @@ Page({
},
});
},
+ handleNoInvite() {
+ Toast("您还没有合作医生,无法邀请医生讨论病历,可暂时存为草稿");
+ },
handleSave() {},
handleSubmit() {},
handleBack() {
wx.showModal({
+ confirmColor: "#00B4C5",
+ cancelColor: "#141515",
title: "您的病历还未保存,是否要存为草稿?",
confirmText: "存为草稿",
- cancelColor: "退出",
+ cancelText: "退出",
success: (res) => {
if (res.confirm) {
this.handleCache();
diff --git a/src/module1/pages/entryCases/index.wxml b/src/module1/pages/entryCases/index.wxml
index 578a2da..e948bb3 100644
--- a/src/module1/pages/entryCases/index.wxml
+++ b/src/module1/pages/entryCases/index.wxml
@@ -1,5 +1,5 @@
-
+
@@ -19,7 +19,7 @@
重复图片
-->
-
+
@@ -128,7 +128,7 @@
@@ -138,19 +138,21 @@
直接提交我的反馈信息
提交并邀约质控医生
- 病例公开(选择公开后,本科室医生均查看病例)
+ 病历公开(选择公开后,本科室医生均查看病历)
+
+
diff --git a/src/module1/pages/entryCasesResult/index.json b/src/module1/pages/entryCasesResult/index.json
index 0c05032..9a998df 100644
--- a/src/module1/pages/entryCasesResult/index.json
+++ b/src/module1/pages/entryCasesResult/index.json
@@ -1,5 +1,5 @@
{
- "navigationBarTitleText": "录入新病例",
+ "navigationBarTitleText": "录入新病历",
"navigationStyle": "default",
"usingComponents": {}
}
diff --git a/src/module1/pages/entryCasesResult/index.ts b/src/module1/pages/entryCasesResult/index.ts
index 2591f70..bb79539 100644
--- a/src/module1/pages/entryCasesResult/index.ts
+++ b/src/module1/pages/entryCasesResult/index.ts
@@ -13,9 +13,9 @@ Page({
isFollow: options.isf,
});
},
- handleReSubmit() {
- wx.navigateTo({
- url: "/module1/pages/entryCases/index",
+ handleBackCase() {
+ wx.reLaunch({
+ url: "/pages/cases/index",
});
},
handleDetail() {
diff --git a/src/module1/pages/entryCasesResult/index.wxml b/src/module1/pages/entryCasesResult/index.wxml
index 9604a1b..207052d 100644
--- a/src/module1/pages/entryCasesResult/index.wxml
+++ b/src/module1/pages/entryCasesResult/index.wxml
@@ -2,7 +2,7 @@
病历提交后医生将收到消息提醒
查看我提交的病历
- 继续录入新的病历
+ 返回病历列表
- 关注公众号接收病例反馈消息
+ 关注公众号接收病历反馈消息
diff --git a/src/module1/pages/invite/index.scss b/src/module1/pages/invite/index.scss
index ef80965..a12fdc6 100644
--- a/src/module1/pages/invite/index.scss
+++ b/src/module1/pages/invite/index.scss
@@ -101,7 +101,7 @@
text-align: center;
line-height: 88rpx;
border-radius: 96rpx 96rpx 96rpx 96rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
}
.share {
flex: 1;
diff --git a/src/module1/pages/login/index.ts b/src/module1/pages/login/index.ts
index 0b12339..1144f26 100644
--- a/src/module1/pages/login/index.ts
+++ b/src/module1/pages/login/index.ts
@@ -1,5 +1,5 @@
const app = getApp();
-let timer = 0;
+let timer: number | null = 0;
Page({
data: {
@@ -85,8 +85,8 @@ Page({
mobile,
code,
},
- }).then((_res) => {
- this.submitCallback();
+ }).then((res) => {
+ this.submitCallback(res);
});
},
handleWxSubmit(e: any) {
@@ -107,15 +107,18 @@ Page({
iv: encodeURIComponent(iv),
encryptedData: encodeURIComponent(encryptedData),
},
- }).then((_res) => {
- this.submitCallback();
+ }).then((res) => {
+ this.submitCallback(res);
});
}
},
- submitCallback() {
+ submitCallback(res) {
app.globalData.isLogin = 1;
+ app.globalData.doctorId = res.doctorId;
app.waitLogin().then(() => {
- wx.reLaunch({ url: "/module1/pages/setInfo/index" });
+ wx.reLaunch({
+ url: "/pages/home/index",
+ });
});
},
handleProtool() {
diff --git a/src/module1/pages/org3/index.scss b/src/module1/pages/org3/index.scss
index 4dfaaa4..cab3652 100644
--- a/src/module1/pages/org3/index.scss
+++ b/src/module1/pages/org3/index.scss
@@ -14,7 +14,7 @@ page {
align-items: center;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
.item {
flex: 1;
text-align: center;
@@ -69,7 +69,7 @@ page {
line-height: 44rpx;
color: rgba(0, 180, 197, 1);
border-radius: 72rpx 72rpx 72rpx 72rpx;
- border: 1rpx solid #00b4c5;
+ border: 1px solid #00b4c5;
}
}
}
@@ -176,7 +176,7 @@ page {
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
diff --git a/src/module1/pages/org4/index.scss b/src/module1/pages/org4/index.scss
index 6bfa6f6..17531f4 100644
--- a/src/module1/pages/org4/index.scss
+++ b/src/module1/pages/org4/index.scss
@@ -34,7 +34,7 @@ page {
align-items: center;
background: linear-gradient(90deg, #00b4c5 0%, #54e2b4 100%);
border-radius: 16rpx 16rpx 16rpx 16rpx;
- border: 1rpx solid #ffffff;
+ border: 1px solid #ffffff;
.item {
flex: 1;
text-align: center;
@@ -88,7 +88,7 @@ page {
line-height: 44rpx;
color: rgba(0, 180, 197, 1);
border-radius: 72rpx 72rpx 72rpx 72rpx;
- border: 1rpx solid #00b4c5;
+ border: 1px solid #00b4c5;
}
}
}
@@ -195,7 +195,7 @@ page {
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
diff --git a/src/module1/pages/sHostipal/index.ts b/src/module1/pages/sHostipal/index.ts
index 9944b6d..f5d7a4a 100644
--- a/src/module1/pages/sHostipal/index.ts
+++ b/src/module1/pages/sHostipal/index.ts
@@ -23,8 +23,13 @@ Page({
list: [],
area: [],
+
+ reg: true,
},
- onLoad() {
+ onLoad(options) {
+ this.setData({
+ reg: options.reg === "1",
+ });
app.waitLogin(true).then(() => {
this.getHostipalDict();
this.getList();
diff --git a/src/module1/pages/sHostipal/index.wxml b/src/module1/pages/sHostipal/index.wxml
index baa56cd..0939b69 100644
--- a/src/module1/pages/sHostipal/index.wxml
+++ b/src/module1/pages/sHostipal/index.wxml
@@ -17,7 +17,7 @@
/>
-
+
没找到您的医院?
这里录入
@@ -34,7 +34,7 @@
{{item.CityName}}{{item.CountyName}}{{item.Address}}
-
+
没有找到您搜索的医院哦!
提交新医院
diff --git a/src/module1/pages/setCaseDoctor/index.scss b/src/module1/pages/setCaseDoctor/index.scss
index 87ef51c..e16b442 100644
--- a/src/module1/pages/setCaseDoctor/index.scss
+++ b/src/module1/pages/setCaseDoctor/index.scss
@@ -12,26 +12,37 @@ page {
color: rgba(0, 180, 197, 1);
}
}
- .search {
+ .search-wrap {
margin-top: 32rpx;
- padding: 20rpx 30rpx;
display: flex;
align-items: center;
- gap: 20rpx;
- border-radius: 122rpx;
- background-color: rgba(246, 246, 246, 1);
- .icon {
- width: 32rpx;
- height: 32rpx;
- }
- .input {
+ gap: 22rpx;
+ .search {
flex: 1;
- text-align: center;
- font-size: 28rpx;
- color: #000;
+ padding: 20rpx 30rpx;
+ display: flex;
+ align-items: center;
+ gap: 20rpx;
+ border-radius: 122rpx;
+ background-color: rgba(246, 246, 246, 1);
+ .icon {
+ width: 32rpx;
+ height: 32rpx;
+ }
+ .input {
+ flex: 1;
+ text-align: center;
+ font-size: 28rpx;
+ color: #000;
+ }
+ .place-input {
+ color: rgba(205, 205, 205, 1);
+ }
}
- .place-input {
- color: rgba(205, 205, 205, 1);
+ .reset {
+ padding: 10rpx;
+ font-size: 28rpx;
+ color: #00b4c5;
}
}
.options {
@@ -62,8 +73,9 @@ page {
}
}
.list {
- padding: 26rpx 32rpx;
+ padding: 26rpx 32rpx 300rpx;
.list-item {
+ margin-bottom: 24rpx;
display: flex;
align-items: center;
.radio {
@@ -148,7 +160,7 @@ page {
font-size: 22rpx;
color: rgba(0, 180, 197, 1);
line-height: 32rpx;
- border: 1rpx solid rgba(191, 239, 244, 1);
+ border: 1px solid rgba(191, 239, 244, 1);
}
}
}
@@ -176,7 +188,7 @@ page {
font-size: 32rpx;
color: rgba(1, 180, 197, 1);
border-radius: 96rpx 96rpx 96rpx 96rpx;
- border: 1rpx solid #01b4c5;
+ border: 1px solid #01b4c5;
}
.submit {
flex: 1;
diff --git a/src/module1/pages/setCaseDoctor/index.ts b/src/module1/pages/setCaseDoctor/index.ts
index 93c5a3a..2eb8558 100644
--- a/src/module1/pages/setCaseDoctor/index.ts
+++ b/src/module1/pages/setCaseDoctor/index.ts
@@ -108,6 +108,22 @@ Page({
});
this.getList();
},
+ handleReset() {
+ this.setData({
+ search: "",
+ hospitalId: "",
+ HospitalName: "",
+ provinceId: "",
+ cityId: "",
+ countyId: "",
+ ProvinceName: "",
+ CityName: "",
+ CountyName: "",
+ specialtyId: "",
+ SpecialtyName: "",
+ });
+ this.handleSearch();
+ },
getList() {
const { search, hospitalId, provinceId, cityId, countyId, specialtyId } = this.data;
wx.ajax({
@@ -255,7 +271,7 @@ Page({
dealDoctorId: DoctorId,
},
}).then((res) => {
- wx.navigateTo({
+ wx.reLaunch({
url: `/module1/pages/entryCasesResult/index?isf=${res.isSubscribe}&wxi=${encodeURIComponent(res.wxImg)}&cid=${res.caseId || caseId}`,
});
});
diff --git a/src/module1/pages/setCaseDoctor/index.wxml b/src/module1/pages/setCaseDoctor/index.wxml
index 43fa483..4e0cc77 100644
--- a/src/module1/pages/setCaseDoctor/index.wxml
+++ b/src/module1/pages/setCaseDoctor/index.wxml
@@ -1,17 +1,20 @@