猎豆优选小程序

orderList.vue 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view class="orderWarp">
  3. <view class="orderBox" v-for="item in list" :key="item.goods_id">
  4. <view class="imgBox"><image class="orderImag" :src="item.img" mode="widthFix"></image></view>
  5. <view class="">
  6. <view class="title">
  7. <image class="shop-icon" v-if="item.shop_type == 0" src="https://ld.726p.com/ldyx_static/imgs/icon-tb.png" />
  8. <image class="shop-icon" v-else-if="item.shop_type == 1" src="https://ld.726p.com/ldyx_static/imgs/icon-tmall.png" />
  9. <image class="shop-icon" v-else-if="item.shop_type == 4" src="https://ld.726p.com/ldyx_static/imgs/jd-icon.png" />
  10. <image class="shop-icon" v-else-if="item.shop_type == 5" src="https://ld.726p.com/ldyx_static/imgs/icon-dy.png" />
  11. <image class="shop-icon" v-else-if="item.shop_type == 6" src="https://ld.726p.com/ldyx_static/imgs/pdd-icon.png" />
  12. {{item.name || '-'}}
  13. </view>
  14. <view class="time">
  15. <text>创建日: {{item.order_create_at || '-'}}</text>
  16. <text v-if="item.maintain_power != 0">维权申请</text>
  17. <text v-else-if="item.status == 0">已失效</text>
  18. <text v-else-if="item.status == 1">已付款</text>
  19. <text v-else>结算日: {{item.order_balance_at || '-'}}</text>
  20. </view>
  21. <view class="money">
  22. <text>付款金额: ¥<text class="f30">{{item.money || '-'}}</text></text>
  23. <text class="c-2564e2" v-if="item.status == 1">预估佣金: ¥<text class="f30">{{item.rebate || '-'}}</text></text>
  24. <text class="c-f13641" v-else :class="item.status == '0' ? 'text_line' : ''">已结算佣金: ¥<text class="f30">{{item.rebate || '-'}}</text></text>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="loadinfo" v-if="list.length > 0 && !loading && noMoreShow">没有更多了</view>
  29. <!-- <view class="loadinfo"><u-loading size="36" :show="loading" mode="flower"></u-loading></view> -->
  30. <!-- 无数据展示 -->
  31. <view class="no-data-blcok" v-if="list.length <= 0 && !loading" style="margin-top: 200rpx;">
  32. <image class="no-data-img" src="https://ld.726p.com/ldyx_static/imgs/no-order.png" mode="widthFix"></image>
  33. <view class="no-data-hint">您还没有订单~</view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. props:{
  40. list:{
  41. type:Array,
  42. default:[]
  43. },
  44. noMoreShow:{
  45. type:Boolean,
  46. default:false
  47. },
  48. loading:{
  49. type:Boolean,
  50. default:true
  51. },
  52. },
  53. data(){
  54. return{
  55. }
  56. },
  57. methods: {
  58. },
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .orderWarp{
  63. .orderBox{
  64. display: flex;
  65. align-items: center;
  66. padding: 20rpx;
  67. border-bottom: 3rpx solid #f1f1f1;
  68. background: #fff;
  69. .imgBox{
  70. width: 180rpx;
  71. height: 180rpx;
  72. flex-shrink: 0;
  73. margin-right: 30rpx;
  74. .orderImag{
  75. width: 100%;
  76. height: 100%;
  77. border-radius: 12rpx;
  78. }
  79. }
  80. .title{
  81. color: #333;
  82. font-size: 30rpx;
  83. line-height: 40rpx;
  84. text-overflow: ellipsis;
  85. display: -webkit-box;
  86. -webkit-line-clamp: 2;
  87. overflow: hidden;
  88. /*! autoprefixer: off */
  89. -webkit-box-orient: vertical;
  90. /*! autoprefixer: on */
  91. word-break: break-all ;
  92. .shop-icon{
  93. width: 30rpx;
  94. height: 30rpx;
  95. border-radius: 6rpx;
  96. display: inline-block;
  97. margin-right: 6rpx;
  98. margin-top: -7rpx;
  99. vertical-align: middle;//解决图片下边框间隙问题
  100. }
  101. }
  102. .time{
  103. margin-top: 16rpx;
  104. font-size: 24rpx;
  105. color: #666;
  106. display: flex;
  107. align-items: center;
  108. text{
  109. margin-right: 20rpx;
  110. }
  111. }
  112. .money{
  113. font-size: 20rpx;
  114. color: #333;
  115. display: flex;
  116. align-items: center;
  117. justify-content: space-between;
  118. margin-top: 8rpx;
  119. .c-f13641{
  120. color: #f13641;
  121. }
  122. .c-2564e2{
  123. color: #2564e2;
  124. }
  125. .text_line{
  126. text-decoration:line-through
  127. }
  128. .f30{
  129. font-size: 30rpx;
  130. }
  131. }
  132. }
  133. .loadinfo{
  134. text-align: center;
  135. color: #666;
  136. font-size: 28rpx;
  137. margin: 20rpx 0;
  138. }
  139. }
  140. </style>