order_list.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div id="order_list_container">
  3. <van-card
  4. v-for="(order,index) in orders"
  5. :key="index"
  6. >
  7. <!-- 抬头部分-->
  8. <div slot="title" class="flex justify-between">
  9. <div>
  10. <text class="text-gray">订单号&nbsp;</text>
  11. <text class>{{ order.sn }}</text>
  12. </div>
  13. <div>
  14. <text class="text-gray">{{ order.create_time }}</text>
  15. <view class="text-right">
  16. <template v-if="order.pay_status == 1">
  17. <text class="text-bold">未付款</text>
  18. </template>
  19. <template>
  20. <text>已付款</text>
  21. </template>
  22. </view>
  23. </div>
  24. </div>
  25. <!-- 图标部分-->
  26. <div slot="thumb" class="thumb_container">
  27. <img src="https://img.shuimuai.com/web/icon_dingdan.png" class="order_icon" alt="">
  28. </div>
  29. <!-- 消费产品-->
  30. <div slot="desc">
  31. <div>
  32. <text class="text-gray">消费产品&nbsp;</text>
  33. <text>{{ order.goods_name }} x 1</text>
  34. </div>
  35. <div class="padding-tb-lg flex justify-between align-center">
  36. <div>
  37. <text class="text-gray">付款方式&nbsp;</text>
  38. <text class="text-bold">微信支付</text>
  39. </div>
  40. <div>
  41. <text class="text-gray">实付款&nbsp;</text>
  42. <text class="text-gray text-xxl">{{ order.price }}</text>
  43. </div>
  44. </div>
  45. </div>
  46. <!-- 联系客服的按钮-->
  47. <div slot="price">
  48. <!-- <van-button type="default" open-type="contact">联系客服</van-button>-->
  49. <button class="cu-btn" open-type="contact">联系客服</button>
  50. </div>
  51. </van-card>
  52. </div>
  53. </template>
  54. <script>
  55. var $this
  56. export default {
  57. name: "order_list",
  58. props: ['status','orders'],
  59. data() {
  60. return {
  61. }
  62. },
  63. methods: {
  64. },
  65. mounted() {
  66. },
  67. created(){
  68. $this = this
  69. }
  70. }
  71. </script>
  72. <style>
  73. @import "order_list.css";
  74. </style>