|
|
@ -15,25 +15,27 @@ Page({ |
|
|
|
inspRecordId:'',//自查表Id
|
|
|
|
fontSize:'', |
|
|
|
maskStatus:false, |
|
|
|
shareFlag:false |
|
|
|
shareFlag:false, |
|
|
|
status:0 |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad(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(); |
|
|
|
// 获取当前月份(注意月份是从 0 到 11,所以要加 1)
|
|
|
|
const currentMonth = currentDate.getMonth() + 1; |
|
|
|
if(currentMonth == options.monthName){ |
|
|
|
this.setData({ |
|
|
|