<!--packageE/healthy/healthyDetails/healthyDetails.wxml-->

<view class="infoWrapper">
	<view class="name">基本信息</view>
	<view class="content">
		<!-- <view class="item" style="flex:4">
			<view>
				<text class="text1">性别</text>
				<text class="text2">男</text>
			</view>
			<view>
				<text class="text1">身高</text>
				<text class="text2">160cm</text>
			</view>
		</view>

		<view class="item" style="flex:3">
			<view>
				<text class="text1">目标体重</text>
				<text class="text2">60Kg</text>
			</view>
			<view>
				<text class="text1">当前体重</text>
				<text class="text2">70Kg</text>
			</view>
		</view> -->
		<view wx:for="{{basic_info}}" class="item">
			<text class="text1">{{item.name}}</text>
			<text class="text2">{{item.answer}}{{item.company_name}}</text>
		</view>

	</view>
</view>

<view class="tabs">
	<view class="item {{tabIndex==0 ? 'active' : ''}}" bindtap="setTabs" data-index="0">测评问题</view>
	<view class="item {{tabIndex==1 ? 'active' : ''}}" bindtap="setTabs" data-index="1">测评结果</view>
</view>

<view class="problemWrapper" wx:if="{{tabIndex==0}}">
	<view class="item" wx:for="{{question.evaluation_data}}" >
		<view class="content">
			<text style="color:red;" wx:if="{{item.is_require==1}}">*</text>
			<text>{{index+1}}.{{item.name}}</text>
		</view>

		<view class="btns">
			<view wx:for="{{item.option}}" wx:for-item="item1" class="btn {{item1.is_checked==1 ? 'active' : ''}}" >{{item1.name}}</view>
		</view>
	</view>

</view>

<block wx:if="{{tabIndex==1}}">
	<healthy-res resultData="{{resultData}}"></healthy-res>
</block>




