<view class='page-write'>
  <view class='content'>
    <view class='top'>
      <view class='top-content'>
        <view  class='no-list'>
          <textarea placeholder='我来说说在这里游玩的感受吧~' bindinput='inputMessage'></textarea>
        </view>
        <view class='tag-item' wx:for="{{tag}}" wx:for-item="item" wx:for-index="index" wx:key="index" wx:if="{{item.click && !showBadYouJi}}">
          <text class='lable'>{{item.Name}}：</text>
          <textarea placeholder='请输入...' bindinput='inputItemMessage' id="{{index}}"></textarea>
        </view> 
        <view class='btn'>
          <button class='next' type="default" size="mini" bindtap="goWrite">发送</button>
        </view>     
      </view> 
    </view>
  </view>
    <view class='tag'>
    <view class='tag-tit'>
      <image src='../../../images/voucher/tag_icon.png'></image>
      <text>游记标签</text>
    </view>
    <view class='tag-list'>
      <text class='{{item.click ? "active" : ""}}' wx:for="{{tag}}" wx:for-item="item" wx:for-index="index" wx:key="key" bindtap='clickTag' id="{{index}}">{{item.Name}}</text>
    </view>
  </view>
  <view class='upload'>
    <view wx:for="{{imgList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class='item-box'>
      <image src='{{item}}'></image>
      <text class='delete-img' bindtap='deleteImg' id='{{index}}'>x</text>
    </view>
    <view class='upload_btn' bindtap='chooseImage'>+</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='ActivateCode'>
        <text class='code'>{{ActivateCode}}</text><text class='copy_btn' bindtap='copyText'>复制</text>
      </view>
      <view class='tips'>为表达对您的感谢，特送上100元跟团游通用优惠券，本券仅限于本次报名的门店使用。在您下次报名的时候请主动出示此优惠码。（建议您截图保存、或复并存到备忘录）</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>