|
|
@ -41,7 +41,7 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
app.waitLogin({ type: [2] }).then(() => { |
|
|
|
app.waitLogin({ type: [2] }).then(() => { |
|
|
|
app.mpBehavior({ PageName: 'PG_DoctorHome' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorHome' }) |
|
|
|
this.getNotice() |
|
|
|
this.getNotice() |
|
|
|
this.getBanner() |
|
|
|
this.getBanner() |
|
|
|
this.getList() |
|
|
|
this.getList() |
|
|
@ -54,7 +54,7 @@ Page({ |
|
|
|
this.getBriefingList() |
|
|
|
this.getBriefingList() |
|
|
|
this.getSopList() |
|
|
|
this.getSopList() |
|
|
|
if (userInfo.IsEDC === '1') { |
|
|
|
if (userInfo.IsEDC === '1') { |
|
|
|
app.mpBehavior({ PageName: 'PG_DoctorHomeNotice' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorHomeNotice' }) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -123,7 +123,7 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleNoticeDetail(e) { |
|
|
|
handleNoticeDetail(e) { |
|
|
|
app.mpBehavior({ PageName: 'BTN_DoctorHomeNotice' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorHomeNotice' }) |
|
|
|
const { index } = e.currentTarget.dataset |
|
|
|
const { index } = e.currentTarget.dataset |
|
|
|
const { Id, Url } = this.data.notice[index] |
|
|
|
const { Id, Url } = this.data.notice[index] |
|
|
|
app.oldMpBehavior({ PositionId: '4', OperateType: '1', OperateId: Id }) |
|
|
|
app.oldMpBehavior({ PositionId: '4', OperateType: '1', OperateId: Id }) |
|
|
@ -193,7 +193,7 @@ Page({ |
|
|
|
briefingList: res.list, |
|
|
|
briefingList: res.list, |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (res.list.length && this.data.userInfo.IsEDC === '1') { |
|
|
|
if (res.list.length && this.data.userInfo.IsEDC === '1') { |
|
|
|
app.mpBehavior({ PageName: 'PG_DoctorHomeBrief' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorHomeBrief' }) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -213,7 +213,7 @@ Page({ |
|
|
|
sopList: res.list, |
|
|
|
sopList: res.list, |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (res.list.length && this.data.userInfo.IsEDC === '1') { |
|
|
|
if (res.list.length && this.data.userInfo.IsEDC === '1') { |
|
|
|
app.mpBehavior({ PageName: 'PG_DoctorHomeSop' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorHomeSop' }) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -234,19 +234,19 @@ Page({ |
|
|
|
list: res.list, |
|
|
|
list: res.list, |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (res.list.length) { |
|
|
|
if (res.list.length) { |
|
|
|
app.mpBehavior({ PageName: 'PG_DoctorHomeLibrary' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_DoctorHomeLibrary' }) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleBriefingDetail(e: any) { |
|
|
|
handleBriefingDetail(e: any) { |
|
|
|
app.mpBehavior({ PageName: 'BTN_DoctorHomeBrief' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorHomeBrief' }) |
|
|
|
const { id } = e.currentTarget.dataset |
|
|
|
const { id } = e.currentTarget.dataset |
|
|
|
wx.navigateTo({ |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/pages/informationDetail/index?id=${id}`, |
|
|
|
url: `/pages/informationDetail/index?id=${id}`, |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleSop(e) { |
|
|
|
handleSop(e) { |
|
|
|
app.mpBehavior({ PageName: 'BTN_DoctorHomeSop' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorHomeSop' }) |
|
|
|
const { index } = e.currentTarget.dataset |
|
|
|
const { index } = e.currentTarget.dataset |
|
|
|
const { Id, FileList } = this.data.sopList[index] |
|
|
|
const { Id, FileList } = this.data.sopList[index] |
|
|
|
const params: any = FileList[0] |
|
|
|
const params: any = FileList[0] |
|
|
@ -261,7 +261,7 @@ Page({ |
|
|
|
this.handleFile(params) |
|
|
|
this.handleFile(params) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleDetail(e: any) { |
|
|
|
handleDetail(e: any) { |
|
|
|
app.mpBehavior({ PageName: 'BTN_DoctorHomeLibrary' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_DoctorHomeLibrary' }) |
|
|
|
const { id, index } = e.currentTarget.dataset |
|
|
|
const { id, index } = e.currentTarget.dataset |
|
|
|
const params = this.data.list[index] |
|
|
|
const params = this.data.list[index] |
|
|
|
if (params.ContentType === '5' && params.FileList[0]) { |
|
|
|
if (params.ContentType === '5' && params.FileList[0]) { |
|
|
@ -346,7 +346,22 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleMpBehavior(e) { |
|
|
|
handleMpBehavior(e) { |
|
|
|
const { code } = e.currentTarget.dataset |
|
|
|
const { code } = e.currentTarget.dataset |
|
|
|
app.mpBehavior({ PageName: code }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: code }) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleQuestion(e) { |
|
|
|
|
|
|
|
const { question } = e.currentTarget.dataset |
|
|
|
|
|
|
|
const content = { |
|
|
|
|
|
|
|
1: '???', |
|
|
|
|
|
|
|
2: '???', |
|
|
|
|
|
|
|
3: '???', |
|
|
|
|
|
|
|
4: '???', |
|
|
|
|
|
|
|
}[question] |
|
|
|
|
|
|
|
wx.showModal({ |
|
|
|
|
|
|
|
content: content, |
|
|
|
|
|
|
|
confirmColor: '#8c75d0', |
|
|
|
|
|
|
|
showCancel: false, |
|
|
|
|
|
|
|
confirmText: '知道了', |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShareAppMessage(e) { |
|
|
|
onShareAppMessage(e) { |
|
|
|
if (e.from === 'button') { |
|
|
|
if (e.from === 'button') { |
|
|
|