index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='payment-status'>
  3. <!--失败时: 用icon-iconfontguanbi fail替换icon-duihao2 bg-color-->
  4. <view class='iconfont icon-duihao2 bg-color' wx:if="{{order_pay_info.paid || order_pay_info.pay_type == 'offline'}}"></view>
  5. <view class='iconfont icon-iconfontguanbi fail' wx:else></view>
  6. <!-- 失败时:订单支付失败 -->
  7. <view class='status' wx:if="{{order_pay_info.pay_type != 'offline'}}">{{order_pay_info.paid ? '订单支付成功':'订单支付失败'}}</view>
  8. <view class='status' wx:else>订单创建成功</view>
  9. <view class='wrapper'>
  10. <view class='item acea-row row-between-wrapper'>
  11. <view>订单编号</view>
  12. <view class='itemCom'>{{orderId}}</view>
  13. </view>
  14. <view class='item acea-row row-between-wrapper'>
  15. <view>下单时间</view>
  16. <view class='itemCom'>{{order_pay_info._pay_time}}</view>
  17. </view>
  18. <view class='item acea-row row-between-wrapper'>
  19. <view>支付方式</view>
  20. <view class='itemCom'>{{order_pay_info._status._payType}}</view>
  21. </view>
  22. <view class='item acea-row row-between-wrapper'>
  23. <view>支付金额</view>
  24. <view class='itemCom'>{{order_pay_info.pay_price}}</view>
  25. </view>
  26. <!--失败时加上这个 -->
  27. <view class='item acea-row row-between-wrapper' wx:if="{{order_pay_info.paid==0 && order_pay_info.pay_type != 'offline' }}">
  28. <view>失败原因</view>
  29. <view class='itemCom'>{{status==2 ? '取消支付':msg}}</view>
  30. </view>
  31. </view>
  32. <!--失败时: 重新购买 -->
  33. <view bindtap="goOrderDetails" wx:if="{{status==0}}">
  34. <button formType="submit" class='returnBnt bg-color' hover-class='none'>查看订单</button>
  35. </view>
  36. <view bindtap="goOrderDetails" wx:if="{{order_pay_info.paid==0 && status==1}}">
  37. <button class='returnBnt bg-color' hover-class='none'>重新购买</button>
  38. </view>
  39. <view bindtap="goOrderDetails" wx:if="{{order_pay_info.paid==0 && status==2}}">
  40. <button class='returnBnt bg-color' hover-class='none'>重新支付</button>
  41. </view>
  42. <form bindsubmit="goIndex" report-submit='true'>
  43. <button class='returnBnt cart-color' formType="submit" hover-class='none'>返回首页</button>
  44. </form>
  45. </view>
  46. <authorize bind:onLoadFun='onLoadFun'></authorize>