|
|
@ -3,7 +3,7 @@ |
|
|
|
<view v-for="(item, index) in infoList" :key="index"> |
|
|
|
<template v-for="(colItem, itemIndex) in item"> |
|
|
|
<view v-if="colItem.showType === 1" :key="itemIndex" class="flex flex-col mx-4 border-b"> |
|
|
|
<view class="my-3 flex justify-between items-center text-base" @click="changeShow(index, itemIndex)"> |
|
|
|
<view class="my-3 flex justify-between items-center text-sm" @click="changeShow(index, itemIndex)"> |
|
|
|
{{ colItem.name }} |
|
|
|
<u-icon name="arrow-up" class="ml-2" color="#909399" v-if="colItem.show"></u-icon> |
|
|
|
<u-icon name="arrow-down" class="ml-2" color="#909399" v-else></u-icon> |
|
|
@ -18,7 +18,7 @@ |
|
|
|
:key="radioIndex" |
|
|
|
:name="radioItem" |
|
|
|
> |
|
|
|
<view class="py-1 text-base">{{ radioItem }}</view> |
|
|
|
<view class="py-1">{{ radioItem }}</view> |
|
|
|
</u-radio> |
|
|
|
</u-radio-group> |
|
|
|
<u-input |
|
|
@ -39,7 +39,7 @@ |
|
|
|
:key="checkboxIndex" |
|
|
|
:name="checkboxItem.name" |
|
|
|
> |
|
|
|
<view class="py-1 text-base">{{ checkboxItem.name }}</view> |
|
|
|
<view class="py-1">{{ checkboxItem.name }}</view> |
|
|
|
</u-checkbox> |
|
|
|
</u-checkbox-group> |
|
|
|
<u-input |
|
|
@ -53,9 +53,9 @@ |
|
|
|
<!-- 失眠 --> |
|
|
|
<view v-if="colItem.type === 10"> |
|
|
|
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)"> |
|
|
|
<u-radio class="flex mb-1" :name="0"><text class="py-1 text-base">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="0"><text class="py-1 text-sm">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="1"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-base"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-sm"> |
|
|
|
是,每天能睡 |
|
|
|
<input |
|
|
|
class="mx-1 w-12 h-6 text-center border-b" |
|
|
@ -73,9 +73,9 @@ |
|
|
|
<!-- 吸烟 --> |
|
|
|
<view v-if="colItem.type === 11"> |
|
|
|
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)"> |
|
|
|
<u-radio class="flex mb-1 w-full" :name="0"><text class="py-1 text-base">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1 w-full" :name="0"><text class="py-1 text-sm">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="1"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-base"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-sm"> |
|
|
|
曾经是,但已经戒烟,已戒 |
|
|
|
<input |
|
|
|
class="mx-1 w-12 h-6 text-center border-b" |
|
|
@ -89,7 +89,7 @@ |
|
|
|
</view> |
|
|
|
</u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="2"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-base"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-sm"> |
|
|
|
是,烟龄 |
|
|
|
<input |
|
|
|
class="mx-1 w-12 h-6 text-center border-b" |
|
|
@ -115,9 +115,9 @@ |
|
|
|
<!-- 饮酒 --> |
|
|
|
<view v-if="colItem.type === 12"> |
|
|
|
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)"> |
|
|
|
<u-radio class="flex mb-1" :name="0"><text class="py-1 text-base">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="0"><text class="py-1 text-sm">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="1"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-base"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-sm"> |
|
|
|
曾经是,但已经戒酒,已戒 |
|
|
|
<input |
|
|
|
class="mx-1 w-12 h-6 text-center border-b" |
|
|
@ -130,7 +130,7 @@ |
|
|
|
年 |
|
|
|
</view> |
|
|
|
</u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="2"><text class="py-1 text-base">是</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="2"><text class="py-1 text-sm">是</text></u-radio> |
|
|
|
</u-radio-group> |
|
|
|
<!-- 饮酒种类 --> |
|
|
|
<view class="mt-2 flex flex-col" v-if="colItem.showClasses"> |
|
|
@ -142,7 +142,7 @@ |
|
|
|
:key="classRadioIndex" |
|
|
|
:name="radioItem" |
|
|
|
> |
|
|
|
<text class="py-1 text-base">{{ radioItem }}</text> |
|
|
|
<text class="py-1 text-sm">{{ radioItem }}</text> |
|
|
|
</u-radio> |
|
|
|
</u-radio-group> |
|
|
|
<u-input |
|
|
@ -157,9 +157,9 @@ |
|
|
|
<!-- 饮茶 --> |
|
|
|
<view v-if="colItem.type === 13"> |
|
|
|
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)"> |
|
|
|
<u-radio class="flex mb-1" :name="0"><text class="py-1 text-base">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="0"><text class="py-1 text-sm">否</text></u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="1"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-base"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-sm"> |
|
|
|
曾经是,但已经不喝,已不喝 |
|
|
|
<input |
|
|
|
class="mx-1 w-12 h-6 text-center border-b" |
|
|
@ -173,7 +173,7 @@ |
|
|
|
</view> |
|
|
|
</u-radio> |
|
|
|
<u-radio class="flex mb-1" :name="2"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-base"> |
|
|
|
<view class="flex flex-nowrap items-center py-1 text-sm"> |
|
|
|
是,已持续 |
|
|
|
<input |
|
|
|
class="mx-1 w-12 h-6 text-center border-b" |
|
|
@ -197,7 +197,7 @@ |
|
|
|
:key="classIndex" |
|
|
|
:name="radioItem" |
|
|
|
> |
|
|
|
<text class="py-1 text-base">{{ radioItem }}</text> |
|
|
|
<text class="py-1 text-sm">{{ radioItem }}</text> |
|
|
|
</u-radio> |
|
|
|
</u-radio-group> |
|
|
|
<view>饮茶频率</view> |
|
|
@ -208,7 +208,7 @@ |
|
|
|
:key="frequencyIndex" |
|
|
|
:name="radioItem" |
|
|
|
> |
|
|
|
<text class="py-1 text-base">{{ radioItem }}</text> |
|
|
|
<text class="py-1 text-sm">{{ radioItem }}</text> |
|
|
|
</u-radio> |
|
|
|
</u-radio-group> |
|
|
|
</view> |
|
|
@ -222,17 +222,17 @@ |
|
|
|
:key="radioIndex" |
|
|
|
:name="radioItem.id" |
|
|
|
> |
|
|
|
<view class="py-1 text-base">{{ radioItem.value }}</view> |
|
|
|
<view class="py-1 text-sm">{{ radioItem.value }}</view> |
|
|
|
</u-radio> |
|
|
|
</u-radio-group> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-else :key="itemIndex" class="mx-4 flex justify-between items-center border-b"> |
|
|
|
<view class="my-3 text-base">{{ colItem.name }}</view> |
|
|
|
<view class="my-3 text-sm">{{ colItem.name }}</view> |
|
|
|
<!-- 日期: 年月日 --> |
|
|
|
<view v-if="colItem.type === 2"> |
|
|
|
<view @click="changeShow(index, itemIndex)"> |
|
|
|
<view @click="changeShow(index, itemIndex)" class="text-sm"> |
|
|
|
<text :class="colItem.value ? '' : 'text-gray-350'">{{ colItem.value || '请选择' }} </text> |
|
|
|
<u-icon name="arrow-right" class="ml-2" color="#909399"></u-icon> |
|
|
|
</view> |
|
|
@ -260,7 +260,7 @@ |
|
|
|
</view> |
|
|
|
<!-- 单列下拉选框 --> |
|
|
|
<view v-if="colItem.type === 4"> |
|
|
|
<view @click="changeShow(index, itemIndex)"> |
|
|
|
<view @click="changeShow(index, itemIndex)" class="text-sm"> |
|
|
|
<text :class="colItem.value ? '' : 'text-gray-350'">{{ colItem.value || '请选择' }} </text> |
|
|
|
<u-icon name="arrow-right" class="mx-2" color="#909399"></u-icon> |
|
|
|
</view> |
|
|
@ -275,7 +275,7 @@ |
|
|
|
</view> |
|
|
|
<!-- 多列下拉选框 --> |
|
|
|
<view v-if="colItem.type === 7"> |
|
|
|
<view @click="changeShow(index, itemIndex)"> |
|
|
|
<view @click="changeShow(index, itemIndex)" class="text-sm"> |
|
|
|
<text :class="colItem.value ? '' : 'text-gray-350'">{{ colItem.value || '请选择' }} </text> |
|
|
|
<u-icon name="arrow-right" class="ml-2" color="#909399"></u-icon> |
|
|
|
</view> |
|
|
@ -300,13 +300,14 @@ |
|
|
|
</view> |
|
|
|
<!-- 地区选择器 --> |
|
|
|
<view v-if="colItem.type === 9"> |
|
|
|
<view @click="changeShow(index, itemIndex)"> |
|
|
|
<view @click="changeShow(index, itemIndex)" class="text-sm"> |
|
|
|
<text :class="colItem.value ? '' : 'text-gray-350'">{{ colItem.value || '请选择' }} </text> |
|
|
|
<u-icon name="arrow-right" class="ml-2" color="#909399"></u-icon> |
|
|
|
</view> |
|
|
|
<u-picker |
|
|
|
@confirm="change($event, index, itemIndex, colItem.type)" |
|
|
|
mode="region" |
|
|
|
class="text-sm" |
|
|
|
v-model="colItem.show" |
|
|
|
:params="paramsArea" |
|
|
|
:title="colItem.name" |
|
|
|