Browse Source

bug 处理

main
kola-web 4 months ago
parent
commit
46466e97c4
  1. 24
      src/module1/pages/chatRoom/index.ts
  2. 4
      src/module1/pages/userInfo/index.scss

24
src/module1/pages/chatRoom/index.ts

@ -47,7 +47,7 @@ Page({ @@ -47,7 +47,7 @@ Page({
sendMessage: "",
videoUrl: "",
protocol:`<p><span style="color: rgb(38, 38, 38); font-size: 14px;">罕心守护平台向用户提供了“聊天室”功能,基于此服务,我们在此特别声明:</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">罕心守护平台非常重视您的个人信息保护及平台信息的隐私性,您同意在聊天室功能使用时遵守以下规则:</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;"> </span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">1.严禁在聊天室内讨论或分享任何患者的个人身份信息,包括但不限于姓名、性别等。群内发送的任何素材内容,必须去除所有可能识别患者身份的敏感信息;</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">2.不以截图、录音或以任何形式将内容传播;</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">3.讨论内容仅限于专业交流,不得用于任何商业目的。</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">4.保持讨论的专业性和尊重性,避免使用侮辱性或攻击性语言。</span></p><p><br></p>`
protocol: `<p><span style="color: rgb(38, 38, 38); font-size: 14px;">罕心守护平台向用户提供了“聊天室”功能,基于此服务,我们在此特别声明:</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">罕心守护平台非常重视您的个人信息保护及平台信息的隐私性,您同意在聊天室功能使用时遵守以下规则:</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;"> </span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">1.严禁在聊天室内讨论或分享任何患者的个人身份信息,包括但不限于姓名、性别等。群内发送的任何素材内容,必须去除所有可能识别患者身份的敏感信息;</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">2.不以截图、录音或以任何形式将内容传播;</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">3.讨论内容仅限于专业交流,不得用于任何商业目的。</span></p><p><span style="color: rgb(38, 38, 38); font-size: 14px;">4.保持讨论的专业性和尊重性,避免使用侮辱性或攻击性语言。</span></p><p><br></p>`,
},
innerAudioContext: null as WechatMiniprogram.InnerAudioContext | null,
videoContext: null as WechatMiniprogram.VideoContext | null,
@ -60,10 +60,8 @@ Page({ @@ -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({ @@ -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({ @@ -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() {

4
src/module1/pages/userInfo/index.scss

@ -36,7 +36,7 @@ page { @@ -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 { @@ -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;

Loading…
Cancel
Save