order.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <view class="page">
  3. <view class="tab-sec align-center justify-around">
  4. <view class="tab-wrap" :class="{active:tabCurrentIndex === idx}" v-for="(item,idx) in tabs" :key="idx">
  5. {{item.name}}
  6. </view>
  7. </view>
  8. <view class="content-sec">
  9. <view class="item-wrap flex-col" v-for="(item,idx) in 3">
  10. <view class="flex-row justify-between group_3">
  11. <text class="text_5">订单号:M1569878</text>
  12. <text class="text_7">进行中</text>
  13. </view>
  14. <view class="flex-row group_4">
  15. <image
  16. src="https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/62a039a05a7e3f0310646cb4/62a0461551588f0011f85200/16615024873807471335.png"
  17. class="image"
  18. />
  19. <view class="flex-col group_5">
  20. <text class="text_9">幸福西饼Rice盲盒</text>
  21. <view class="group_6">
  22. <text class="text_11">随机获得四拼蛋糕,奶油慕斯蛋</text>
  23. <text class="text_13">糕二选一</text>
  24. </view>
  25. <text class="text_15">精致蛋挞、南瓜蛋糕二选一</text>
  26. </view>
  27. <view class="flex-col items-end group_7">
  28. <text class="text_17">¥80.40</text>
  29. <text class="text_19">×1</text>
  30. </view>
  31. </view>
  32. <view class="flex-row justify-end group_8">
  33. <view class="flex-col items-center text-wrapper_1"><text class="text_21">申请退款</text></view>
  34. <view class="flex-col items-center text-wrapper_2"><text class="text_23">确认取货</text></view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. tabs:[
  45. {name:'全部',type:-1,loadingType: 'more', list: [], page: 1,loaded:false,},
  46. {name:'进行中',type:-1,loadingType: 'more', list: [], page: 1,loaded:false,},
  47. {name:'已完成',type:-1,loadingType: 'more', list: [], page: 1,loaded:false,},
  48. {name:'已取消',type:-1,loadingType: 'more', list: [], page: 1,loaded:false,},
  49. ],
  50. reqData:{type:''},
  51. pageSize: 20,
  52. tabCurrentIndex: 0,
  53. };
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. page{
  59. background-color: #f8f8f8;
  60. }
  61. .tab-sec{
  62. position: relative;
  63. height: 89rpx;
  64. }
  65. .tab-wrap{
  66. height: 89rpx;
  67. line-height: 89rpx;
  68. font-size: 26rpx;
  69. font-family: PingFang SC;
  70. font-weight: 500;
  71. color: #333333;
  72. &.active{
  73. color:$base-color;
  74. &::after{
  75. content: '';
  76. left: 50%;
  77. transform: translateX(-50%);
  78. bottom: 24rpx;
  79. width: 27rpx;
  80. height: 3rpx;
  81. background: #92B99C;
  82. }
  83. }
  84. }
  85. .content-sec{
  86. .item-wrap{
  87. width: 690rpx;
  88. margin:0 auto 24rpx;
  89. padding-bottom: 24rpx;
  90. background-color: #ffffff;
  91. box-shadow: 0px 6rpx 10rpx #2a2a2a14;
  92. border-radius: 20rpx;
  93. }
  94. .item-wrap:not(:first-of-type) {
  95. margin-top: 24rpx;
  96. }
  97. .group_3 {
  98. padding: 24rpx 20rpx 24rpx 25rpx;
  99. border-bottom: solid 1rpx #0000000f;
  100. }
  101. .text_5 {
  102. margin-top: 9rpx;
  103. color: #333333;
  104. font-size: 30rpx;
  105. font-family: PingFang;
  106. line-height: 28rpx;
  107. }
  108. .text_7 {
  109. margin-bottom: 10rpx;
  110. color: #92b99c;
  111. font-size: 28rpx;
  112. font-family: PingFang;
  113. line-height: 27rpx;
  114. }
  115. .group_4 {
  116. margin-top: 23rpx;
  117. padding-left: 24rpx;
  118. padding-right: 17rpx;
  119. }
  120. .image {
  121. flex-shrink: 0;
  122. width: 154rpx;
  123. height: 154rpx;
  124. }
  125. .group_5 {
  126. margin-left: 23rpx;
  127. margin-bottom: 5rpx;
  128. flex: 1 1 auto;
  129. }
  130. .text_9 {
  131. align-self: flex-start;
  132. color: #333333;
  133. font-size: 30rpx;
  134. font-family: PingFang;
  135. line-height: 29rpx;
  136. }
  137. .group_6 {
  138. margin-top: 15.5rpx;
  139. line-height: 37rpx;
  140. }
  141. .text_11 {
  142. color: #999999;
  143. font-size: 24rpx;
  144. font-family: PingFang;
  145. line-height: 37rpx;
  146. }
  147. .text_13 {
  148. color: #999999;
  149. font-size: 24rpx;
  150. font-family: PingFang;
  151. line-height: 37rpx;
  152. }
  153. .text_15 {
  154. margin-top: 8.5rpx;
  155. align-self: flex-start;
  156. color: #999999;
  157. font-size: 24rpx;
  158. font-family: PingFang;
  159. line-height: 23rpx;
  160. }
  161. .group_7 {
  162. margin-left: 3rpx;
  163. flex-shrink: 0;
  164. }
  165. .text_17 {
  166. color: #ff3e3e;
  167. font-size: 30rpx;
  168. font-family: PingFang;
  169. line-height: 23rpx;
  170. }
  171. .text_19 {
  172. margin-right: 14rpx;
  173. margin-top: 16rpx;
  174. color: #999999;
  175. font-size: 24rpx;
  176. font-family: PingFang;
  177. line-height: 18rpx;
  178. }
  179. .group_8 {
  180. margin-top: 32rpx;
  181. padding: 0 20rpx;
  182. }
  183. .text-wrapper_1 {
  184. margin-right: 23rpx;
  185. padding: 16rpx 0 19rpx;
  186. border-radius: 10rpx;
  187. width: 154rpx;
  188. height: 64rpx;
  189. border: solid 1rpx #92b99c;
  190. }
  191. .text_21 {
  192. color: #92b99c;
  193. font-size: 28rpx;
  194. font-family: PingFang;
  195. line-height: 27rpx;
  196. }
  197. .text-wrapper_2 {
  198. padding: 16rpx 0 19rpx;
  199. border-radius: 10rpx;
  200. width: 154rpx;
  201. height: 64rpx;
  202. border: solid 1rpx #92b99c;
  203. }
  204. .text_23 {
  205. color: #92b99c;
  206. font-size: 28rpx;
  207. font-family: PingFang;
  208. line-height: 27rpx;
  209. }
  210. }
  211. </style>