<t-toast id="t-toast" />
<!--单身情况下-->
<view class="xybtn2" wx:if="{{!userInfo.loverId}}"><text class="btn21">银币</text><text class="btn22">{{userInfo.silverCoin}}枚</text></view>
<view class="xybtn3" wx:if="{{!userInfo.loverId}}" bindtap="go2MyYw">我的愿望<view class="xyctoast">{{wishes.length}}</view></view>

<!--非单身情况下-->
<view class="qlxybtn2" wx:if="{{userInfo.loverId}}"><text class="btn21">银币</text><text class="btn22">{{userInfo.silverCoin}}枚</text></view>
<view class="qlxybtn21" wx:if="{{userInfo.loverId}}" bindtap="go2TaYw">Ta的愿望<view class="xyctoast">{{LoveWishes.length}}</view></view>
<view class="qlxybtn22" wx:if="{{userInfo.loverId}}" bindtap="go2MyYw">我的愿望<view class="xyctoast">{{wishes.length}}</view></view>
<view class="bgt3" ></view>
<view class="bgt2" ></view>
<view class="bgt1" bindtap="showToast"></view>
<view class="xyk" ></view>
<view class="xybtn" bindtap="doXyPop"></view>

<!-- <view class="ppop" bindtap="showMultiText"></view> -->

<t-popup class="txypop" visible="{{visible}}" placement="center" show-overlay="{{false}}">
  <view class="ttop1">

    <view class="ttop1-item">
      <view class="xynr">许愿内容</view>
      <t-textarea class="xynrf" model:value="{{xyContent}}" t-class="external-class" placeholder="内容限制30个字"  />
    </view>

    <view class="ttop1-item">
      <view class="qwsj">期望时间</view>
      <t-input 
        class="qwsjt" 
        placeholder="请选择到期时间" 
        bindtap="doXzTime" 
        value="{{note}}" 
        disabled 
        suffixIcon="{{ 'chevron-down'}}"
      />
    </view>

    <view class="ttop1-item">
      <view class="xylj">许愿链接</view>
      <t-input 
        class="xyljt" 
        placeholder="愿望链接(可不填)" 
        model:value="{{xyLink}}"
      />
    </view>

    <view class="ttop1-item">
      <view class="xytp">许愿图片</view>
      <t-upload class="xytpt"
        mediaType="{{['video','image']}}"
        max="{{1}}"
        files="{{fileList}}"
        bind:add="handleAdd"
        bind:remove="handleRemove"
      >
      </t-upload>
    </view>

    <view class="ttop1-btn">
      <view class="btn" bindtap="doCancelXy">取消</view>
      <view data-fs="{{form}}" data-note="{{note}}" class="btn" bindtap="doFinishXy">完成</view>
    </view>

  </view>
</t-popup>

<t-calendar visible="{{cvisible}}" bind:confirm="handleConfirm" bind:close="onClose" min-date="{{minDate}}"/>

<!-- 提示 -->
<view class="xyc-toast" wx:if="{{showToast}}">
    投枚银币许个愿吧！守护精灵将会祝福你的愿望！
</view>

<!-- 许愿祝福中 -->
<view class="xyc-process" wx:if="{{showXyz}}">
  <t-image src="/images/hourglass.gif"/>
  <view>愿望祝福中……</view>
</view>

<!--愿望详情-->
<view wx:if="{{showDetail}}" class="wishdetail-box">
  <view class="wishdetail">
  
    <!-- <view class="popbox" bindtap="closeDetail">
      <t-image src="https://wish-assets.windymuse.com.cn/xy/jt.gif"/>
      <view class="yximg"><t-image src="{{item.img}}"></t-image></view>
      <view class="ywwz2">愿望</view>
      <view class="ywxq2">{{item.content}}</view>
      <view class="qwsj2">期望时间</view>
      <view class="qwsjtxt2">{{item.deadline}}</view>
    </view> -->
      <canvas canvas-id="myCanvas" class="myCanvas" wx:if="{{showCanvas}}"></canvas>
      <view id="my-canvas" class="my_canvas" bindtap="closeDetail">
        <image class="logosta my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/jxzdt.gif" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/jxzdt.gif"></image>
        <image class="popbox my_draw_canvas" src="https://wish-assets.windymuse.com.cn/xy/detailbkg.png" data-type="image" data-url="https://wish-assets.windymuse.com.cn/xy/detailbkg.png"/>
        <image class="yximg my_draw_canvas" src="{{item.img}}" data-type="image" data-url="{{item.img}}"/>
        <text class="ywwz2 my_draw_canvas" data-type="text" data-text="愿望">愿望</text>
        <view class="ywxq2 my_draw_canvas" data-type="text" data-text="{{item.content}}">{{item.content}}</view>
        <view class="qwsj2 my_draw_canvas" data-type="text" data-text="期望时间">期望时间</view>
        <view class="qwsjtxt2 my_draw_canvas" data-type="text" data-text="{{item.deadline}}">{{item.deadline}}</view>
    </view>

    <view class="anwz1">
      <view class="anwz1-tb" bindtap="openShare">
        <t-image class="anzmlogo1" src="https://wish-assets.windymuse.com.cn/xy/lfc.png"></t-image>
      </view>
      <view class="anwztxt1">分享</view>
    </view>

  </view>

      <!-- 分享 -->
    <!-- <t-popup  placement="bottom"> -->
    <view class="popup-main" wx:if="{{shareVisible}}">
      <view class="main-top">
        <view></view>
        <view class="text">分享到</view>
        <t-icon name="close" size="32" bindtap="openShare"/>
      </view>
          <view class="main-box">
        <view class="box-item">
            <button open-type="share" class="item-icon" bindtap="shareWx">
              <t-image src="https://wish-assets.windymuse.com.cn/xy/antFill-wx.png"></t-image>
            </button>
            <view class="item-text">微信</view>
        </view>
        <view class="box-item">
            <view class="item-icon cyan">
              <t-image src="https://wish-assets.windymuse.com.cn/xy/antFill-pyq.png"></t-image>
            </view>
            <view class="item-text">朋友圈</view>
        </view>
        <view class="box-item">
            <view class="item-icon orange">
              <t-image src="https://wish-assets.windymuse.com.cn/xy/antFill-wb.png"></t-image>
            </view>
            <view class="item-text">微博</view>
        </view>
        <view class="box-item">
            <view class="item-icon blue">
              <t-image src="https://wish-assets.windymuse.com.cn/xy/antFill-qq.png"></t-image>
            </view>
            <view class="item-text">QQ</view>
        </view>
        <view class="box-item">
            <view class="item-icon yellow">
              <t-image src="https://wish-assets.windymuse.com.cn/xy/antFill-qqkj.png"></t-image>
            </view>
            <view class="item-text">QQ空间</view>
        </view>
        <view class="box-item">
            <view class="item-icon orange" bindtap="gitImg">
              <t-image src="https://wish-assets.windymuse.com.cn/xy/antFill-tp.png"></t-image>
            </view>
            <view class="item-text">生成图片</view>
        </view>
      </view>
    </view>
    <!-- </t-popup> -->
</view>