|
|
@ -14,23 +14,39 @@ Page({ |
|
|
|
synthesisScore:'',//综合得分
|
|
|
|
inspRecordId:'',//自查表Id
|
|
|
|
fontSize:'', |
|
|
|
maskStatus:false |
|
|
|
maskStatus:false, |
|
|
|
shareFlag:false, |
|
|
|
status:0 |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad(options) { |
|
|
|
console.log(options); |
|
|
|
// 获取参数
|
|
|
|
this.setData({ |
|
|
|
statusHeight: app.globalData.deviceInfo.statusHeight, |
|
|
|
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|
|
|
inspRecordId:options.inspRecordId, |
|
|
|
agencyName:options.agencyName, |
|
|
|
monthName:options.monthName, |
|
|
|
qrCodeImgUrl:options.qrCodeImgUrl, |
|
|
|
questionnaireUrl:options.questionnaireUrl |
|
|
|
inspRecordId: decodeURIComponent(options.inspRecordId), |
|
|
|
agencyName:decodeURIComponent(options.agencyName), |
|
|
|
monthName:decodeURIComponent(options.monthName), |
|
|
|
qrCodeImgUrl:decodeURIComponent(options.qrCodeImgUrl), |
|
|
|
questionnaireUrl:decodeURIComponent(options.questionnaireUrl), |
|
|
|
status:decodeURIComponent(options.status) |
|
|
|
}) |
|
|
|
// 获取当前日期
|
|
|
|
const currentDate = new Date(); |
|
|
|
const currentMonth = currentDate.getMonth() + 1; |
|
|
|
if(currentMonth == options.monthName){ |
|
|
|
this.setData({ |
|
|
|
shareFlag:true |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.setData({ |
|
|
|
shareFlag:false |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
this.getSynthesis() |
|
|
|
}, |
|
|
|
|
|
|
|