Browse Source

dev 埋点bug处理 & 医生审核详情,头衔显示错误

dev
kola-web 2 months ago
parent
commit
44f700a08d
  1. 5
      src/components/customAudioText/index.ts
  2. 4
      src/components/customRecord/index.ts
  3. 1
      src/components/customRecord/index.wxml
  4. 2
      src/components/popupDoctorDetail/index.ts
  5. 3
      src/custom-tab-bar/index.ts
  6. 12
      src/echart/components/homeLevel4/index.ts
  7. 6
      src/echart/components/homeLevel4/index.wxml
  8. BIN
      src/images/guide1-3.png
  9. BIN
      src/images/guide3-3.png
  10. 14
      src/module1/pages/auditDoctorDetail/index.ts
  11. 3
      src/module1/pages/auditDoctorDetail/index.wxml
  12. 4
      src/module1/pages/casesDetail/index.wxml
  13. 4
      src/module1/pages/casesFeedback/index.wxml
  14. 12
      src/module1/pages/chatRoom/index.ts
  15. 13
      src/module1/pages/chatRoom/index.wxml
  16. 4
      src/module1/pages/entryCases/index.wxml
  17. 10
      src/module1/pages/login/index.scss
  18. 12
      src/module1/pages/login/index.ts
  19. 2
      src/module1/pages/login/index.wxml
  20. 4
      src/module1/pages/setInfo/index.ts
  21. 5
      src/pages/chatRoomList/index.ts
  22. 1
      src/pages/chatRoomList/index.wxml
  23. 1
      src/pages/my/index.ts

