|
|
@ -14,14 +14,14 @@ Page({ |
|
|
|
synthesisScore:'',//综合得分
|
|
|
|
inspRecordId:'',//自查表Id
|
|
|
|
fontSize:'', |
|
|
|
maskStatus:false |
|
|
|
maskStatus:false, |
|
|
|
shareFlag:false |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
onLoad(options) { |
|
|
|
console.log(options); |
|
|
|
this.setData({ |
|
|
|
statusHeight: app.globalData.deviceInfo.statusHeight, |
|
|
|
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|
|
@ -31,6 +31,20 @@ Page({ |
|
|
|
qrCodeImgUrl:options.qrCodeImgUrl, |
|
|
|
questionnaireUrl:options.questionnaireUrl |
|
|
|
}) |
|
|
|
// 获取当前日期
|
|
|
|
const currentDate = new Date(); |
|
|
|
// 获取当前月份(注意月份是从 0 到 11,所以要加 1)
|
|
|
|
const currentMonth = currentDate.getMonth() + 1; |
|
|
|
if(currentMonth == options.monthName){ |
|
|
|
this.setData({ |
|
|
|
shareFlag:true |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.setData({ |
|
|
|
shareFlag:false |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
this.getSynthesis() |
|
|
|
}, |
|
|
|
|
|
|
|