<view id="eyesight">
  <!-- 步骤进度 -->
  <view id="tabWrap">
    <view id="tab">
      <text>完善信息</text>
      <image src="../../assets/arrow_right.png" />
      <text class="tabSelected">初始视力</text>
      <image src="../../assets/arrow_right.png" />
      <text>训练设置</text>
    </view>
  </view>
  <view id="eyesightConWrap">
    <view class="eyesightConTitle">
      <view class="eyesightConLeft">视力情况</view>
      <view class="eyesightConRight">
        <text class="selItem">左</text>
        <text class="selItem">右</text>
      </view>
    </view>
    <view id="eyesightCon">
      <view class="eyesightConItem">
        <view class="eyesightConLeft">裸眼视力</view>
        <picker mode="multiSelector" class="selectorPicker" bindchange="luoeyeChange" value="{{luoeyeIndex}}" range="{{luoeyeArray}}">
          <view class="eyesightConRight">
            <view class="selItem">{{luoeyeArray[0][luoeyeIndex[0]]}}</view>
            <view class="selItem">{{luoeyeArray[1][luoeyeIndex[1]]}}</view>
          </view>
        </picker>
      </view>
      <view class="eyesightConItem" bindtap="showList">
        <view class="eyesightConLeft">弱视、斜视、散光</view>
        <view class="eyesightConRight">
          <text class="selItem">{{allLeft}}</text>
          <text class="selItem">{{allRight}}</text>
        </view>
      </view>
      <view id="eyesightLast" hidden="{{!show}}">
        <view class="eyesightConItem">
          <view class="eyesightConLeft">· 弱视程度</view>
          <picker mode="multiSelector" class="selectorPicker" bindchange="ruoChange" value="{{ruoIndex}}" range="{{ruoArray}}">
            <view class="eyesightConRight">
              <view class="selItem">{{ruoArray[0][ruoIndex[0]]}}</view>
              <view class="selItem">{{ruoArray[1][ruoIndex[1]]}}</view>
            </view>
          </picker>
        </view>
        <view class="eyesightConItem">
          <view class="eyesightConLeft">· 斜视情况</view>
          <picker mode="multiSelector" class="selectorPicker" bindchange="xieChange" value="{{xieIndex}}" range="{{xieArray}}">
            <view class="eyesightConRight">
              <view class="selItem">{{xieArray[0][xieIndex[0]]}}</view>
              <view class="selItem">{{xieArray[1][xieIndex[1]]}}</view>
            </view>
          </picker>
        </view>
        <view class="eyesightConItem">
          <view class="eyesightConLeft">· 散光度数</view>
          <picker mode="multiSelector" class="selectorPicker" bindchange="sanChange" value="{{sanIndex}}" range="{{sanArray}}">
            <view class="eyesightConRight">
              <view class="selItem">{{sanArray[0][sanIndex[0]]}}</view>
              <view class="selItem">{{sanArray[1][sanIndex[1]]}}</view>
            </view>
          </picker>
        </view>
      </view>
      <view class="eyesightConItem {{isClass==1 ? '' : 'eyesightConItemLast'}}">
        <view class="eyesightConLeft">是否配镜</view>
        <view class="eyesightConRight classConRight">
          <switch color="#33D1C4" checked="{{isClass==1}}" bindchange="classSwitch"/>
        </view>
      </view>
      <view hidden="{{isClass==0}}">
        <view class="eyesightConItem">
          <view class="eyesightConLeft">· 矫正视力</view>
          <picker mode="multiSelector" class="selectorPicker" bindchange="jiaoChange" value="{{jiaoIndex}}" range="{{jiaoArray}}">
            <view class="eyesightConRight">
              <view class="selItem">{{jiaoArray[0][jiaoIndex[0]]}}</view>
              <view class="selItem">{{jiaoArray[1][jiaoIndex[1]]}}</view>
            </view>
          </picker>
        </view>
        <view class="eyesightConItem">
          <view class="eyesightConLeft">· 眼镜度数</view>
          <picker mode="multiSelector" class="selectorPicker" bindchange="glassChange" value="{{glassIndex}}" range="{{glassArray}}">
            <view class="eyesightConRight">
              <view class="selItem">{{glassArray[0][glassIndex[0]]}}</view>
              <view class="selItem">{{glassArray[1][glassIndex[1]]}}</view>
            </view>
          </picker>
        </view>
        <view class="eyesightConItem eyesightConItemLast">
          <view class="eyesightConLeft">· 配镜日期</view>
          <picker mode="date" value="{{date}}" start="1990-09-01" end="2025-09-01" class="selectorPicker" bindchange="bindDateChange">
            <view class="eyesightConRight">
              {{date}}
            </view>
          </picker>
        </view>
      </view>
    </view>
  </view>
  <!-- 提示 -->
  <view id="childInfoTips">
    <view><image src="../../assets/icon_tips_s.png"></image></view>
    <view>请您如实填写本页信息，这将帮助我们为您或您的孩子提供更科学有效的眼部健康管理。</view>
  </view>
  <!-- <view class="{{show?'eyesightBom':'eyesightPos'}}"> -->
  <view class="eyesightPos">
    <view id="eyesightBox">
      <button id="eyesightBack" bindtap='eyesightBack'>上一步</button>
      <button id="eyesightNext" bindtap='eyesightNext'>下一步</button>
    </view>
  </view>
  <view id="eyesightPopup" hidden="{{flag}}">
    <view id="eyesightPopupCon">
      <view id="eyesightPopupTitle">重要提醒</view>
      <view id="eyesightPopupDes">视力信息包含“弱视、斜视、散光”，如无此情况，请勿选择！</view>
      <button id="eyesightKnow" disabled="{{disabled}}" style="{{disabled?'background:#ccc;':''}}" bindtap='eyesightKnow'>知道了{{second}}</button>
    </view>
  </view>
</view>
