index.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--nova-travel/page/vip-info/real-name/real-name.wxml-->
  2. <nav type="back" title="银行卡" background-color="{{activeColor ? activeColor : '#ffffff'}}" frontColor="{{titleColor ? titleColor : 'black'}}"></nav>
  3. <view class="real_name_wrap">
  4. <view class="card">
  5. <view class="title">我的卡</view>
  6. <block wx:for="{{cardList}}" wx:key="index">
  7. <!-- 银行卡 -->
  8. <view class="real_name">
  9. <view class="name">{{item.bankName}}</view>
  10. <view class="number" wx:if="{{item.cardId.length == 16}}">**** **** **** {{item.cardId[12]}}{{item.cardId[13]}}{{item.cardId[14]}}{{item.cardId[15]}}</view>
  11. <view class="number" wx:if="{{item.cardId.length == 17}}">**** **** **** {{item.cardId[13]}}{{item.cardId[14]}}{{item.cardId[15]}}{{item.cardId[16]}}</view>
  12. <view class="number" wx:if="{{item.cardId.length == 18}}">**** **** **** {{item.cardId[14]}}{{item.cardId[15]}}{{item.cardId[16]}}{{item.cardId[17]}}</view>
  13. <view class="number" wx:if="{{item.cardId.length == 19}}">**** **** **** {{item.cardId[15]}}{{item.cardId[16]}}{{item.cardId[17]}}{{item.cardId[18]}}</view>
  14. <van-icon bind:tap="delete" data-index="{{index}}" name="delete" size="40rpx" color="#fbf9f8" style="position:absolute;right:30rpx;top:30rpx;"/>
  15. </view>
  16. </block>
  17. <view class="add" bindtap="onClickShow"style="background-color: {{activeColor ? activeColor : '#00c2cb'}};color:{{titleColor?titleColor:'ffffff'}}">
  18. <van-icon name="add-o" color="{{titleColor?titleColor:'ffffff'}}" size="40rpx"/>
  19. <text style="background-color: {{activeColor ? activeColor : '#00c2cb'}};color:{{titleColor?titleColor:'ffffff'}}">添加银行卡</text>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 遮罩层 -->
  24. <van-overlay show="{{ show }}" bind:click="onClickHide">
  25. <view class="wrapper" >
  26. <view class="block">
  27. <!-- 添加银行卡 -->
  28. <view class="bank" catch:tap="noop">
  29. <view class="title">添加银行卡</view>
  30. <!-- 姓名 -->
  31. <view class="box">
  32. <text>持卡人</text>
  33. <input class="weui-input" bindinput="bindKeyInput" data-prop="name" value="{{name}}" placeholder="持卡人姓名"/>
  34. </view>
  35. <!-- 卡号 -->
  36. <view class="box">
  37. <text>卡 号</text>
  38. <input class="weui-input" bindinput="bindKeyInput" data-prop="cardId" value="{{cardId}}" type="number" placeholder="持卡人姓名"/>
  39. </view>
  40. <!-- 开户行 -->
  41. <view class="box">
  42. <text>开卡行</text>
  43. <input class="weui-input" bindinput="bindKeyInput" data-prop="bankName" value="{{bankName}}" placeholder="例 中国银行"/>
  44. </view>
  45. <button bind:tap="submit" style="background-color: {{activeColor ? activeColor : '#00c2cb'}};color:{{titleColor?titleColor:'ffffff'}}">提 交</button>
  46. </view>
  47. </view>
  48. </view>
  49. </van-overlay>