<navbar home back text="交易明细" background="#fff" color="#000"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view wx:if="{{showPage}}" class='notes'>
  <view class='head'>
    <view class='titles' style='font-weight:bold;'>{{cardDetail.title}}</view>
    <view class='titles clearfix'>
      <text class='fl'>有效期:{{cardDetail.expiredTime}}</text>
      <view class='fr'>余额:
        <text>{{cardDetail.remainingAmount/100}}</text>元</view>
    </view>
  </view>
  <text class='title'>适用门店</text>
  <view class='posi' style='overflow:{{hidden}};height:{{height}}'>
    <view class='posi_logo' wx:for="{{cardDetail.merchantVoList}}" wx:key="index">
      <view bindtap='gotoDetail' data-id='{{item.id}}'>
        <image src='{{item.merchantImgUrl}}'></image>
      </view>
      <view bindtap='gotoDetail' data-id='{{item.id}}'>
        <text>{{item.merchantName}}</text>
        <text>{{item.addr}}{{item.buildingName}}{{item.floorName}}</text>
      </view>
      <image wx:if="{{item.linkLinePhone}}" bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
    </view>
  </view>
  <view class='bottom' bindtap='more' wx:if="{{showMore}}">{{more}}</view>
  <text class='title' wx:if="{{supportTransfer!=1}}">交易记录</text>
  <view wx:for="{{data}}" wx:key="index" class='list'>
    <view class='record clearfix record1'>
      <text class='fl'>{{item.merchantName}}</text>
      <text class='fr'>-{{item.deductionAmount/100}}元</text>
    </view>
    <view class='clearfix record2'>
      <text class='fl'>{{item.updateDate}}</text>
      <text class='fr'>余 {{item.cardRemainAmount/100}}元</text>
    </view>
  </view>
  <view class="dingdan" wx:if="{{data.length==0&&supportTransfer!=1}}">
    <image src="{{dingdanUrl}}" mode="widthFix"></image>
    <text>暂无交易明细</text>
  </view>
  <view class='share-bottom'>
    <!-- <button class='goback' wx:if="{{supportTransfer==1}}" bindtap='gotoIndex'><image src='{{home}}' mode="widthFix"></image></button> -->
    <button type="primary" open-type="share" wx:if="{{supportTransfer==1}}" class='support-tansfer'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button>
  </view>
</view>