Commit e8161ade authored by lrw's avatar lrw

添加每日填报

parent 01df31be
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
"path" : "pages/security/security", "path" : "pages/security/security",
"style" : {} "style" : {}
} }
,{
"path" : "pages/fillInDay/fillInDay",
"style" : {}
}
], ],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<view class="cu-form-group margin-top-sm"> <view class="cu-form-group margin-top-sm">
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<view class="padding-top padding-bottom" > <view class="padding-top padding-bottom">
<checkbox-group @click="openModal"> <checkbox-group @click="openModal">
<label> <label>
<checkbox value="A" :checked="form.agree == '1'" class="fl" style="margin-top:4upx" /> <checkbox value="A" :checked="form.agree == '1'" class="fl" style="margin-top:4upx" />
...@@ -1611,12 +1611,12 @@ ...@@ -1611,12 +1611,12 @@
}], }],
showList: [{ showList: [{
value: '亲密接触者', value: '亲密接触者',
show: '32,48' show: [32, 35, 38, 40, 43, 45, 47]
}, },
{ {
value: '居家观察/正在接受集中医学观察', value: '居家观察/正在接受集中医学观察',
show: '49,50', show: [49, 50]
}, },
] ]
}, },
...@@ -1921,10 +1921,10 @@ ...@@ -1921,10 +1921,10 @@
methods: { methods: {
openModal() { openModal() {
if(!this.form.agree) { if (!this.form.agree) {
this.form.agree = '1' this.form.agree = '1'
this.modalName = true this.modalName = true
}else { } else {
this.form.agree = 0 this.form.agree = 0
} }
...@@ -1977,7 +1977,7 @@ ...@@ -1977,7 +1977,7 @@
this.$set(checkList[checkList.length - 1], 'checked', false) this.$set(checkList[checkList.length - 1], 'checked', false)
const values = [] const values = []
for (var i = 0, lenI = checkList.length; i < lenI; ++i) { for (var i = 0, lenI = checkList.length; i < lenI; ++i) {
if(checkList[i].checked) { if (checkList[i].checked) {
values.push(checkList[i].label) values.push(checkList[i].label)
} }
} }
...@@ -2012,23 +2012,17 @@ ...@@ -2012,23 +2012,17 @@
// 复选框展示和隐藏 // 复选框展示和隐藏
if (type === 'pickerMore') { if (type === 'pickerMore') {
console.log(evt) console.log(evt)
const nullList = ['无上述情况','以上均无']
const checkList = item.opts