You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 2 година
пре 2 година
пре 1 година
пре 2 година
пре 2 година
пре 2 година
пре 1 година
пре 7 месеци
пре 1 година
пре 7 месеци
пре 1 година
пре 2 година
пре 1 година
пре 2 година
пре 2 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 6 месеци
пре 1 година
пре 1 година
пре 2 година
пре 6 месеци
пре 1 година
пре 6 месеци
пре 1 година
пре 1 година
пре 6 месеци
пре 2 година
пре 2 година
пре 2 година
пре 7 месеци
пре 2 година
пре 2 година
пре 2 година
пре 1 година
пре 1 година
пре 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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. import useOrderListItem from "@/composables/order/useOrderListItem";
  24. import { PageData } from "@/datas/enum";
  25. import {
  26. reactive,
  27. } from "vue";
  28. const state = reactive({
  29. index: 0
  30. })
  31. const {
  32. data,
  33. tabbarRef
  34. } = useOrderList();
  35. //请求参数
  36. const params = reactive({
  37. pageNum: PageData.NUM,
  38. pageSize: PageData.SIZE,
  39. total: 0,
  40. status: 'more',
  41. reload: false,
  42. })
  43. const props = defineProps({
  44. index: {
  45. type: Number,
  46. default() {
  47. return 0
  48. }
  49. },
  50. refresh: { //是否刷新列表
  51. type: Boolean,
  52. default: true
  53. }
  54. })
  55. </script>
  56. <style lang="scss">
  57. page {
  58. background: #E9EDF0;
  59. }
  60. :deep(.u-mode-center-box) {
  61. border-radius: 20rpx;
  62. }
  63. </style>
  64. <style lang="scss" scoped>
  65. .top-content {
  66. position: fixed;
  67. left: 0;
  68. z-index: 99999;
  69. background-color: white;
  70. }
  71. .top-menu {
  72. display: flex;
  73. justify-content: space-around;
  74. }
  75. .top-menu .tab {
  76. font-size: 28rpx;
  77. padding: 30rpx 30rpx;
  78. color: #666666;
  79. position: relative;
  80. }
  81. .top-menu .active .border {
  82. position: absolute;
  83. width: 70%;
  84. height: 16rpx;
  85. background: #00b38b;
  86. opacity: 0.3;
  87. bottom: 28rpx;
  88. z-index: -99;
  89. left: 15%;
  90. border-radius: 6rpx;
  91. }
  92. .top-menu .active {
  93. font-weight: bold;
  94. font-size: 32rpx;
  95. color: #0d0f26;
  96. }
  97. .top-menu .active::before {
  98. width: 100%;
  99. height: 16rpx;
  100. background: #00b38b;
  101. opacity: 0.3;
  102. }
  103. .search-layout {
  104. .search-box {
  105. margin: 30rpx 30rpx 0rpx 30rpx;
  106. height: 80rpx;
  107. background: #FFFFFF;
  108. border: 1px solid #DCDCDC;
  109. border-radius: 40rpx;
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. box-sizing: border-box;
  114. flex: 1;
  115. }
  116. .search-box .icon {
  117. width: 48rpx;
  118. height: 48rpx;
  119. margin: 0 20rpx;
  120. }
  121. .search-box .search {
  122. flex: 1;
  123. margin-right: 20rpx;
  124. height: 100%;
  125. padding: 0 10rpx;
  126. font-size: 28rpx;
  127. color: #00b38b;
  128. }
  129. .search-btn {
  130. color: white;
  131. background-color: #00B38B;
  132. width: 140rpx;
  133. height: 75rpx;
  134. line-height: 75rpx;
  135. font-size: 32rpx;
  136. border-radius: 40rpx;
  137. text-align: center;
  138. margin-right: 30rpx;
  139. margin-top: 30rpx;
  140. }
  141. }
  142. .item .head {
  143. display: flex;
  144. justify-content: space-between;
  145. align-items: center;
  146. padding: 20rpx 28rpx;
  147. border-bottom: 1px solid #dcdcdc;
  148. }
  149. .item .head {
  150. .head-row {
  151. display: flex;
  152. width: 100%;
  153. justify-content: space-between;
  154. align-items: center;
  155. }
  156. .name {}
  157. .name>text {
  158. font-size: 26rpx;
  159. font-family: Noto Sans S Chinese;
  160. font-weight: 400;
  161. color: #999999;
  162. line-height: 36rpx;
  163. }
  164. }
  165. .item .head .icon {
  166. width: 48rpx;
  167. height: 48rpx;
  168. }
  169. .item .head .name {
  170. display: flex;
  171. align-items: center;
  172. }
  173. .text-green {
  174. font-size: 26rpx;
  175. color: #00b38b;
  176. }
  177. .text-orange {
  178. font-size: 26rpx;
  179. color: #ff8000;
  180. }
  181. .text-black {
  182. font-size: 28rpx;
  183. color: #333;
  184. font-weight: 500;
  185. }
  186. .title {
  187. font-size: 30rpx;
  188. color: #333;
  189. }
  190. .tag-green {
  191. font-size: 22rpx;
  192. height: 40rpx;
  193. line-height: 40rpx;
  194. padding: 0 12rpx;
  195. border-radius: 6rpx;
  196. background: #d9f4ee;
  197. color: #00b38b;
  198. }
  199. .tag-grey {
  200. font-size: 22rpx;
  201. height: 40rpx;
  202. line-height: 40rpx;
  203. padding: 0 12rpx;
  204. border-radius: 6rpx;
  205. background: #e8e8e8;
  206. color: #666;
  207. }
  208. .detail {
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. padding: 30rpx 32rpx;
  213. }
  214. .detail .type {
  215. font-size: 26rpx;
  216. color: #999;
  217. }
  218. .detail .value {
  219. font-size: 26rpx;
  220. color: #333;
  221. }
  222. .finished .detail .value {
  223. color: #999;
  224. }
  225. .detail .odd {
  226. margin: 20rpx 0;
  227. }
  228. .cny {
  229. font-size: 26rpx;
  230. color: #333;
  231. }
  232. .finished .cny {
  233. color: #999;
  234. }
  235. .amount {
  236. font-size: 40rpx;
  237. font-weight: bold;
  238. }
  239. .bottom .amount {
  240. color: #ff8000;
  241. }
  242. .finished .amount {
  243. color: #999;
  244. }
  245. .btns {
  246. position: relative;
  247. display: flex;
  248. align-items: center;
  249. justify-content: flex-end;
  250. border-top: 1px solid #dcdcdc;
  251. margin: 0 30rpx;
  252. padding: 20rpx 0;
  253. }
  254. .bottom {
  255. display: flex;
  256. justify-content: space-between;
  257. align-items: center;
  258. border-top: 1px solid #dcdcdc;
  259. margin: 0 30rpx;
  260. padding: 20rpx 0;
  261. }
  262. .btn {
  263. height: 60rpx;
  264. line-height: 58rpx;
  265. border-radius: 30rpx;
  266. padding: 0 24rpx;
  267. font-size: 23rpx;
  268. box-sizing: border-box;
  269. margin-right: 12rpx;
  270. }
  271. .btns .btn:last-child {
  272. margin: 0;
  273. }
  274. .btns .state {
  275. position: absolute;
  276. left: 0;
  277. font-size: 26rpx;
  278. font-family: Noto Sans S Chinese;
  279. font-weight: 400;
  280. color: #999999;
  281. line-height: 58rpx;
  282. text {
  283. font-size: 26rpx;
  284. font-family: Noto Sans S Chinese;
  285. font-weight: 400;
  286. color: #00B38B;
  287. line-height: 58rpx;
  288. }
  289. }
  290. .btn-primary {
  291. border: 1px solid #00b38b;
  292. color: #00b38b;
  293. }
  294. .btn-disable {
  295. border: 1px solid #999;
  296. color: #999;
  297. }
  298. .btn-normal {
  299. border: 1px solid #dcdcdc;
  300. color: #333;
  301. }
  302. .evaluation {
  303. display: flex;
  304. }
  305. .finished .detail .value {
  306. color: #999;
  307. }
  308. .detail .odd {
  309. margin: 20rpx 0;
  310. }
  311. .cny {
  312. font-size: 26rpx;
  313. color: #333;
  314. }
  315. .finished .cny {
  316. color: #999;
  317. }
  318. .item {
  319. background: #ffffff;
  320. box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8);
  321. border-radius: 20rpx;
  322. box-sizing: border-box;
  323. display: flex;
  324. flex-direction: column;
  325. margin: 30rpx 30rpx 0rpx;
  326. }
  327. .bg-white .item {
  328. box-shadow: 0rpx 4rpx 13rpx 3rpx rgba(223, 223, 223, 0.8);
  329. }
  330. .item .head {
  331. display: flex;
  332. justify-content: space-between;
  333. align-items: center;
  334. padding: 20rpx 28rpx;
  335. border-bottom: 1px solid #dcdcdc;
  336. }
  337. .item .head {
  338. .head-row {
  339. display: flex;
  340. width: 100%;
  341. justify-content: space-between;
  342. align-items: center;
  343. }
  344. .name {}
  345. .name>text {
  346. font-size: 26rpx;
  347. font-family: Noto Sans S Chinese;
  348. font-weight: 400;
  349. color: #999999;
  350. line-height: 36rpx;
  351. }
  352. }
  353. .item .head .icon {
  354. width: 48rpx;
  355. height: 48rpx;
  356. }
  357. .item .head .name {
  358. display: flex;
  359. align-items: center;
  360. }
  361. </style>