diff --git a/src/module1/pages/chatRoom/index.ts b/src/module1/pages/chatRoom/index.ts
index 3e4a046..021f2fd 100644
--- a/src/module1/pages/chatRoom/index.ts
+++ b/src/module1/pages/chatRoom/index.ts
@@ -47,7 +47,7 @@ Page({
sendMessage: "",
videoUrl: "",
- protocol:`
罕心守护平台向用户提供了“聊天室”功能,基于此服务,我们在此特别声明:
罕心守护平台非常重视您的个人信息保护及平台信息的隐私性,您同意在聊天室功能使用时遵守以下规则:
1.严禁在聊天室内讨论或分享任何患者的个人身份信息,包括但不限于姓名、性别等。群内发送的任何素材内容,必须去除所有可能识别患者身份的敏感信息;
2.不以截图、录音或以任何形式将内容传播;
3.讨论内容仅限于专业交流,不得用于任何商业目的。
4.保持讨论的专业性和尊重性,避免使用侮辱性或攻击性语言。
`
+ protocol: `罕心守护平台向用户提供了“聊天室”功能,基于此服务,我们在此特别声明:
罕心守护平台非常重视您的个人信息保护及平台信息的隐私性,您同意在聊天室功能使用时遵守以下规则:
1.严禁在聊天室内讨论或分享任何患者的个人身份信息,包括但不限于姓名、性别等。群内发送的任何素材内容,必须去除所有可能识别患者身份的敏感信息;
2.不以截图、录音或以任何形式将内容传播;
3.讨论内容仅限于专业交流,不得用于任何商业目的。
4.保持讨论的专业性和尊重性,避免使用侮辱性或攻击性语言。
`,
},
innerAudioContext: null as WechatMiniprogram.InnerAudioContext | null,
videoContext: null as WechatMiniprogram.VideoContext | null,
@@ -60,10 +60,8 @@ Page({
useWebAudioImplement: true,
});
app.waitLogin().then(() => {
- // this.getAgree();
+ this.getAgree();
- this.getMessageList();
- this.getDetail();
app.getUserInfo(this);
});
},
@@ -76,17 +74,24 @@ Page({
this.videoContext.stop();
}
},
+ init() {
+ this.getMessageList();
+ this.getDetail();
+ },
getAgree() {
wx.ajax({
method: "GET",
- url: "?r=takeda/chat/get-agree",
+ url: "?r=takeda/account/chat-room-notice",
data: {
roomId: this.data.id,
},
}).then((res) => {
this.setData({
- show1: res === 2,
+ show1: res.show === 1,
});
+ if (res.show === 2) {
+ this.init();
+ }
});
},
onAgreeClose() {
@@ -95,14 +100,13 @@ Page({
handleSubmitAgree() {
wx.ajax({
method: "POST",
- url: "?r=takeda/chat/agree-room",
- data: {
- roomId: this.data.id,
- },
+ url: "?r=takeda/account/close-chat-room-notice",
+ data: {},
}).then(() => {
this.setData({
show1: false,
});
+ this.init();
});
},
getDetail() {
diff --git a/src/module1/pages/userInfo/index.scss b/src/module1/pages/userInfo/index.scss
index 167318c..408fa1b 100644
--- a/src/module1/pages/userInfo/index.scss
+++ b/src/module1/pages/userInfo/index.scss
@@ -36,7 +36,7 @@ page {
padding: 32rpx 0;
display: flex;
justify-content: space-between;
- border-bottom: 1px solid #e5e6eb;
+ border-bottom: 1px solid #f8f8f8;
&:last-of-type {
border-bottom: none;
}
@@ -79,7 +79,7 @@ page {
display: flex;
align-items: center;
justify-content: center;
- font-size: 28rpx;
+ font-size: 32rpx;
color: rgba(20, 21, 21, 1);
&:first-of-type {
margin-top: 48rpx;