Commit 4ee9204e authored by 张杰's avatar 张杰

no message

parent e39b4613
...@@ -462,7 +462,13 @@ Page({ ...@@ -462,7 +462,13 @@ Page({
"value": value, "value": value,
"signSummaryId": item.signSummaryId "signSummaryId": item.signSummaryId
} }
// 如果是饮食分类没有选中选项的时候,不保存明细
if (this.data.controlIndex == 0 && (recordItem.optionIndex == null || recordItem.optionIndex == -1)) {
continue
}
arrRecordList.push(addRecord) arrRecordList.push(addRecord)
} }
} }
......
{ {
"navigationBarTitleText": "首页" "navigationBarTitleText": "比来童园"
} }
\ No newline at end of file
{ {
"navigationBarTitleText": "首页" "navigationBarTitleText": "比来童园"
} }
\ No newline at end of file
...@@ -64,10 +64,21 @@ Page({ ...@@ -64,10 +64,21 @@ Page({
"signState": this.data.selectTags[i] ? 0 : 1//签到状态:0:签到 1:取消签到 "signState": this.data.selectTags[i] ? 0 : 1//签到状态:0:签到 1:取消签到
} }
if (student.signState == 0 && student.signSummaryId != null) {
continue
}
studentIds.push(student) studentIds.push(student)
} }
console.log(studentIds)
if (studentIds.length == 0) {
wx.showToast({
title: '未做操作,请检查',
icon:'none'
})
return;
}
req.signIn(app.globalData.login.user.id, this.data.classId, studentIds).then(res => { req.signIn(app.globalData.login.user.id, this.data.classId, studentIds).then(res => {
wx.showToast({ wx.showToast({
......
{ {
"navigationBarTitleText": "首页" "navigationBarTitleText": "比来童园"
} }
\ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<view class='kg-flex-row' style='margin-right:30rpx;'> <view class='kg-flex-row' style='margin-right:30rpx;'>
<view class='home-student-name'> <view class='home-student-name'>
<view class='kg-text-normal-dark'>{{item.signStudentName}}</view> <view class='kg-text-normal-dark'>{{item.signStudentName}}</view>
<template is="sex" data="{{sex:item.signStudentSex == '0' ? 'male' : 'female'}}"></template> <template is="sex" data="{{sex:item.signStudentSex}}"></template>
</view> </view>
<view></view> <view></view>
</view> </view>
......
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