Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. <!-- 订单列表2 -->
  2. <template>
  3. <filter>
  4. <empty-view v-if="!data.login" mode="permission" content="请先登录再查看订单" btnTxt="立即登录"
  5. @btnClick="$util.navTo('/login/login')">
  6. </empty-view>
  7. <view class="list-wrapper" v-else>
  8. <view class="top-content">
  9. <order-tabbar ref="tabbarRef" :tabs="data.tabsList" v-model:curIndex="data.tabIndex"
  10. v-if="data.tabsList.length > 0"></order-tabbar>
  11. </view>
  12. <order-list-item ref="mescrollItem" :index="data.tabIndex"
  13. :refresh="data.refresh">
  14. </order-list-item>
  15. </view>
  16. </filter>
  17. </template>
  18. <script setup lang="ts">
  19. import orderTabbar from "./components/order-tabbar.vue";
  20. import orderListItem from "./components/order-list-item";
  21. import useOrderList from "@/composables/order/useOrderList";
  22. import filter from '@/components/filter/filter.vue';
  23. const {
  24. data,
  25. tabbarRef
  26. } = useOrderList();
  27. </script>
  28. <style lang="scss">
  29. page {
  30. background: #E9EDF0;
  31. }
  32. :deep(.u-mode-center-box) {
  33. border-radius: 20rpx;
  34. }
  35. </style>
  36. <style lang="scss" scoped>
  37. .top-content {
  38. position: fixed;
  39. left: 0;
  40. z-index: 99999;
  41. background-color: white;
  42. }
  43. .top-menu {
  44. display: flex;
  45. justify-content: space-around;
  46. }
  47. .top-menu .tab {
  48. font-size: 28rpx;
  49. padding: 30rpx 30rpx;
  50. color: #666666;
  51. position: relative;
  52. }
  53. .top-menu .active .border {
  54. position: absolute;
  55. width: 70%;
  56. height: 16rpx;
  57. background: #00b38b;
  58. opacity: 0.3;
  59. bottom: 28rpx;
  60. z-index: -99;
  61. left: 15%;
  62. border-radius: 6rpx;
  63. }
  64. .top-menu .active {
  65. font-weight: bold;
  66. font-size: 32rpx;
  67. color: #0d0f26;
  68. }
  69. .top-menu .active::before {
  70. width: 100%;
  71. height: 16rpx;
  72. background: #00b38b;
  73. opacity: 0.3;
  74. }
  75. .search-layout {
  76. .search-box {
  77. margin: 30rpx 30rpx 0rpx 30rpx;
  78. height: 80rpx;
  79. background: #FFFFFF;
  80. border: 1px solid #DCDCDC;
  81. border-radius: 40rpx;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. box-sizing: border-box;
  86. flex: 1;
  87. }
  88. .search-box .icon {
  89. width: 48rpx;
  90. height: 48rpx;
  91. margin: 0 20rpx;
  92. }
  93. .search-box .search {
  94. flex: 1;
  95. margin-right: 20rpx;
  96. height: 100%;
  97. padding: 0 10rpx;
  98. font-size: 28rpx;
  99. color: #00b38b;
  100. }
  101. .search-btn {
  102. color: white;
  103. background-color: #00B38B;
  104. width: 140rpx;
  105. height: 75rpx;
  106. line-height: 75rpx;
  107. font-size: 32rpx;
  108. border-radius: 40rpx;
  109. text-align: center;
  110. margin-right: 30rpx;
  111. margin-top: 30rpx;
  112. }
  113. }
  114. .item .head {
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. padding: 20rpx 28rpx;
  119. border-bottom: 1px solid #dcdcdc;
  120. }
  121. .item .head {
  122. .head-row {
  123. display: flex;
  124. width: 100%;
  125. justify-content: space-between;
  126. align-items: center;
  127. }
  128. .name {}
  129. .name>text {
  130. font-size: 26rpx;
  131. font-family: Noto Sans S Chinese;
  132. font-weight: 400;
  133. color: #999999;
  134. line-height: 36rpx;
  135. }
  136. }
  137. .item .head .icon {
  138. width: 48rpx;
  139. height: 48rpx;
  140. }
  141. .item .head .name {
  142. display: flex;
  143. align-items: center;
  144. }
  145. .text-green {
  146. font-size: 26rpx;
  147. color: #00b38b;
  148. }
  149. .text-orange {
  150. font-size: 26rpx;
  151. color: #ff8000;
  152. }
  153. .text-black {
  154. font-size: 28rpx;
  155. color: #333;
  156. font-weight: 500;
  157. }
  158. .title {
  159. font-size: 30rpx;
  160. color: #333;
  161. }
  162. .tag-green {
  163. font-size: 22rpx;
  164. height: 40rpx;
  165. line-height: 40rpx;
  166. padding: 0 12rpx;
  167. border-radius: 6rpx;
  168. background: #d9f4ee;
  169. color: #00b38b;
  170. }
  171. .tag-grey {
  172. font-size: 22rpx;
  173. height: 40rpx;
  174. line-height: 40rpx;
  175. padding: 0 12rpx;
  176. border-radius: 6rpx;
  177. background: #e8e8e8;
  178. color: #666;
  179. }
  180. .detail {
  181. display: flex;
  182. justify-content: space-between;
  183. align-items: center;
  184. padding: 30rpx 32rpx;
  185. }
  186. .detail .type {
  187. font-size: 26rpx;
  188. color: #999;
  189. }
  190. .detail .value {
  191. font-size: 26rpx;
  192. color: #333;
  193. }
  194. .finished .detail .value {
  195. color: #999;
  196. }
  197. .detail .odd {
  198. margin: 20rpx 0;
  199. }
  200. .cny {
  201. font-size: 26rpx;
  202. color: #333;
  203. }
  204. .finished .cny {
  205. color: #999;
  206. }
  207. .amount {
  208. font-size: 40rpx;
  209. font-weight: bold;
  210. }
  211. .bottom .amount {
  212. color: #ff8000;
  213. }
  214. .finished .amount {
  215. color: #999;
  216. }
  217. .btns {
  218. position: relative;
  219. display: flex;
  220. align-items: center;
  221. justify-content: flex-end;
  222. border-top: 1px solid #dcdcdc;
  223. margin: 0 30rpx;
  224. padding: 20rpx 0;
  225. }
  226. .bottom {
  227. display: flex;
  228. justify-content: space-between;
  229. align-items: center;
  230. border-top: 1px solid #dcdcdc;
  231. margin: 0 30rpx;
  232. padding: 20rpx 0;
  233. }
  234. .btn {
  235. height: 60rpx;
  236. line-height: 58rpx;
  237. border-radius: 30rpx;
  238. padding: 0 24rpx;
  239. font-size: 23rpx;
  240. box-sizing: border-box;
  241. margin-right: 12rpx;
  242. }
  243. .btns .btn:last-child {
  244. margin: 0;
  245. }
  246. .btns .state {
  247. position: absolute;
  248. left: 0;
  249. font-size: 26rpx;
  250. font-family: Noto Sans S Chinese;
  251. font-weight: 400;
  252. color: #999999;
  253. line-height: 58rpx;
  254. text {
  255. font-size: 26rpx;
  256. font-family: Noto Sans S Chinese;
  257. font-weight: 400;
  258. color: #00B38B;
  259. line-height: 58rpx;
  260. }
  261. }
  262. .btn-primary {
  263. border: 1px solid #00b38b;
  264. color: #00b38b;
  265. }
  266. .btn-disable {
  267. border: 1px solid #999;
  268. color: #999;
  269. }
  270. .btn-normal {
  271. border: 1px solid #dcdcdc;
  272. color: #333;
  273. }
  274. .evaluation {
  275. display: flex;
  276. }
  277. .finished .detail .value {
  278. color: #999;
  279. }
  280. .detail .odd {
  281. margin: 20rpx 0;
  282. }
  283. .cny {
  284. font-size: 26rpx;
  285. color: #333;
  286. }
  287. .finished .cny {
  288. color: #999;
  289. }
  290. .item {
  291. background: #ffffff;
  292. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  293. border-radius: 20rpx;
  294. box-sizing: border-box;
  295. display: flex;
  296. flex-direction: column;
  297. margin: 30rpx 30rpx 0rpx;
  298. }
  299. .bg-white .item {
  300. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  301. }
  302. .item .head {
  303. display: flex;
  304. justify-content: space-between;
  305. align-items: center;
  306. padding: 20rpx 28rpx;
  307. border-bottom: 1px solid #dcdcdc;
  308. }
  309. .item .head {
  310. .head-row {
  311. display: flex;
  312. width: 100%;
  313. justify-content: space-between;
  314. align-items: center;
  315. }
  316. .name {}
  317. .name>text {
  318. font-size: 26rpx;
  319. font-family: Noto Sans S Chinese;
  320. font-weight: 400;
  321. color: #999999;
  322. line-height: 36rpx;
  323. }
  324. }
  325. .item .head .icon {
  326. width: 48rpx;
  327. height: 48rpx;
  328. }
  329. .item .head .name {
  330. display: flex;
  331. align-items: center;
  332. }
  333. </style>