57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
/*
|
|
* 手太欠
|
|
* 愿这世界都如故事里一样 美好而动人~
|
|
*/
|
|
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
isCase : '', //是否建立档案
|
|
log : '',
|
|
today : '',
|
|
caseId : '',
|
|
date : '请选择日期',
|
|
recordShow : false,
|
|
tabType : 'hyperglycemia',
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad(options) {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
onShow() {
|
|
// 获取体检报告数据
|
|
this.lastInfo();
|
|
},
|
|
|
|
/**
|
|
* 体检报告数据
|
|
*/
|
|
lastInfo() {
|
|
wx.$api.member.lastLog().then(res => {
|
|
this.setData({
|
|
log : res.data.log,
|
|
today : res.data.today,
|
|
caseId : res.data.case.gout_case_id,
|
|
isCase : res.data.case.user.status.isCase
|
|
})
|
|
}).catch(err => {})
|
|
},
|
|
|
|
// 查看图片
|
|
opneImg(photoImg) {
|
|
wx.previewImage({
|
|
current: photoImg.currentTarget.dataset.cover,
|
|
urls:[photoImg.currentTarget.dataset.cover]
|
|
})
|
|
}
|
|
}) |