<!--pages/home/xyc/wdyw/wdyw.wxml-->
<!--返回图标-->
<view class="reback" bindtap="go2Reback"></view>
<view class="title">ta的愿望</view>

<view class="ywbjt1"></view>
<view class="xycbg2"></view>
<view class="xycbg3"></view>

<view class="wishbox">
    <view wx:for="{{wishes}}"  wx:key="index">
    
        <view class="boxitem" bindtap="go2WishDetail" data-wish="{{item}}">
            <t-image src="{{item.img}}" class="boximg"></t-image>
            <view class="boxtitle">{{item.content}}</view>
            <view class="qwsjbox">期望时间：{{item.deadline}}</view>
            <t-image class="logosta" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/ywc.png" wx:if="{{item.status=='completed'}}"></t-image>
            <t-image class="logostajxz" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/jxzdt.gif" wx:if="{{item.status=='processing'}}"></t-image>
            <t-image class="logosta" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/ygq.png" wx:if="{{item.status=='expired'}}"></t-image>
            <view class="wczt" wx:if="{{item.status=='processing'}}">进行中</view>
            <view class="wczt" wx:if="{{item.status=='completed'}}">已完成</view>
            <view class="wczt" wx:if="{{item.status=='expired'}}">已过期</view>
            
        </view>
    </view>
</view>


<!--愿望详情-->
<t-popup visible="{{visible}}" bind:visible-change="onVisibleChange" placement="top">
  <view class="all" >
    <view class="wishdetail" bindtap="changeVisible"></view>
    <view class="popbox"></view>
    <t-image class="yximg" src="{{detail.img}}"></t-image>
    <view class="ywwz">愿望</view>
    <view class="ywxq">{{detail.content}}</view>
    <view class="qwsj">期望时间</view>
    <view class="qwsjtxt">{{detail.deadline}}</view>
  </view>

  <view class="ywcczk" wx:if="{{detail.status=='processing'}}"><!--进行中按钮展示-->
    <view class="anwz1 sc1">
        <view class="yqq" bindtap="go2DelDialog"></view>
        <view class="anwztxt1">删除</view>
        <t-image bindtap="go2DelDialog" class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lsc.png"></t-image>
    </view>
    <view class="anwz1 xg1">
        <view class="yqq"></view>
        <view class="anwztxt1">修改</view>
        <t-image class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lxg.png"></t-image>
    </view>
    <view class="anwz1 wc1">
        <view class="yqq" bindtap="doFinishWish"></view>
        <view class="anwztxt1" >已达成</view>
        <t-image bindtap="doFinishWish" class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lydc.png"></t-image>
    </view>
    <view class="anwz1 fx1">
        <view class="yqq"></view>
        <view class="anwztxt1">分享</view>
        <t-image class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lfc.png"></t-image>
    </view>
  </view>
  <view class="ywcczk" wx:if="{{detail.status=='completed'}}"><!--已完成按钮展示-->
    <view class="anwz1 sc2">
        <view class="yqq" bindtap="go2DelDialog"></view>
        <view class="anwztxt1">删除</view>
        <t-image bindtap="go2DelDialog" class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lsc.png"></t-image>
    </view>
    <view class="anwz1 fx2">
        <view class="yqq"></view>
        <view class="anwztxt1">分享</view>
        <t-image class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lfc.png"></t-image>
    </view>
  </view>
  <view class="ywcczk" wx:if="{{detail.status=='expired'}}">
    <view class="anwz1 sc2">
        <view class="yqq" bindtap="go2DelDialog"></view>
        <view class="anwztxt1">删除</view>
        <t-image bindtap="go2DelDialog" class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lsc.png"></t-image>
    </view>
    <view class="anwz1 fx2">
        <view class="yqq"></view>
        <view class="anwztxt1">修改</view>
        <t-image class="anzmlogo1" src="https://xzjl-1257436036.cos.ap-nanjing.myqcloud.com/xyc/lxg.png"></t-image>
    </view>
  </view><!--已过期按钮展示-->

  
</t-popup>

<!--确定删除对话框-->
<t-dialog
data-del="{{detail.id}}"
  visible="{{showDelDialog}}"
  content="确定要删除愿望吗？"
  confirm-btn="{{ confirmBtn }}"
  cancel-btn="取消"
  confirm-btn="确定"
  bind:confirm="confirmDelDialog"
  bind:cancel="closeDelDialog"
/>


