|
|
|
@ -22,7 +22,7 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
app.waitLogin({ type: [2] }).then(() => { |
|
|
|
app.waitLogin({ type: [2] }).then(() => { |
|
|
|
app.mpBehavior({ doctor:true, PageName: 'PG_LibraryList' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'PG_LibraryList' }) |
|
|
|
this.getList() |
|
|
|
this.getList() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -58,13 +58,14 @@ Page({ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleDetail(e) { |
|
|
|
handleDetail(e) { |
|
|
|
app.mpBehavior({ doctor:true, PageName: 'BTN_LibraryListContent' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_LibraryListContent' }) |
|
|
|
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]) { |
|
|
|
app.oldMpBehavior({ PositionId: '1', OperateType: '1', OperateId: id as string }) |
|
|
|
app.oldMpBehavior({ PositionId: '1', OperateType: '1', OperateId: id as string }) |
|
|
|
this.handleFile(params.FileList[0]) |
|
|
|
this.handleFile(params.FileList[0]) |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
wx.navigateTo({ |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/pages/informationDetail/index?id=${id}`, |
|
|
|
url: `/pages/informationDetail/index?id=${id}`, |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -90,7 +91,8 @@ Page({ |
|
|
|
wx.hideLoading() |
|
|
|
wx.hideLoading() |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
wx.hideLoading() |
|
|
|
wx.hideLoading() |
|
|
|
wx.showToast({ |
|
|
|
wx.showToast({ |
|
|
|
title: '下载文件失败', |
|
|
|
title: '下载文件失败', |
|
|
|
@ -109,7 +111,7 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShareAppMessage(e) { |
|
|
|
onShareAppMessage(e) { |
|
|
|
if (e.from === 'button') { |
|
|
|
if (e.from === 'button') { |
|
|
|
app.mpBehavior({ doctor:true, PageName: 'BTN_LibraryListShare' }) |
|
|
|
app.mpBehavior({ doctor: true, PageName: 'BTN_LibraryListShare' }) |
|
|
|
const { Title, CoverImgUrl, Id } = e.target.dataset.params |
|
|
|
const { Title, CoverImgUrl, Id } = e.target.dataset.params |
|
|
|
app.oldMpBehavior({ PositionId: '2', OperateType: '3', OperateId: Id }) |
|
|
|
app.oldMpBehavior({ PositionId: '2', OperateType: '3', OperateId: Id }) |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -118,7 +120,9 @@ Page({ |
|
|
|
imageUrl: CoverImgUrl, |
|
|
|
imageUrl: CoverImgUrl, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return {} |
|
|
|
return { |
|
|
|
|
|
|
|
imageUrl: `${getApp().globalData.imageUrl}doctor-share.png?t=${Date.now()}`, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|