order.swan 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <view class="tab">
  2. <view id="tabWrap">
  3. <view class="{{current==0?'selected':''}}" bindtap="move" data-index="0" id="tabItem">全部</view>
  4. <view class="{{current==1?'selected':''}}" bindtap="move" data-index="1">待付款</view>
  5. <view class="{{current==2?'selected':''}}" bindtap="move" data-index="2">已完成</view>
  6. <view class="line" animation="{{animationLine}}"></view>
  7. </view>
  8. </view>
  9. <view id="content" animation="{{animationContent}}">
  10. <scroll-view scroll-y class="cItem" s-for="item,index in list" bindscrolltolower="loadMore" data-sc="{{index}}">
  11. <view class="contentNull" s-if="{{item.length==0}}">
  12. <view>
  13. <image src="../../../../icon/mine/pay.png"></image>
  14. <text>还没有订单记录哦</text>
  15. </view>
  16. </view>
  17. <!-- 社保缴纳 -->
  18. <view s-else>
  19. <view class="item" s-for="item2,index2 in item">
  20. <view class="header">
  21. <view class="left">
  22. <image s-if="{{item2.pay_for==1||item2.pay_for==3}}" src="../../../../icon/home/purchase_s.png">
  23. </image>
  24. <image s-else src="../../../../icon/home/purchase_a.png">
  25. </image>
  26. <text>{{item2.title}}</text><text s-if="{{item2.pay_for==1||item2.pay_for==2}}">缴纳</text>
  27. </view>
  28. <view class="right" style="color:{{item2.status==1?'#ff801a':'#3ab261'}}">
  29. {{item2.status==1?'等待付款':'交易成功'}}</view>
  30. </view>
  31. <view class="detail">
  32. <view s-if="{{item2.pay_for==1||item2.pay_for==3}}"><text>参保姓名</text><text>{{item2.u_name}}</text>
  33. </view>
  34. <view s-else><text>购买人姓名</text><text>{{item2.u_name}}</text>
  35. </view>
  36. <view><text>购买月份</text>
  37. <view class="time">
  38. <text>{{item2.syear}}年{{item2.smonth}}月</text>
  39. <view s-if="{{item2.nums!=1}}">
  40. -<text s-if="{{item2.syear!=item2.eyear}}">{{item2.eyear}}年</text>
  41. <text>{{item2.emonth}}月</text>
  42. </view>
  43. </view>
  44. </view>
  45. <view><text>购买城市</text><text>{{item2.city_name}}</text></view>
  46. </view>
  47. <view class="money">
  48. 合计金额:
  49. <text>¥{{item2.total_fee}}</text>
  50. </view>
  51. <view class="line"></view>
  52. <view class="footer">
  53. <view class="btn" bindtap="showModal" data-index="{{index2}}" data-type="detail">查看详情</view>
  54. <view s-if="{{item2.status==1}}">
  55. <view class="btn cancle" bindtap="showModal" data-type="delete" data-index="{{index2}}">取消订单
  56. </view>
  57. <view class="btn pay" bindtap="showPayModal" data-index="{{index2}}">立即付款</view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </scroll-view>
  63. </view>
  64. <view class="orderModal modal" s-if="orderStatus">
  65. <view bindtap="closeModal"></view>
  66. <view class="detail" animation="{{animationData}}">
  67. <view class="header">
  68. <view>
  69. <view></view>
  70. <text>订单详情</text>
  71. </view>
  72. <image src="../../../../icon/public/close.png" bindtap="closeModal"></image>
  73. </view>
  74. <view class="person">
  75. <view><text>购买人姓名</text><text>{{detail.data.u_name}}</text></view>
  76. <view><text>身份证号</text><text>{{detail.data.id_card}}</text></view>
  77. <view><text>购买月份</text><text>{{detail.date}}</text></view>
  78. <view><text>购买城市</text><text>{{detail.data.city_name}}</text></view>
  79. <view s-if="{{detail.data.status==2}}"><text>支付方式</text><text>{{detail.data.pay_channel}}</text></view>
  80. <view s-if="{{detail.data.status==2}}"><text>流水号</text><text>{{detail.data.pay_no}}</text></view>
  81. <view><text>{{detail.data.status==2?'成交时间':'生成时间'}}</text><text>{{detail.data.time}}</text></view>
  82. </view>
  83. <view class="money">
  84. <view class="header">
  85. <text>实付款</text>
  86. <text>¥{{detail.data.total_fee}}</text>
  87. </view>
  88. <view class="line"></view>
  89. <view class="content">
  90. <view s-if="{{detail.data.shebao}}"><text>社保</text><text>¥{{detail.data.shebao}}</text></view>
  91. <view s-if="{{detail.data.fund}}"><text>公积金</text><text>¥{{detail.data.fund}}</text></view>
  92. <view><text>服务费</text><text>¥{{detail.data.shebao_charge+detail.data.fund_charge}}</text></view>
  93. <view s-if="{{detail.data.shebao_card}}"><text>社保卡</text><text>¥{{detail.data.shebao_card}}</text>
  94. </view>
  95. <view s-if="{{detail.data.shebao_card}}"><text>现金券(抵扣)</text><text>-¥{{detail.data.shebao_card}}</text>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="btn{{suffix}}" s-if="{{detail.data.status==1}}">
  100. <view bindtap="showPayModalLater">立即付款</view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="discountModal modal" s-if="discountStatus" >
  105. <view bindtap="closeModal"></view>
  106. <view class="detail" animation="{{animationData}}" >
  107. <view class="header">
  108. <view>
  109. <view></view>
  110. <text>选择优惠券</text>
  111. </view>
  112. <image src="../../../../icon/public/close.png" bindtap="closeModal"></image>
  113. </view>
  114. <view class="tips" s-if="!cheapDataLength">
  115. 您当前下了 {{nums}} 个月订单,可同时选 <text style="font-family: PingFangSC-Semibold;color:#ff801a"> {{nums}} </text>张优惠券
  116. </view>
  117. <view class="tips" s-else>
  118. 您已选中优惠券 {{cheapDataLength}} 张,共可抵用 <text style="font-family: PingFangSC-Semibold;color:#ff801a"> ¥{{cheapMoney}} </text>
  119. </view>
  120. <scroll-view class="card" scroll-y scroll-with-animation >
  121. <view class="cardItem" s-for="item,index in discountData"
  122. id="{{index}}" bindtap="choose">
  123. <view class="left">
  124. <view>
  125. <text>¥</text>
  126. <text>{{item.coupon_price}}</text>
  127. </view>
  128. <text>{{item.p}}</text>
  129. </view>
  130. <view class="right">
  131. <view>
  132. <text>{{item.coupon_name}}</text>
  133. <text>{{item.coupon_desc}}
  134. 有效期至:{{item.end}}
  135. </text>
  136. </view>
  137. <image src="../../../../icon/public/filter_{{item.isSelected?'s':'n'}}.png">
  138. </view>
  139. </view>
  140. </scroll-view>
  141. <view class="btn{{suffix}}">
  142. <view bindtap="pay">确定</view>
  143. </view>
  144. </view>
  145. </view>