|
@@ -18,7 +18,7 @@ export default (props) => {
|
18
|
18
|
onLoadingChange(v)
|
19
|
19
|
}
|
20
|
20
|
}
|
21
|
|
-
|
|
21
|
+
|
22
|
22
|
const setFieldChange = (key, val) => {
|
23
|
23
|
onChange({
|
24
|
24
|
location: loc,
|
|
@@ -41,7 +41,9 @@ export default (props) => {
|
41
|
41
|
// });
|
42
|
42
|
// }
|
43
|
43
|
// }, [checkItemInfo?.itemId])
|
44
|
|
-
|
|
44
|
+
|
|
45
|
+ // console.log('answer', answer);
|
|
46
|
+
|
45
|
47
|
return (
|
46
|
48
|
<View>
|
47
|
49
|
<Map location={answer?.location} onLocChange={setLoc} />
|
|
@@ -54,6 +56,13 @@ export default (props) => {
|
54
|
56
|
/>
|
55
|
57
|
)
|
56
|
58
|
}
|
|
59
|
+ <Field
|
|
60
|
+ readonly={readonly}
|
|
61
|
+ placeholder={checkType == 'loc' ? '请输入地址' : '请填写社区名称'}
|
|
62
|
+ // value={answer}
|
|
63
|
+ leftIcon={mapIcon}
|
|
64
|
+ // onChange={e => setFieldChange('', e.detail)}
|
|
65
|
+ />
|
57
|
66
|
<Field
|
58
|
67
|
readonly={readonly}
|
59
|
68
|
placeholder={checkType == 'loc' ? '请输入地址' : '请填写小区名称'}
|
|
@@ -64,14 +73,14 @@ export default (props) => {
|
64
|
73
|
</CellGroup>
|
65
|
74
|
{
|
66
|
75
|
checkType == 'survey' && (
|
67
|
|
- <CellGroup style={{marginTop: '20px'}}>
|
|
76
|
+ <CellGroup style={{ marginTop: '20px' }}>
|
68
|
77
|
<Cell title="性别">
|
69
|
|
- <View style={{textAlign: 'right'}}>
|
|
78
|
+ <View style={{ textAlign: 'right' }}>
|
70
|
79
|
<RadioGroup
|
71
|
80
|
disabled={readonly}
|
72
|
81
|
direction="horizontal"
|
73
|
82
|
value={answer?.sex}
|
74
|
|
- style={{display: 'inline-flex'}}
|
|
83
|
+ style={{ display: 'inline-flex' }}
|
75
|
84
|
onChange={(e) => setFieldChange('sex', e.detail)}
|
76
|
85
|
>
|
77
|
86
|
<Radio name="1" checkedColor="var(--main-bg-color)">男</Radio>
|