<!--pages/regular/index.wxml-->
<view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  <image src="../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">定期存款</text>
</view>

<scroll-view scroll-y refresher-threshold="0" style="height:100%" bindscrolltolower="paging" lower-threshold="100" style="margin-top:{{isIPX?'98px':'74px'}};">
  <!-- wx:for="{{list}}" wx:key="index" wx:for-item="item" right-width="{{ 50 }}" -->
<van-swipe-cell class="workflow" wx:for="{{list}}" wx:if="{{list[0].rspmsg == '查询成功！'}}" wx:key="index" >
  <view class="li" >
    <view style="width:70%;flex:7;">
      <view class="tit_box">
        <text class="tit">{{item.pdtName}}</text>
        <text class="tit_tab2">{{item.recSts}}</text>
      </view>
      <view class="detail_box">
        <view style="margin-left:5%;color:grey;font-size: 12px;justify-content: space-between;display: contents;">
          <text>账号：{{item.acctNo}}</text>
          <text class="tit_tab">钞</text> 
        </view>
        <view class="ll_box">
          <image src="/image/icon/icon_ll.png" style="width: 17px;height: 14px;"></image>
          <text>利率</text>
          <text style="color: #E90000;">{{item.acctIntr}}%</text>
        </view>
      </view>
      <view class="money_box">
        <view>
          <text>定期余额（元）</text>
          <text style="color: #E90000;font-size: 22px;margin-top: 10px;">{{item.tdAcctBal}}</text>
          <view style="display: flex;align-items: center;margin-top: 10px;">
            <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
            <text>{{item.opacIntsDt}}</text>
          </view>
        </view>
        <view>
          <text>可用余额（元）</text>
          <text style="color: #5CAE77;font-size: 22px;margin-top: 10px;">{{item.avlAmt}}</text>
          <view style="display: flex;align-items: center;margin-top: 10px;">
            <image src="/image/icon/clock_red_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
            <text>{{item.dueDt}}</text>
          </view>
        </view>
        <view>
          <text>存期（天）</text>
          <text style="color: #444444;font-size: 22px;margin-top: 10px;">{{item.depPrdN}}</text>
        </view>
      </view>
    </view>
    <!-- <view style="width:30%;flex:3;">
      <view style="text-align: right;">
          <view style="color:red;line-height: 50px;font-size: 18px;">
            <text style="font-size: 10px;display: inline;">￥</text>666
          </view>
        </view>
        <view style="text-align: right;" bindtap="toPay" data-id="{{item.approvalItemTemplateId}}" data-ids="{{item.id}}">
          <button type="primary" size="mini" style="border-radius: 15px;" >待支付</button>
        </view>
    </view>  -->
  </view>
  <!-- <view slot="right" class="deleteBox">
    <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(98,173,102,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="upload">
      <view>
        <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;"  ></image>
      </view>
      <view>
        <text style="color: #62AD66;">附件</text>
      </view>
    </view>
  </view> -->
</van-swipe-cell>
<van-empty wx:if="{{list[0].rspmsg}}" description="{{list[0].rspmsg}}" />
</scroll-view>
<van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  <scroll-view scroll-y="true" style="height: 600rpx;"  scroll-top="0">
    <view class="fj-box">
            <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
              <view>
                <text>{{item.dictLabel}}</text>
              </view>
              <view class="img_box">
                <view class="img_li">
                  <van-upload file-list="{{ item.list }}" deletable="{{false}}" show-upload="{{false}}" bind:click-preview="lookDown">
                  </van-upload> 
                </view>
              </view>
            </view>
          </view>
  </scroll-view>
</van-action-sheet>

