pay.swan 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <view class="container" >
  2. <view class="contentNull" s-if="{{isEmpty}}">
  3. <view>
  4. <image src="../../../../icon/mine/pay.png"></image>
  5. <text>还没有订单记录哦</text>
  6. </view>
  7. </view>
  8. <scroll-view scroll-y class="content" s-if="{{!isEmpty}}" >
  9. <view class="item" s-for="item,index in list">
  10. <view class="header">
  11. <view class="left">
  12. <image s-if="{{item.pay_for==1||item.pay_for==3}}" src="../../../../icon/home/purchase_s.png">
  13. </image>
  14. <image s-if="{{item.pay_for==2||item.pay_for==4}}" src="../../../../icon/home/purchase_a.png">
  15. </image>
  16. <text>{{item.title}}</text><text
  17. s-if="{{item.pay_for==1||item.pay_for==2}}">{{item.added?'补缴':'缴纳'}}</text>
  18. </view>
  19. <view class="right">等待付款</view>
  20. </view>
  21. <view class="detail">
  22. <view>
  23. <text s-if="{{item.pay_for==1||item.pay_for==3}}">参保姓名</text>
  24. <text s-if="{{item.pay_for==2||item.pay_for==4}}">购买人姓名</text>
  25. <text>购买月份</text>
  26. <text>购买城市</text>
  27. </view>
  28. <view>
  29. <text>{{item.u_name}}</text>
  30. <view class="time">
  31. <text>{{item.syear}}年{{item.smonth}}月</text>
  32. <view s-if="{{item.nums!=1}}">
  33. -<text s-if="{{item.syear!=item.eyear}}">{{item.eyear}}年</text>
  34. <text>{{item.emonth}}月</text>
  35. </view>
  36. </view>
  37. <text>{{item.city_name}}</text>
  38. </view>
  39. </view>
  40. <view class="money">
  41. 合计金额:
  42. <text>¥{{item.total_fee}}</text>
  43. </view>
  44. <view class="line"></view>
  45. <view class="footer">
  46. <view class="btn" bindtap="showModal" data-index="{{index}}" data-type="detail">查看详情</view>
  47. <view>
  48. <view class="btn cancle" bindtap="showModal" data-order="{{item.buy_no}}" data-type="delete"
  49. data-index="{{index}}">取消订单</view>
  50. <view class="btn pay" bindtap="showPayModal" data-index="{{index}}"">立即付款</view>
  51. </view>
  52. </view>
  53. </view>
  54. </scroll-view>
  55. </view>
  56. <!-- 订单模态框 -->
  57. <view class="orderModal modal" s-if="orderStatus">
  58. <view bindtap="closeModal" data-type="order"></view>
  59. <view class="detail" animation="{{animationData}}">
  60. <view class="header">
  61. <view>
  62. <view></view>
  63. <text>订单详情</text>
  64. </view>
  65. <image src="../../../../icon/public/close.png" bindtap="closeModal" data-type="order"></image>
  66. </view>
  67. <view class="person">
  68. <view><text>参保姓名</text><text>{{detail.data.u_name}}</text></view>
  69. <view><text>身份证号</text><text>{{detail.data.id_card}}</text></view>
  70. <view><text>购买月份</text><text>{{detail.date}}</text></view>
  71. <view><text>购买城市</text><text>{{detail.data.city_name}}</text></view>
  72. <view><text>生成时间</text><text>{{detail.data.time}}</text></view>
  73. </view>
  74. <view class="money">
  75. <view class="header">
  76. <text>待付款</text>
  77. <text>¥{{detail.data.total_fee}}</text>
  78. </view>
  79. <view class="line"></view>
  80. <view class="content">
  81. <view s-if="{{detail.data.shebao}}"><text>社保</text><text>¥{{detail.data.shebao}}</text></view>
  82. <view s-if="{{detail.data.fund}}"><text>公积金</text><text>¥{{detail.data.fund}}</text></view>
  83. <view><text>服务费</text><text>¥{{detail.data.shebao_charge+detail.data.fund_charge}}</text></view>
  84. <view s-if="{{detail.data.shebao_card}}"><text>社保卡</text><text>¥{{detail.data.shebao_card}}</text>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="btn{{suffix}}">
  89. <view bindtap="showPayModalLater" >立即付款</view>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- 支付模态框 -->
  94. <!-- <view class="payModal modal">
  95. <view class="detail">
  96. <view class="header">
  97. <view>
  98. <view></view>
  99. <text>选择支付方式</text>
  100. </view>
  101. <image src="../../../../icon/public/close.png"></image>
  102. </view>
  103. <view class="payType">
  104. <view class="item">
  105. <view>
  106. <image src="../../../../icon/mine/wepay.png"></image>
  107. 微信支付
  108. </view>
  109. <image src="../../../../icon/public/filter_n.png"></image>
  110. </view>
  111. <view class="line"></view>
  112. <view class="item">
  113. <view>
  114. <image src="../../../../icon/mine/alipay.png"></image>
  115. 支付宝支付
  116. </view>
  117. <image src="../../../../icon/public/filter_n.png"></image>
  118. </view>
  119. </view>
  120. <view class="discount">
  121. <view class="left">
  122. <text>优惠券</text>
  123. <text>2张可用</text>
  124. </view>
  125. <view class="right">
  126. <text>-¥20</text>
  127. <image src="../../../../icon/public/arrow_right.png"></image>
  128. </view>
  129. </view>
  130. <view class="btn{{suffix}}">
  131. <view>确定付款</view>
  132. </view>
  133. </view>
  134. </view> -->
  135. <!-- 优惠券模态框 -->
  136. <view class="discountModal modal" s-if="discountStatus" >
  137. <view bindtap="closeModal"></view>
  138. <view class="detail" animation="{{animationData}}" >
  139. <view class="header">
  140. <view>
  141. <view></view>
  142. <text>选择优惠券</text>
  143. </view>
  144. <image src="../../../../icon/public/close.png" bindtap="closeModal"></image>
  145. </view>
  146. <view class="tips" s-if="!cheapDataLength">
  147. 您当前下了 {{nums}} 个月订单,可同时选 <text style="font-family: PingFangSC-Semibold;color:#ff801a"> {{nums}} </text>张优惠券
  148. </view>
  149. <view class="tips" s-else>
  150. 您已选中优惠券 {{cheapDataLength}} 张,共可抵用 <text style="font-family: PingFangSC-Semibold;color:#ff801a"> ¥{{cheapMoney}} </text>
  151. </view>
  152. <scroll-view class="card" scroll-y scroll-with-animation >
  153. <view class="cardItem" s-for="item,index in discountData"
  154. id="{{index}}" bindtap="choose">
  155. <view class="left">
  156. <view>
  157. <text>¥</text>
  158. <text>{{item.coupon_price}}</text>
  159. </view>
  160. <text>{{item.p}}</text>
  161. </view>
  162. <view class="right">
  163. <view>
  164. <text>{{item.coupon_name}}</text>
  165. <text>{{item.coupon_desc}}
  166. 有效期至:{{item.end}}
  167. </text>
  168. </view>
  169. <image src="../../../../icon/public/filter_{{item.isSelected?'s':'n'}}.png">
  170. </view>
  171. </view>
  172. </scroll-view>
  173. <view class="btn{{suffix}}">
  174. <view bindtap="pay">确定</view>
  175. </view>
  176. </view>
  177. </view>