Commit fbfe310d authored by lrw's avatar lrw

文案修改

parent 89c51f10
This diff is collapsed.
<template> <template>
<view class="questionnaire"> <view class="questionnaire">
<form @submit="formSubmit"> <form @submit="formSubmit">
...@@ -395,7 +394,7 @@ ...@@ -395,7 +394,7 @@
hidden: true hidden: true
}, },
{ {
label: '症状', label: '当日症状',
required: true, required: true,
value: 'symptom', value: 'symptom',
titleClass: 'title', titleClass: 'title',
...@@ -668,7 +667,38 @@ ...@@ -668,7 +667,38 @@
} }
}, },
onLoad(option) {}, onLoad(option) {
// 获取信息
this.$http.post(`/sict-ncov/report`, this.form).then(res => {
console.log(res)
})
const data = {
currentStatus: '亲密接触者'
}
for (let k in data) {
const val = data[k]
if (val) {
const item = this.list.find(child => child.value == k)
if (item) {
this.showChange({
value: val
}, item)
if (item.type == "pickerMore") {
console.log(1,22)
item.opts.forEach(opt => {
val.split(',').forEach(v => {
if (v === opt.label) {
console.log(opt)
this.$set(opt, 'checked', true)
}
})
})
}
}
}
}
},
methods: { methods: {
...@@ -710,7 +740,7 @@ ...@@ -710,7 +740,7 @@
const prop = item.value const prop = item.value
const type = item.type const type = item.type
if (type === 'radio') { if (type === 'radio') {
const val = evt.target.value const val = evt.value || evt.target.value
this.$set(this.form, prop, val) this.$set(this.form, prop, val)
for (let i = 0; i < this.list.length; i++) { for (let i = 0; i < this.list.length; i++) {
const current = this.list[i] const current = this.list[i]
...@@ -727,7 +757,7 @@ ...@@ -727,7 +757,7 @@
} }
// 复选框展示和隐藏 // 复选框展示和隐藏
if (type === 'pickerMore') { if (type === 'pickerMore') {
let val = evt.detail.value; let val = evt.value || evt.detail.value;
const showList = item.showList const showList = item.showList
if (showList && showList.length > 0) { if (showList && showList.length > 0) {
showList.forEach(item => { showList.forEach(item => {
...@@ -799,7 +829,7 @@ ...@@ -799,7 +829,7 @@
uni.navigateBack() uni.navigateBack()
uni.showToast({ uni.showToast({
icon: 'success', icon: 'success',
title:'提交成功' title: '提交成功'
}) })
} else { } else {
uni.showToast({ uni.showToast({
......
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