diff --git a/project.private.config.json b/project.private.config.json index c11fcf9..e50f12a 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -16,13 +16,6 @@ "scene": null }, { - "name": "module1/pages/setChatDoctor/index", - "pathName": "module1/pages/setChatDoctor/index", - "query": "cid=39&create=1", - "launchMode": "default", - "scene": null - }, - { "name": "病历详情", "pathName": "module1/pages/casesDetail/index", "query": "id=25", diff --git a/src/components/customAudioBar/index.ts b/src/components/customAudioBar/index.ts index b53b352..bb0fe4c 100644 --- a/src/components/customAudioBar/index.ts +++ b/src/components/customAudioBar/index.ts @@ -31,6 +31,13 @@ Component({ innerAudioContext: wx.createInnerAudioContext(), }); }, + detached() { + if (this.data.innerAudioContext) { + this.data.innerAudioContext?.stop(); + this.data.innerAudioContext.destroy() + + } + }, }, /** diff --git a/src/components/popupDoctorDetail/index.scss b/src/components/popupDoctorDetail/index.scss index 7dcf05c..349b31f 100644 --- a/src/components/popupDoctorDetail/index.scss +++ b/src/components/popupDoctorDetail/index.scss @@ -1,7 +1,6 @@ .doctor-detail { padding: 48rpx 32rpx; width: 662rpx; - height: 874rpx; background: #ffffff; box-sizing: border-box; border-radius: 16rpx 16rpx 16rpx 16rpx; @@ -54,6 +53,7 @@ display: flex; border-bottom: 1px solid rgba(224, 224, 224, 0.5); line-height: 32rpx; + align-items: baseline; .label { padding-right: 1em; flex-shrink: 0; diff --git a/src/images/defaultAvatar.png b/src/images/defaultAvatar.png new file mode 100644 index 0000000..43535fc Binary files /dev/null and b/src/images/defaultAvatar.png differ diff --git a/src/module1/pages/casesDetail/index.scss b/src/module1/pages/casesDetail/index.scss index da722ed..daf00bc 100644 --- a/src/module1/pages/casesDetail/index.scss +++ b/src/module1/pages/casesDetail/index.scss @@ -124,6 +124,7 @@ page { gap: 24rpx; align-items: center; .avatar { + flex-shrink: 0; width: 112rpx; height: 112rpx; } @@ -239,12 +240,15 @@ page { } .r-content { margin-top: 24rpx; - padding: 32rpx; + border: 32rpx solid #fff; font-size: 28rpx; color: rgba(133, 133, 133, 1); line-height: 50rpx; border-radius: 16rpx; background-color: #fff; + white-space: pre-line; + max-height: 400rpx; + overflow-y: auto; } } .audio-list { @@ -453,8 +457,8 @@ page { padding: 16rpx 32rpx; display: flex; gap: 24rpx; - align-items: center; .avatar { + flex-shrink: 0; width: 112rpx; height: 112rpx; } @@ -498,6 +502,25 @@ page { border-radius: 4rpx; background-color: rgba(250, 229, 206, 1); } + .specialty{ + margin-top: 14rpx; + display: flex; + gap: 12rpx; + flex-wrap: wrap; + .wf-label { + flex-shrink: 0; + width: 48rpx; + height: 32rpx; + } + .wf-tag { + flex-shrink: 0; + padding: 0 8rpx; + font-size: 22rpx; + color: rgba(0, 180, 197, 1); + line-height: 32rpx; + border: 1px solid rgba(191, 239, 244, 1); + } + } } } } @@ -535,12 +558,15 @@ page { } .r-content { margin-top: 24rpx; - padding: 32rpx; + border: 32rpx solid #fff; font-size: 28rpx; color: rgba(133, 133, 133, 1); line-height: 50rpx; border-radius: 16rpx; background-color: #fff; + white-space: pre-line; + max-height: 400rpx; + overflow-y: auto; } } .audio-list { @@ -760,11 +786,11 @@ page { .name { font-size: 24rpx; color: rgba(153, 153, 153, 1); + white-space: nowrap; } .tip { - position: absolute; - top: -25rpx; - transform: translate(-50%, -100%); + position: fixed; + transform: translate(-50%, -110%); left: 50%; border-radius: 12rpx; width: 686rpx; @@ -788,18 +814,18 @@ page { color: rgba(255, 125, 0, 1); text-align: left; } - &::after { - position: absolute; - bottom: -12rpx; - left: 50%; - transform: translateX(-50%); - content: ""; - width: 0; - height: 0; - border-style: solid; - border-width: 27rpx 27rpx 0 27rpx; - border-color: rgba(255, 247, 232, 1) transparent transparent transparent; - } + // &::after { + // position: absolute; + // bottom: -12rpx; + // left: 50%; + // transform: translateX(-50%); + // content: ""; + // width: 0; + // height: 0; + // border-style: solid; + // border-width: 27rpx 27rpx 0 27rpx; + // border-color: rgba(255, 247, 232, 1) transparent transparent transparent; + // } } .more { position: absolute; diff --git a/src/module1/pages/casesDetail/index.ts b/src/module1/pages/casesDetail/index.ts index 4e1804c..eb19a16 100644 --- a/src/module1/pages/casesDetail/index.ts +++ b/src/module1/pages/casesDetail/index.ts @@ -45,6 +45,12 @@ Page({ fold: false, }, onLoad(options) { + if (options.feedback === "1") { + wx.showToast({ + icon: "none", + title: "病历反馈成功!", + }); + } this.setData({ id: options.id, beforeClose1: (e: any) => { @@ -103,6 +109,8 @@ Page({ detail: res, dealDoctorInfo: res.dealCaseInfo.dealDoctorInfo, dealInfo: res.dealCaseInfo.dealInfo, + deptId: res.caseDeptId[0], + labelIds: res.caseLabels.map((item) => item.labelId), }); this.readFeedback(); }); @@ -198,6 +206,13 @@ Page({ }, handleShowLable() { + const { deptId, deptList } = this.data; + if (deptId) { + const params = deptList.find((item) => item.value === deptId); + this.setData({ + labelList: params.options, + }); + } this.setData({ show7: true, }); diff --git a/src/module1/pages/casesDetail/index.wxml b/src/module1/pages/casesDetail/index.wxml index 6045096..841e924 100644 --- a/src/module1/pages/casesDetail/index.wxml +++ b/src/module1/pages/casesDetail/index.wxml @@ -105,7 +105,7 @@ - + - 提交时间 + 反馈时间 {{item.createTime}} {{item.fold ? '展开' : '收起'}} @@ -142,13 +142,24 @@ {{item.createDoctorInfo.doctorTitleName || item.createDoctorInfo.doctorOtherTitle}} - {{item.hospitalName}} + {{item.createDoctorInfo.hospitalName}} {{item.createDoctorInfo.hospitalClassificationName}}{{item.createDoctorInfo.hospitalLevelName}} {{item.createDoctorInfo.cityName}}{{item.createDoctorInfo.countyName?'/':''}}{{item.createDoctorInfo.countyName}} + + + + {{spec.SpecialtyName}} + + @@ -227,7 +238,9 @@ {{dealDoctorInfo.hospitalName}} {{dealDoctorInfo.hospitalClassificationName}}{{dealDoctorInfo.hospitalLevelName}} - {{dealDoctorInfo.cityName}}{{dealDoctorInfo.countyName?'/':''}}{{dealDoctorInfo.countyName}} + + {{dealDoctorInfo.cityName}}{{dealDoctorInfo.countyName?'/':''}}{{dealDoctorInfo.countyName}} + @@ -244,7 +257,11 @@ 更多操作 - + 创建聊天室 @@ -305,7 +322,11 @@ 驳回原因 - + 创建聊天室 diff --git a/src/module1/pages/casesFeedback/index.ts b/src/module1/pages/casesFeedback/index.ts index e84ebdc..7c73c1c 100644 --- a/src/module1/pages/casesFeedback/index.ts +++ b/src/module1/pages/casesFeedback/index.ts @@ -12,6 +12,8 @@ Page({ files: [] as any, DoctorLevel: 1, + + auth: {} as any, }, onLoad(options) { this.setData({ @@ -71,9 +73,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) { @@ -93,9 +104,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) { @@ -162,7 +182,7 @@ Page({ }); }, handleSave() { - const { images, audios, files, info } = this.data; + const { images, audios, files, info, auth } = this.data; if (images.length === 0 && audios.length === 0 && files.length === 0 && !info) { wx.showToast({ title: "请填写或上传反馈信息", @@ -170,9 +190,13 @@ Page({ }); return; } - this.setData({ - show1: true, - }); + if (!auth.canFeedbackInvite && !auth.canFeedbackOpen) { + this.handleSubmit(); + } else { + this.setData({ + show1: true, + }); + } }, handleBack() { wx.navigateBack(); @@ -190,7 +214,9 @@ Page({ isOpen, }, }).then(() => { - wx.navigateBack(); + wx.redirectTo({ + url: `/module1/pages/casesDetail/index?id=${caseId}&feedback=1`, + }); }); }, handleInvite() { diff --git a/src/module1/pages/casesFeedback/index.wxml b/src/module1/pages/casesFeedback/index.wxml index 04698d2..445b1f0 100644 --- a/src/module1/pages/casesFeedback/index.wxml +++ b/src/module1/pages/casesFeedback/index.wxml @@ -34,7 +34,7 @@ 上传图片建议 - (0/9) + ({{images.length}}/9) @@ -80,12 +80,6 @@ data-index="{{index}}" src="{{imageUrl}}icon-eye.png?t={{Timestamp}}" > - @@ -104,8 +98,8 @@ 确认提交您的反馈信息 直接提交我的反馈信息 - 提交并邀约质控医生 - + 提交并邀约质控医生 + 病历公开(选择公开后,本科室医生均查看病历) diff --git a/src/module1/pages/chatRoom/index.ts b/src/module1/pages/chatRoom/index.ts index 24a3a7b..05178b0 100644 --- a/src/module1/pages/chatRoom/index.ts +++ b/src/module1/pages/chatRoom/index.ts @@ -131,9 +131,12 @@ Page({ }, handleView(index = -1) { - this.setData({ - scrollIntoView: index > -1 ? `view${index}` : `place`, - }); + const time = setTimeout(() => { + this.setData({ + scrollIntoView: index > -1 ? `view${index}` : `place`, + }); + clearTimeout(time); + }, 300); }, getMessageList() { if (this.data.isLoad || this.data.isFinish) return; @@ -289,6 +292,7 @@ Page({ msg: message.content, to: chatGroupInfo.ChatGroupId, chatType: "groupChat", + deliverOnlineOnly: "true", ext: { ...message, }, @@ -381,9 +385,7 @@ Page({ fold: !this.data.fold, }); if (!this.data.fold) { - setTimeout(() => { - this.handleView(); - }, 300); + this.handleView(); } }, handleAudio(e) { diff --git a/src/module1/pages/chatRoomInfo/index.ts b/src/module1/pages/chatRoomInfo/index.ts index ffb3ea2..c1c4bf1 100644 --- a/src/module1/pages/chatRoomInfo/index.ts +++ b/src/module1/pages/chatRoomInfo/index.ts @@ -23,7 +23,7 @@ Page({ }, handleDoctor() { wx.navigateTo({ - url: `/module1/pages/setChatDoctor/index?id=${this.data.id}&cid=${this.data.caseId}`, + url: `/module1/pages/setChatDoctor/index?rid=${this.data.id}&cid=${this.data.caseId}`, }); }, }); diff --git a/src/module1/pages/entryCases/index.ts b/src/module1/pages/entryCases/index.ts index 93612e2..a1cadbe 100644 --- a/src/module1/pages/entryCases/index.ts +++ b/src/module1/pages/entryCases/index.ts @@ -295,7 +295,7 @@ Page({ }, handleInvite() { const params = this.formatParams(); - const images = this.data.images; + const { deptId, labelIds, images } = this.data; if (images.length === 0) { wx.showToast({ title: "请上传病历图片", @@ -303,6 +303,13 @@ Page({ }); return; } + if (deptId && !labelIds.length) { + wx.showToast({ + title: "请选择标签", + icon: "none", + }); + return; + } wx.navigateTo({ url: `/module1/pages/setCaseDoctor/index`, success: (res) => { diff --git a/src/module1/pages/entryCases/index.wxml b/src/module1/pages/entryCases/index.wxml index e948bb3..b006bca 100644 --- a/src/module1/pages/entryCases/index.wxml +++ b/src/module1/pages/entryCases/index.wxml @@ -6,7 +6,7 @@ 上传病历图片 - (0/9) + ({{images.length}}/9) diff --git a/src/module1/pages/entryCasesResult/index.json b/src/module1/pages/entryCasesResult/index.json index 9a998df..a2cf610 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.scss b/src/module1/pages/entryCasesResult/index.scss index 0a99a95..2a6a8b5 100644 --- a/src/module1/pages/entryCasesResult/index.scss +++ b/src/module1/pages/entryCasesResult/index.scss @@ -6,6 +6,12 @@ width: 200rpx; height: 200rpx; } + .title{ + font-size: 48rpx; + text-align: center; + font-weight: bold; + color: #141515; + } .desc { margin-top: 16rpx; font-size: 32rpx; diff --git a/src/module1/pages/entryCasesResult/index.ts b/src/module1/pages/entryCasesResult/index.ts index bb79539..3c55e8d 100644 --- a/src/module1/pages/entryCasesResult/index.ts +++ b/src/module1/pages/entryCasesResult/index.ts @@ -9,9 +9,13 @@ Page({ onLoad(options) { this.setData({ caseId: options.cid, - codeUrl: options.wxi, isFollow: options.isf, }); + if (options.wxi) { + this.setData({ + codeUrl: decodeURIComponent(options.wxi), + }); + } }, handleBackCase() { wx.reLaunch({ diff --git a/src/module1/pages/entryCasesResult/index.wxml b/src/module1/pages/entryCasesResult/index.wxml index 207052d..a31a867 100644 --- a/src/module1/pages/entryCasesResult/index.wxml +++ b/src/module1/pages/entryCasesResult/index.wxml @@ -1,7 +1,8 @@ + 提交成功 病历提交后医生将收到消息提醒 - 查看我提交的病历 + 查看病历详情 返回病历列表 关注公众号接收病历反馈消息 diff --git a/src/module1/pages/login/index.ts b/src/module1/pages/login/index.ts index 1144f26..71620a9 100644 --- a/src/module1/pages/login/index.ts +++ b/src/module1/pages/login/index.ts @@ -58,10 +58,7 @@ Page({ handleSubmit() { const { mobile, code, protool } = this.data; if (!protool) { - wx.showToast({ - title: "请先勾选协议", - icon: "none", - }); + this.handleNavProtool() return; } if (!mobile) { diff --git a/src/module1/pages/login/index.wxml b/src/module1/pages/login/index.wxml index 746eb42..89000e6 100644 --- a/src/module1/pages/login/index.wxml +++ b/src/module1/pages/login/index.wxml @@ -11,7 +11,7 @@ model:value="{{mobile}}" class="input" placeholder-class="place-input" - type="tel" + type="number" placeholder="请输入手机号" /> diff --git a/src/module1/pages/setCaseDoctor/index.ts b/src/module1/pages/setCaseDoctor/index.ts index c21df52..0488116 100644 --- a/src/module1/pages/setCaseDoctor/index.ts +++ b/src/module1/pages/setCaseDoctor/index.ts @@ -262,7 +262,7 @@ Page({ }, }).then(() => { wx.redirectTo({ - url: `/module1/pages/casesDetail/index?id=${caseId}`, + url: `/module1/pages/casesDetail/index?id=${caseId}&feedback=1`, }); }); return; @@ -272,7 +272,7 @@ Page({ wx.ajax({ method: "POST", url: "?r=takeda/case/invite-doctor", data: { caseId, dealDoctorId: DoctorId } }).then( (res) => { wx.navigateTo({ - url: `/module1/pages/entryCasesResult/index?isf=${res.isSubscribe}&wxi=${encodeURIComponent(res.wxImg)}&cid=${res.caseId}`, + url: `/module1/pages/entryCasesResult/index?isf=${res.isSubscribe}&wxi=${encodeURIComponent(res.wxImg)}&cid=${res.caseId || caseId}`, }); }, ); diff --git a/src/module1/pages/setChatDoctor/index.ts b/src/module1/pages/setChatDoctor/index.ts index fa871b1..afe6e24 100644 --- a/src/module1/pages/setChatDoctor/index.ts +++ b/src/module1/pages/setChatDoctor/index.ts @@ -260,6 +260,7 @@ Page({ caseId, roomId, inviteDoctorId: DoctorId, + doctorId: DoctorId, }, }).then((res) => { wx.reLaunch({ diff --git a/src/module1/pages/setInfo/index.scss b/src/module1/pages/setInfo/index.scss index f15e79c..00940e1 100644 --- a/src/module1/pages/setInfo/index.scss +++ b/src/module1/pages/setInfo/index.scss @@ -1,22 +1,21 @@ +.reject { + width: 100%; + box-sizing: border-box; + padding: 20rpx 32rpx; + background-color: #ffedea; + font-size: 28rpx; + color: #ed4f39; + display: flex; + align-items: center; + gap: 16rpx; + .icon { + flex-shrink: 0; + width: 32rpx; + height: 32rpx; + } +} .page { overflow: hidden; - .reject { - position: fixed; - top: 0; - width: 100%; - box-sizing: border-box; - padding: 20rpx 32rpx; - background-color: #ffedea; - font-size: 28rpx; - color: #ed4f39; - display: flex; - align-items: center; - gap: 16rpx; - .icon { - width: 32rpx; - height: 32rpx; - } - } .container { margin-top: 244rpx; padding: 32rpx 32rpx 250rpx; @@ -40,7 +39,7 @@ align-items: top; border-bottom: 1px solid rgba(224, 224, 224, 0.5); line-height: 1; - &.row-center{ + &.row-center { align-items: center; } .label { diff --git a/src/module1/pages/setInfo/index.ts b/src/module1/pages/setInfo/index.ts index ddd6d91..cb66d4f 100644 --- a/src/module1/pages/setInfo/index.ts +++ b/src/module1/pages/setInfo/index.ts @@ -79,6 +79,12 @@ Page({ this.setData({ applyHostipalInfo: Array.isArray(res) ? null : res, }); + if (res.AuditStatus === 1) { + this.setData({ + HospitalName: res.Name, + HospitalId: res.HospitalId, + }); + } }); }, getDoctorDict() { @@ -182,6 +188,7 @@ Page({ if (!PositionImg) { wx.showToast({ title: "请上传任职证书", + icon: "none", }); return; } diff --git a/src/module1/pages/setInfo/index.wxml b/src/module1/pages/setInfo/index.wxml index 22d2abc..b66250a 100644 --- a/src/module1/pages/setInfo/index.wxml +++ b/src/module1/pages/setInfo/index.wxml @@ -1,11 +1,11 @@ + + + 审核不通过原因:{{RejectReason}} + - - - 审核不通过原因:{{RejectReason}} - {{inviteName}}医生为您的邀约医生 您没有邀约医生,可能会影响您的审核 @@ -78,15 +78,15 @@ - + - + - + diff --git a/src/pages/cases/index.scss b/src/pages/cases/index.scss index 9de3143..f755ad9 100644 --- a/src/pages/cases/index.scss +++ b/src/pages/cases/index.scss @@ -56,7 +56,7 @@ page { } } .form { - margin: 32rpx 32rpx; + margin: 32rpx 32rpx 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18rpx 28rpx; @@ -287,10 +287,11 @@ page { font-size: 28rpx; color: rgba(20, 21, 21, 1); .line { + margin: 0 6rpx; color: rgba(205, 205, 205, 1); } .new { - margin-right: 12rpx; + margin-left: 12rpx; display: inline-block; padding: 0 8rpx; font-size: 24rpx; @@ -299,6 +300,7 @@ page { border-radius: 0rpx 8rpx 0rpx 8rpx; } .reject { + margin-left: 12rpx; padding: 0 8rpx; display: inline-block; font-size: 24rpx; @@ -450,7 +452,8 @@ page { color: rgba(20, 21, 21, 1); line-height: 44rpx; .tag { - vertical-align: 4rpx; + margin-left: 12rpx; + vertical-align: 2rpx; display: inline-block; padding: 0 8rpx; font-size: 24rpx; diff --git a/src/pages/cases/index.ts b/src/pages/cases/index.ts index 1077b94..339f8ad 100644 --- a/src/pages/cases/index.ts +++ b/src/pages/cases/index.ts @@ -40,6 +40,7 @@ Page({ caseStatusName: "全部", hospitalName: "全部", deptName: "全部", + labelName: "全部", provinceName: "", cityName: "", countyName: "", @@ -60,7 +61,7 @@ Page({ isHighQuality: "", isOpen: "", needDeal: "", - orderType: "", + orderType: "feedbackTime", myCaseCount: 0, @@ -338,15 +339,31 @@ Page({ }, handleLabel(e) { const { params } = e.currentTarget.dataset; - const labelId = this.data.labelId; + const { labelId, labelList } = this.data; const newLabelId = labelId.includes(params.value) ? labelId.filter((item) => item !== params.value) : [...labelId, params.value]; + let labelName = ""; + labelList.forEach((item) => { + if (newLabelId.includes(item.value)) { + labelName = `${labelName}${labelName ? "," : ""}${item.label}`; + } + }); + this.setData({ labelId: newLabelId, + labelName: labelName || "全部", }); }, handleTagSubmit() { + const { deptId, labelId } = this.data; + if (deptId.length && !labelId.length) { + wx.showToast({ + title: "请选择标签", + icon: "none", + }); + return; + } this.setData({ show3: false, }); diff --git a/src/pages/cases/index.wxml b/src/pages/cases/index.wxml index b4feb52..1f33a82 100644 --- a/src/pages/cases/index.wxml +++ b/src/pages/cases/index.wxml @@ -100,27 +100,34 @@ 标签 - {{deptName}} + {{labelName}} 地区 - {{cityName + countyName || '地区'}} + {{cityName + countyName || '全部'}} - - + + 驳回 - + 公开 @@ -148,7 +161,7 @@ - 保存 + 确定 diff --git a/src/pages/chatRoomList/index.scss b/src/pages/chatRoomList/index.scss index 6daf030..5f66d95 100644 --- a/src/pages/chatRoomList/index.scss +++ b/src/pages/chatRoomList/index.scss @@ -341,7 +341,8 @@ page { color: rgba(20, 21, 21, 1); line-height: 44rpx; .tag { - vertical-align: 4rpx; + margin-left: 12rpx; + vertical-align: 2rpx; display: inline-block; padding: 0 8rpx; font-size: 24rpx; diff --git a/src/pages/chatRoomList/index.ts b/src/pages/chatRoomList/index.ts index d45c44c..f5d6124 100644 --- a/src/pages/chatRoomList/index.ts +++ b/src/pages/chatRoomList/index.ts @@ -39,6 +39,7 @@ Page({ caseStatusName: "全部", hospitalName: "全部", deptName: "全部", + labelName: "全部", provinceName: "", cityName: "", countyName: "", @@ -360,12 +361,20 @@ Page({ }, handleLabel(e) { const { params } = e.currentTarget.dataset; - const labelId = this.data.labelId; + const { labelId, labelList } = this.data; const newLabelId = labelId.includes(params.value) ? labelId.filter((item) => item !== params.value) : [...labelId, params.value]; + let labelName = ""; + labelList.forEach((item) => { + if (newLabelId.includes(item.value)) { + labelName = `${labelName}${labelName ? "," : ""}${item.label}`; + } + }); + this.setData({ labelId: newLabelId, + labelName: labelName || "全部", }); }, handleTagSubmit() { diff --git a/src/pages/chatRoomList/index.wxml b/src/pages/chatRoomList/index.wxml index 962f0ab..f8c51d6 100644 --- a/src/pages/chatRoomList/index.wxml +++ b/src/pages/chatRoomList/index.wxml @@ -93,7 +93,7 @@ 标签 - {{deptName}} + {{labelName}} @@ -107,7 +107,7 @@ 地区 - {{cityName + countyName || '地区'}} + {{cityName + countyName || '全部'}}