afterSalesManage.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view>
  3. <view class="top-tab">
  4. <view :class="{commodity:follow==1}" class="tab" @click="tabSwitch(1)">
  5. 全部
  6. </view>
  7. <view :class="{commodity:follow==2}" class="tab" @click="tabSwitch(2)">
  8. 待退款
  9. </view>
  10. <view :class="{commodity:follow==3}" class="tab" @click="tabSwitch(3)">
  11. 平台介入
  12. </view>
  13. <view :class="{commodity:follow==4}" class="tab" @click="tabSwitch(4)">
  14. 已退款
  15. </view>
  16. </view>
  17. <view class="center">
  18. <view v-for="item in orderList" :key="item.status">
  19. <DetailCard :itemInfo="item" @toDetail='toDetail' />
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import DetailCard from './component/detailCard.vue'
  26. export default {
  27. components: {
  28. DetailCard
  29. },
  30. data() {
  31. return {
  32. follow: 1,
  33. orderList: [{
  34. name: 'Trinity 自由比格',
  35. status: 0,
  36. headerImg: "https://ts3.cn.mm.bing.net/th?id=OIP-C.uMf5AX3a6yYpIhpEkyDxiQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=2&pid=3.1&rm=2",
  37. orderImg: "https://img12.360buyimg.com/jdcms/s460x460_jfs/t1/226637/16/19995/180517/66696f86Fa90c7d49/3bc094e1eb7aeb12.jpg.avif",
  38. orderDetail: 'OATLY噢麦力 咖啡大师…',
  39. orderPrice: '29.90',
  40. specifications: "咖啡大师燕麦奶250ml*6瓶",
  41. num: 1,
  42. payPrice: '141.00',
  43. remark: '买家急用,仓库尽早发货'
  44. },
  45. {
  46. name: 'Trinity 自由比格',
  47. status: 1,
  48. headerImg: "https://ts3.cn.mm.bing.net/th?id=OIP-C.uMf5AX3a6yYpIhpEkyDxiQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=2&pid=3.1&rm=2",
  49. orderImg: "https://img12.360buyimg.com/jdcms/s460x460_jfs/t1/226637/16/19995/180517/66696f86Fa90c7d49/3bc094e1eb7aeb12.jpg.avif",
  50. orderDetail: 'OATLY噢麦力 咖啡大师…',
  51. orderPrice: '29.90',
  52. specifications: "咖啡大师燕麦奶250ml*6瓶",
  53. num: 1,
  54. payPrice: '141.00',
  55. remark: '买家急用,仓库尽早发货'
  56. },
  57. {
  58. name: 'Trinity 自由比格',
  59. status: 2,
  60. headerImg: "https://ts3.cn.mm.bing.net/th?id=OIP-C.uMf5AX3a6yYpIhpEkyDxiQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=2&pid=3.1&rm=2",
  61. orderImg: "https://img12.360buyimg.com/jdcms/s460x460_jfs/t1/226637/16/19995/180517/66696f86Fa90c7d49/3bc094e1eb7aeb12.jpg.avif",
  62. orderDetail: 'OATLY噢麦力 咖啡大师…',
  63. orderPrice: '29.90',
  64. specifications: "咖啡大师燕麦奶250ml*6瓶",
  65. num: 1,
  66. payPrice: '141.00',
  67. remark: '买家急用,仓库尽早发货'
  68. },
  69. {
  70. name: 'Trinity 自由比格',
  71. status: 3,
  72. headerImg: "https://ts3.cn.mm.bing.net/th?id=OIP-C.uMf5AX3a6yYpIhpEkyDxiQAAAA&w=250&h=250&c=8&rs=1&qlt=90&o=6&dpr=2&pid=3.1&rm=2",
  73. orderImg: "https://img12.360buyimg.com/jdcms/s460x460_jfs/t1/226637/16/19995/180517/66696f86Fa90c7d49/3bc094e1eb7aeb12.jpg.avif",
  74. orderDetail: 'OATLY噢麦力 咖啡大师…',
  75. orderPrice: '29.90',
  76. specifications: "咖啡大师燕麦奶250ml*6瓶",
  77. num: 1,
  78. payPrice: '141.00',
  79. remark: '买家急用,仓库尽早发货'
  80. },
  81. ]
  82. }
  83. },
  84. methods: {
  85. tabSwitch(num) {
  86. this.follow = num
  87. },
  88. toDetail(){
  89. uni.navigateTo({
  90. url:"/pageD/afterSalesDetail/afterSalesDetail"
  91. })
  92. }
  93. },
  94. mounted() {
  95. uni.setNavigationBarTitle({
  96. title: "售后订单"
  97. })
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. .top-tab {
  103. display: flex;
  104. justify-content: space-around;
  105. overflow-y: auto;
  106. padding-bottom: 10rpx;
  107. // flex-shrink: 1;
  108. // width: 100vw;
  109. background-color: #fff;
  110. .tab {
  111. margin-right: 40rpx;
  112. font-size: 26rpx;
  113. color: rgba(34, 34, 34, .8);
  114. flex-shrink: 0;
  115. height: 44rpx;
  116. display: flex;
  117. align-items: flex-end;
  118. }
  119. .commodity {
  120. position: relative;
  121. font-weight: 600;
  122. font-size: 32rpx;
  123. }
  124. .commodity::before {
  125. content: '';
  126. display: block;
  127. height: 8rpx;
  128. width: 100%;
  129. background: linear-gradient(to right, #f83224, #fff);
  130. position: absolute;
  131. bottom: 5rpx;
  132. opacity: 0.8;
  133. }
  134. }
  135. .center {
  136. padding: 20rpx 24rpx;
  137. }
  138. </style>