diff --git a/pages/index/achievement/achievement.wxml b/pages/index/achievement/achievement.wxml index 7bbef34..7861eeb 100644 --- a/pages/index/achievement/achievement.wxml +++ b/pages/index/achievement/achievement.wxml @@ -20,7 +20,7 @@ 打卡成果 - 本次打卡坚持了{{recordVo.taskStatisticsParam}}{{taskVo.statisticsUnit}} + 本次打卡坚持了{{recordVo.taskStatisticsParam}}{{taskVo.statisticsUnit}} "{{recordVo.taskRecordDesc}}" diff --git a/pages/index/newPunch/newPunch.js b/pages/index/newPunch/newPunch.js index c952716..0dc2419 100644 --- a/pages/index/newPunch/newPunch.js +++ b/pages/index/newPunch/newPunch.js @@ -64,19 +64,20 @@ Page({ }, // 第二列 { - values: ['8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00'], + values: ['5:00','6:00','7:00','8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00', '24:00'], defaultIndex: 1, }, ], //打卡缺卡提醒 clockLackShow: false, - columnsClockLack: [1,2,3], + columnsClockLack: [1,2,3,4,5,6,7,8,9,10], //必须包含 containShow: false, columnsContain: ['无限制','图片'], }, //获取模板详情 / 空模板 getDetail() { + if(this.data.tempId == 0) return request({ url: `/wx/temp/getTempDetail`, method: 'get', diff --git a/pages/index/newPunch/newPunch.wxml b/pages/index/newPunch/newPunch.wxml index e05df48..225c74d 100644 --- a/pages/index/newPunch/newPunch.wxml +++ b/pages/index/newPunch/newPunch.wxml @@ -2,12 +2,12 @@ - + - + @@ -77,7 +77,7 @@ 学生如缺卡达到一定条件,将会提醒家长 - + diff --git a/pages/index/newPunch/newPunch.wxss b/pages/index/newPunch/newPunch.wxss index 41408ad..08d75c8 100644 --- a/pages/index/newPunch/newPunch.wxss +++ b/pages/index/newPunch/newPunch.wxss @@ -79,4 +79,5 @@ background-color: #fff; padding: 20px 30px 80px; box-sizing: border-box; -} \ No newline at end of file +} + diff --git a/pages/index/punchDetail/punchDetail.js b/pages/index/punchDetail/punchDetail.js index 56146b3..bf257ba 100644 --- a/pages/index/punchDetail/punchDetail.js +++ b/pages/index/punchDetail/punchDetail.js @@ -23,7 +23,7 @@ Page({ hideHeader: true, // 隐藏日历头部操作栏 disableMode: { // 禁用某一天之前/之后的所有日期 type: 'after', // [‘before’, 'after'] - // 无该属性或该属性值为假,则默认为当天 + // 无该属性或该属性值为假,则默认为当天 }, }, isDisplay: false, @@ -231,14 +231,27 @@ Page({ title: '打卡成功', icon: 'none' }) - let e = { - detail: { - date: moment(this.data.form.repairDate).format('DD'), - month: moment(this.data.form.repairDate).format('MM'), - year: moment(this.data.form.repairDate).format('YYYY') + let e + if (this.data.form.isRepair == 2) { + e = { + detail: { + date: moment(this.data.form.repairDate).format('DD'), + month: moment(this.data.form.repairDate).format('MM'), + year: moment(this.data.form.repairDate).format('YYYY') + } } + this.getInfo(moment(this.data.form.repairDate).format('YYYY-MM-DD'), 1, e) + } else { + e = { + detail: { + date: moment().date(), + month: moment().month() + 1, + year: moment().year() + } + } + this.getInfo(moment(new Date().getTime()).format('YYYY-MM-DD'), 0, e) } - this.getInfo(moment(this.data.form.repairDate).format('YYYY-MM-DD'), 1, e) + this.closeClockShow() } else { wx.showToast({ diff --git a/pages/index/punchDetail/punchDetail.wxml b/pages/index/punchDetail/punchDetail.wxml index ab9e23c..fc123c1 100644 --- a/pages/index/punchDetail/punchDetail.wxml +++ b/pages/index/punchDetail/punchDetail.wxml @@ -17,9 +17,9 @@ - 我 的 成 果 + 我 的 成 果 立 即 打 卡 - 补 卡 + 补 卡 -- libgit2 0.21.0