<!--pages/donationDetail/donationDetail.wxml-->
<custom-navi text="慈善募捐" back="{{true}}" home="{{false}}"></custom-navi>
<view class='donationDetail'>
  <view class='donationInfo'>
    <view class='frontImg'>
      <image src="{{donationDat.front_image}}" />
    </view>
    <view class="row">
      <text class="titleText">募捐事由:</text><text class="dataText">{{donationDat.title}}</text>
    </view>
    <view class="row">
      <text class="titleText">募捐说明:</text><text class="dataText">{{donationDat.comment}}</text>
    </view>
    <view class="row">
      <text class="titleText">发布单位:</text><text class="dataText">{{donationDat.author}}</text>
    </view>
    <view class="row">
      <text class="titleText">募捐金额:</text><text class="dataText">{{donationDat.money}}/{{donationDat.max_money}}</text>
    </view>
    <view class="row">
      <text class="titleText">募捐期限:</text><text class="dataText">{{donationDat.start_time}}-{{donationDat.finish_time}}</text>
    </view>
  </view>
  <view class="labelRow">
      <image src='../../img/sanjiao.png'></image>爱心人士
    </view>
  <view class='donationUser_list'>
    <view class="userDonationItem" wx:for="{{userDonationList}}">
      <view class="userInfo">
        <view class="profile">
          <image src="{{item.header_img}}" />
          <text class="name">{{item.name}}</text>
        </view>
        <text class="money">¥{{item.money}}</text>
      </view>
      <text class="comment">捐赠留言：{{item.comment}}</text>
    </view>
  </view>
  <view class='actionBtn' bindtap='donationAction'>捐款</view>

  <view class='donationDialog' wx:if="{{showDilog==1}}">
    <view class='con_juankuan'>
      <view style="margin-top:15px;">
        <text>金额</text>
        <input placeholder='请输入金额' bindinput="onInputMoney" value='{{money}}'></input>
        <text>元</text>
      </view>
      <view>
        <text>赠言</text>
        <input placeholder='请输入赠言' bindinput="onInputComment" value='{{comment}}'></input>
      </view>
      <view class='buttons'>
        <view style='background:#8F8F8F; color:#fff' bindtap='cancelDonation'>取消</view>
        <view style='background:#FF3030; color:#fff' bindtap='donationPay'>确认</view>
      </view>
    </view>
  </view>
  <van-notify id="van-notify" />
</view>
