Commit 2e78dbb6 authored by Edwise's avatar Edwise 🍷

123

parent 235e2bac
No preview for this file type
This diff is collapsed.
...@@ -105,15 +105,22 @@ Page({ ...@@ -105,15 +105,22 @@ Page({
/**获取活动时间 */ /**获取活动时间 */
getActivtyTime() { getActivtyTime() {
if(app.activityInfo){
const { const {
startTime, startTime,
endTime endTime
} = app.activityInfo; } = app.activityInfo;
let startStr = this.getTime1(startTime); let startStr = this.getTime1(startTime);
let endStr = this.getTime1(endTime); let endStr = this.getTime1(endTime);
this.setData({ this.setData({
activtyTime: '活动时间:' + startStr + '-' + endStr activtyTime: '活动时间:' + startStr + '-' + endStr
}) })
}else{
this.setData({
activtyTime: '活动已结束'
})
}
}, },
// 转换时间 // 转换时间
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment