postage.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class="postage">
  2. <view class="tips" wx:if="{{tips}}">{{tips}}</view>
  3. <!-- 选择油卡 -->
  4. <view class="tabs" wx:if="{{tabsData.length}}">
  5. <view class="tabs-title">
  6. <view class="tabs-title-item {{currentIndex == index ? 'active' : ''}}" wx:for="{{tabsData}}" wx:key="index"
  7. bindtap="handlerClickTabItem" data-activeindex="{{index}}" data-cardno="{{item.card_no}}">
  8. <image class="tabs-title-item__icon" src="{{item.icon}}"></image>
  9. <text class="tabs-title-item__text">{{item.title}}</text>
  10. </view>
  11. </view>
  12. <view class="tabs-content" wx:for="{{tabsData}}" wx:key="index" style='display:{{currentIndex !== index ? "none" : "block"}}'>
  13. <view class="tabs-content__tips" catchtap="handlerClickAdd">
  14. <text class="tabs-content__tips-text">{{item.tips}}</text>
  15. <!-- <image class="tabs-content__tips-add" src="/image/postage/add.png"></image> -->
  16. </view>
  17. <view class="card-no vux-1px-b" bindtap="handlerAddCard">
  18. {{ defaultAddress.mob_phone || item.card_no}}
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 充值挡位 -->
  23. <view class="rechargeGear" wx:if="{{goods.length}}">
  24. <view class="rechargeGear-title">充值挡位</view>
  25. <view class="rechargeGear-content">
  26. <view class="rechargeGear-content__item {{rechargeGearActiveIndex == index ? 'active' : ''}}" wx:for="{{goods}}" wx:key="index"
  27. bindtap="handlerClickRechargeGear" data-activeindex="{{index}}" data-currentvalue="{{item.goods_id}}">
  28. <view class="faceValue">{{item.goods_spec}}</view>
  29. <view class="price">售价 {{item.goods_price}} 元</view>
  30. </view>
  31. </view>
  32. <view class="rechargeGear-footer">
  33. <view class="btn-rechargeNow" bindtap="handlerRecharge">
  34. <text>立即充值</text>
  35. </view>
  36. <view class="rechargeNow-tips">充值后,即时到账</view>
  37. </view>
  38. </view>
  39. </view>