<view class='page-details'>
  <view>
    <text class='text'>感谢{{nameID}}参与意见调查</text>
  </view>
  <view class='leader-info'>
    <view class='top'>
      <text>领队：{{leaderData.LeaderName}}</text>
      <text>导游：{{leaderData.GuideName}}</text>
    </view>
    <view>
      <text>团期：{{leaderData.StartDateStr}}-{{leaderData.EndDateStr}}</text>
    </view>
  </view>
  <view wx:for="{{voucherData}}" wx:for-item="item" wx:for-index="index" wx:key="index" class='pingfen-item'>
    <view>
      <text class='tittle'>{{index+1}}、{{item.Title}}</text>
    </view>
    <com-rating max="5" rating='5' bindchange='handleChange' wx:if="{{item.SurveyType === 1}}" id="{{index}}"/>
    <radio-group wx:elif="{{item.SurveyType === 2}}" class="radio-group" bindchange="radioChange" id="{{index}}">
      <label class="radio" wx:for="{{item.SurveyOptionsList}}" wx:for-item="CItem" wx:for-index="CIndex" wx:key="CIndex">
        <radio value="{{CItem.ID}}" checked="{{CItem.IsCheckS}}"/>{{CItem.OptionsName}}
      </label>
    </radio-group>
    <checkbox-group wx:elif="{{item.SurveyType === 3}}" bindchange="checkboxChange" id="{{index}}">
      <label class="checkbox" wx:for="{{item.SurveyOptionsList}}" wx:for-item="CItem" wx:for-index="CIndex" wx:key="CIndex">
        <checkbox value="{{CItem.ID}}" checked="{{CItem.IsCheckS}}"/>{{CItem.OptionsName}}
      </label>
    </checkbox-group>
    <textarea wx:elif="{{item.SurveyType === 4 && !showYouJi}}" bindinput='inputMessage' id="{{index}}" placeholder='点击输入'></textarea>
  </view>
  <view class='btn'>
    <button class='next' type="default" size="mini" bindtap="saveMessage">确认</button>
  </view>
  <view class='dialog' wx:if="{{showYouJi}}">
    <view class='box'>
      <view class='tit'>感谢参与调查</view>
      <image src='../../../images/voucher/xieyouji_icon.png'></image>
      <view class='btn'>
        <button class='next' type="default" size="mini" bindtap="goWrite">写游记，领奖品</button>
      </view>
      <view class='btn'>
        <button class='next cancle' type="default" size="mini" bindtap="logOut"><navigator open-type="exit" target="miniProgram">取消</navigator></button>
      </view>
      <view class='tips'>
        根据自身经历写游记，还可获得惊喜小礼品
      </view>
    </view>
  </view>
  <view class='dialog' wx:if="{{showBadYouJi}}">
    <view class='box'>
      <view class='tit'>感谢参与调查</view>
      <image src='../../../images/voucher/xieyouji_icon.png'></image>
      <view class='tips'>
        非常感谢您的配合，祝您生活愉快~
      </view>
      <view class='btn'>
        <button class='next' type="default" size="mini"><navigator open-type="exit" target="miniProgram">好的</navigator></button>
        <!-- <button class='next' type="default" size="mini" bindtap="logOut">好的，不用谢~</button> -->
      </view>
    </view>
  </view>
</view>