5
src/components/customAudioText/index.ts

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
const app = getApp<IAppOption>();
Component({
// 组件选项
options: {
@ -30,6 +32,7 @@ Component({ @@ -30,6 +32,7 @@ Component({
methods: {
init() {},
handleAudioText() {
console.log(this.data.map1)
if (this.data.map1) {
app.mpBehavior({ PageName: this.data.map1 });
}
@ -82,3 +85,5 @@ Component({ @@ -82,3 +85,5 @@ Component({
},
definitionFilter() {},
});
export {}

4
src/components/customRecord/index.ts

@ -244,6 +244,10 @@ Component({ @@ -244,6 +244,10 @@ Component({
return arr2[arr2.length - 1]; //将后缀名返回出来
},
noneEnoughPeople() {},
handleCatchTap() {
return false;
},
},
});

1
src/components/customRecord/index.wxml

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
bind:touchend="handleHide"
bind:touchcancel="handleHide"
catchtouchmove="noneEnoughPeople"
catch:tap="handleCatchTap"
>
<slot wx:if="{{slotIcon}}"></slot>
<image wx:else class="icon" src="{{imageUrl}}record.png?t={{Timestamp}}"></image>

2
src/components/popupDoctorDetail/index.ts

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
const _app = getApp<IAppOption>();
const app = getApp<IAppOption>();
// pages/story/a.ts
Component({

3
src/custom-tab-bar/index.ts

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
const _app = getApp<IAppOption>();
const app = getApp<IAppOption>();
// pages/story/a.ts
Component({
@ -81,6 +81,7 @@ Component({ @@ -81,6 +81,7 @@ Component({
const { index } = e.currentTarget.dataset;
const tab = this.data.tabbar[index];
if (tab.custom) {
app.mpBehavior({ PageName: "BTN_FIXEDSUBMITCASE" });
this.handleClsoeCaseTip();
wx.navigateTo({
url: tab.path,

12
src/echart/components/homeLevel4/index.ts

@ -90,8 +90,10 @@ Component({ @@ -90,8 +90,10 @@ Component({
}
}, 30);
},
handleYear1(e) {
handleTapYear1() {
app.mpBehavior({ PageName: "BTN_DEPTSTATUSYEARFILTER" });
},
handleYear1(e) {
this.setData({
year1: e.detail.value,
});
@ -273,8 +275,10 @@ Component({ @@ -273,8 +275,10 @@ Component({
});
});
},
handleYear2(e) {
handleTapYear2() {
app.mpBehavior({ PageName: "BTN_CASESTATSYEARFILTER" });
},
handleYear2(e) {
this.setData({
year2: e.detail.value,
});
@ -436,8 +440,10 @@ Component({ @@ -436,8 +440,10 @@ Component({
});
});
},
handleYear3(e) {
handleTapYear3() {
app.mpBehavior({ PageName: "BTN_DEPTNEWCASEYEARFILTER" });
},
handleYear3(e) {
this.setData({
year3: e.detail.value,
});

6
src/echart/components/homeLevel4/index.wxml

@ -182,7 +182,7 @@ @@ -182,7 +182,7 @@
科室医生入驻情况
<van-icon bind:tap="handleQuestion" data-index="4" name="question" color="rgba(224, 224, 224, 1)" />
</view>
<picker class="picker" mode="date" end="{{endYear}}" fields="year" bindchange="handleYear1">
<picker class="picker" mode="date" end="{{endYear}}" fields="year" bind:tap="handleTapYear1" bindchange="handleYear1">
<view class="picker-content">
<view class="text">{{year1}}年</view>
<van-icon name="arrow-down" />
@ -208,7 +208,7 @@ @@ -208,7 +208,7 @@
累计病历统计
<van-icon bind:tap="handleQuestion" data-index="5" name="question" color="rgba(224, 224, 224, 1)" />
</view>
<picker class="picker" mode="date" end="{{endYear}}" fields="year" bindchange="handleYear2">
<picker class="picker" mode="date" end="{{endYear}}" fields="year" bind:tap="handleTapYear2" bindchange="handleYear2">
<view class="picker-content">
<view class="text">{{year2}}年</view>
<van-icon name="arrow-down" />
@ -231,7 +231,7 @@ @@ -231,7 +231,7 @@
科室新增病历统计
<van-icon bind:tap="handleQuestion" data-index="6" name="question" color="rgba(224, 224, 224, 1)" />
</view>
<picker class="picker" mode="date" end="{{endYear}}" fields="year" bindchange="handleYear3">
<picker class="picker" mode="date" end="{{endYear}}" fields="year" bind:tap="handleTapYear3" bindchange="handleYear3">
<view class="picker-content">
<view class="text">{{year3}}年</view>
<van-icon name="arrow-down" />

BIN
src/images/guide1-3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 269 KiB

BIN
src/images/guide3-3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 KiB

After

Width:  |  Height:  |  Size: 262 KiB

14
src/module1/pages/auditDoctorDetail/index.ts

@ -11,6 +11,8 @@ Page({ @@ -11,6 +11,8 @@ Page({
detail: {} as any,
RejectReason: "",
DoctorTitleType: {},
},
onLoad(options) {
this.setData({
@ -32,10 +34,22 @@ Page({ @@ -32,10 +34,22 @@ Page({
});
app.waitLogin().then(() => {
this.getDoctorDict();
this.getDetail();
app.getUserInfo(this);
});
},
getDoctorDict() {
wx.ajax({
method: "GET",
url: "?r=takeda/reg/doctor-dict",
data: {},
}).then((res) => {
this.setData({
DoctorTitleType: res.DoctorTitleType,
});
});
},
getDetail() {
wx.ajax({
method: "GET",

3
src/module1/pages/auditDoctorDetail/index.wxml

@ -27,7 +27,8 @@ @@ -27,7 +27,8 @@
</view>
<view class="row">
<view class="label">头衔</view>
<view class="content">主任医师</view>
<view class="content" wx:if="{{detail.TitleType==='99'}}">{{detail.OtherTitle}}</view>
<view class="content" wx:else>{{DoctorTitleType[detail.TitleType]}}</view>
</view>
<view class="row">
<view class="label">证件</view>

4
src/module1/pages/casesDetail/index.wxml

@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
<view class="audio-row" wx:for="{{detail.caseAudios}}" wx:key="url">
<customAudioBar class="audio-bar" url="{{item.url}}" time="{{item.duration}}"></customAudioBar>
<view class="options">
<customAudioText class="trans" url="{{item.url}}" data-map1="BTN_CASEDETAILVOICETOTEXT">
<customAudioText class="trans" url="{{item.url}}" map1="BTN_CASEDETAILVOICETOTEXT">
转文字
</customAudioText>
</view>
@ -171,7 +171,7 @@ @@ -171,7 +171,7 @@
<view class="audio-row" wx:for="{{item.feedbackAudios}}" wx:key="url" wx:for-item="aItem">
<customAudioBar class="audio-bar" url="{{aItem.url}}" time="{{aItem.duration}}"></customAudioBar>
<view class="options">
<customAudioText class="trans" url="{{aItem.url}}" data-map1="BTN_CASEDETAILVOICETOTEXT">
<customAudioText class="trans" url="{{aItem.url}}" map1="BTN_CASEDETAILVOICETOTEXT">
转文字
</customAudioText>
</view>

4
src/module1/pages/casesFeedback/index.wxml

@ -26,8 +26,8 @@ @@ -26,8 +26,8 @@
<customAudioText
class="trans"
url="{{item.url}}"
data-map1="BTN_FEEDBACKVOICETOTEXT"
data-map2="BTN_FEEDBACKCOPYTEXT"
map1="BTN_FEEDBACKVOICETOTEXT"
map2="BTN_FEEDBACKCOPYTEXT"
>
转文字
</customAudioText>

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

@ -258,8 +258,10 @@ Page({ @@ -258,8 +258,10 @@ Page({
};
this.WebIMSendMessage(message);
},
handleSendPhoto(e) {
handleSendMapPhoto() {
app.mpBehavior({ PageName: "BTN_CHATROOMSELECTIMAGE" });
},
handleSendPhoto(e) {
const { userInfo } = this.data;
const contentStr = JSON.stringify({
url: e.detail.fileUrl,
@ -278,8 +280,10 @@ Page({ @@ -278,8 +280,10 @@ Page({
};
this.WebIMSendMessage(message);
},
handleSendVideo(e) {
handleSendMapVideo() {
app.mpBehavior({ PageName: "BTN_CHATROOMSELECTVIDEO" });
},
handleSendVideo(e) {
const { userInfo } = this.data;
const contentStr = JSON.stringify({
url: e.detail.fileUrl,
@ -485,7 +489,6 @@ Page({ @@ -485,7 +489,6 @@ Page({
}
},
handleAudio(e) {
app.mpBehavior({ PageName: "BTN_CHATROOMVOICE" });
const { index } = e.currentTarget.dataset;
const { messageList } = this.data;
const messageItem = messageList[index];
@ -573,6 +576,9 @@ Page({ @@ -573,6 +576,9 @@ Page({
});
},
handleToggleRecord() {
if (!this.data.record) {
app.mpBehavior({ PageName: "BTN_CHATROOMVOICE" });
}
this.setData({
record: !this.data.record,
focus: !this.data.record,

13
src/module1/pages/chatRoom/index.wxml

@ -165,7 +165,14 @@ @@ -165,7 +165,14 @@
/>
<view class="place" wx:else bind:tap="handleFocus">{{sendMessage}}</view>
</block>
<customRecord wx:else class="custom-record" bind:file="handleSendAudio" bind:tap="handleSendMapAudio" slotIcon doubleConform>
<customRecord
wx:else
class="custom-record"
bind:file="handleSendAudio"
bind:longtap="handleSendMapAudio"
slotIcon
doubleConform
>
按住说话
</customRecord>
<image
@ -176,11 +183,11 @@ @@ -176,11 +183,11 @@
></image>
</view>
<view class="fold-container {{!fold && 'unfold'}}" bind:tap="handleFooter">
<uploadFile class="f-item" bind:file="handleSendPhoto">
<uploadFile class="f-item" bind:file="handleSendPhoto" catch:tap="handleSendMapPhoto">
<image class="icon" src="{{imageUrl}}icon-picture.png?t={{Timestamp}}"></image>
<view class="name">照片</view>
</uploadFile>
<uploadFile class="f-item" accept="video" bind:file="handleSendVideo">
<uploadFile class="f-item" accept="video" bind:file="handleSendVideo" catch:tap="handleSendMapVideo">
<image class="icon" src="{{imageUrl}}icon-video.png?t={{Timestamp}}"></image>
<view class="name">视频</view>
</uploadFile>

4
src/module1/pages/entryCases/index.wxml

@ -52,8 +52,8 @@ @@ -52,8 +52,8 @@
<customAudioText
class="trans"
url="{{item.url}}"
data-map1="BTN_INPUTCASEVOICETOTEXT"
data-map2="BTN_INPUTCASECOPYTEXT"
map1="BTN_INPUTCASEVOICETOTEXT"
map2="BTN_INPUTCASECOPYTEXT"
>
转文字
</customAudioText>

10
src/module1/pages/login/index.scss

@ -30,11 +30,12 @@ @@ -30,11 +30,12 @@
padding-top: 66rpx;
.tel {
.input {
padding: 24rpx 32rpx;
padding: 0 32rpx;
display: block;
font-size: 32rpx;
color: #000;
line-height: 44rpx;
height: 92rpx;
line-height: 92rpx;
background: #f6f6f6;
border-radius: 96rpx 96rpx 96rpx 96rpx;
}
@ -49,10 +50,11 @@ @@ -49,10 +50,11 @@
gap: 30rpx;
.input {
display: block;
padding: 24rpx 32rpx;
padding: 0 32rpx;
font-size: 32rpx;
color: #000;
line-height: 44rpx;
height: 92rpx;
line-height: 92rpx;
background: #f6f6f6;
border-radius: 96rpx 96rpx 96rpx 96rpx;
}

12
src/module1/pages/login/index.ts

@ -11,12 +11,12 @@ Page({ @@ -11,12 +11,12 @@ Page({
},
onLoad() {
app.waitLogin(true).then(() => {
app.mpBehavior({ PageName: "PG_LOGIN" });
// app.mpBehavior({ PageName: "PG_LOGIN" });
});
},
getCode() {
if (timer) return;
app.mpBehavior({ PageName: "BTN_SENDVERIFICATION" });
// app.mpBehavior({ PageName: "BTN_SENDVERIFICATION" });
const mobile = this.data.mobile;
if (!mobile) {
wx.showToast({
@ -62,9 +62,9 @@ Page({ @@ -62,9 +62,9 @@ Page({
},
handleSubmit() {
const { mobile, code, protool } = this.data;
app.mpBehavior({ PageName: "BTN_LOGIN" });
// app.mpBehavior({ PageName: "BTN_LOGIN" });
if (!protool) {
this.handleNavProtool();
this.handleNavProtool({});
return;
}
if (!mobile) {
@ -93,7 +93,7 @@ Page({ @@ -93,7 +93,7 @@ Page({
});
},
handleWxSubmit(e: any) {
app.mpBehavior({ PageName: "BTN_PHONEQUICKACCESS" });
// app.mpBehavior({ PageName: "BTN_PHONEQUICKACCESS" });
const { protool } = this.data;
const { iv, encryptedData } = e.detail;
if (!protool) {
@ -136,7 +136,7 @@ Page({ @@ -136,7 +136,7 @@ Page({
handleNavProtool(e) {
const phone = e?.currentTarget?.dataset?.phone;
if (phone === "1") {
app.mpBehavior({ PageName: "BTN_PHONEQUICKACCESS" });
// app.mpBehavior({ PageName: "BTN_PHONEQUICKACCESS" });
}
wx.navigateTo({ url: `/module1/pages/loginProtool/index?phone=${phone}` });
},

2
src/module1/pages/login/index.wxml

@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
<view class="tel">
<input
model:value="{{mobile}}"
always-embed
class="input"
placeholder-class="place-input"
type="number"
@ -19,6 +20,7 @@ @@ -19,6 +20,7 @@
<view class="code">
<input
class="input"
always-embed
placeholder-class="place-input"
model:value="{{code}}"
type="number"

4
src/module1/pages/setInfo/index.ts

@ -129,7 +129,7 @@ Page({ @@ -129,7 +129,7 @@ Page({
});
},
handleSubmitConform() {
app.mpBehavior({ PageName: "BTN_DOCTORREGISTRATIONSUBMIT" });
// app.mpBehavior({ PageName: "BTN_DOCTORREGISTRATIONSUBMIT" });
wx.showModal({
content: "您没有邀约医生,可能会影响您的审核",
confirmColor: "#00B4C5",
@ -144,7 +144,7 @@ Page({ @@ -144,7 +144,7 @@ Page({
});
},
handleSubmit() {
app.mpBehavior({ PageName: "BTN_DOCTORREGISTRATIONSUBMIT" });
// app.mpBehavior({ PageName: "BTN_DOCTORREGISTRATIONSUBMIT" });
const {
AuditId,
Name,

5
src/pages/chatRoomList/index.ts

@ -180,8 +180,11 @@ Page({ @@ -180,8 +180,11 @@ Page({
this.getList(page + 1);
}
},
handleSearch() {
handleSearch(e) {
const { map } = e.currentTarget.dataset;
if (map === "1") {
app.mpBehavior({ PageName: "BTN_CHATROOMSEARCH" });
}
this.getList();
},
handleCaseShow() {

1
src/pages/chatRoomList/index.wxml

@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
confirm-type="search"
bindconfirm="handleSearch"
placeholder-class="place-input"
data-map="1"
type="text"
placeholder="支持档案编号、医生姓名进行搜索"
/>

1
src/pages/my/index.ts

@ -58,6 +58,7 @@ Page({ @@ -58,6 +58,7 @@ Page({
});
},
handleInvite() {
app.mpBehavior({ PageName: "BTN_MYQRCODEPOSTER" });
wx.navigateTo({
url: "/module1/pages/invite/index",
});

Loading…
Cancel
Save