moban.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!-- 参考模板 -->
  2. <template>
  3. <s-layout class="homepage-wrap ss-w-100 box-sizing" title="订单" navbar="custom"
  4. tabbar="/pages/XDHome/orderInfoList/orderInfoList">
  5. <view class="body" :style="'padding-top:' + bottomHeight">
  6. <!-- 导航 -->
  7. <view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative">
  8. <view class="ss-flex-2 ss-col-center">
  9. <text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
  10. <view style="margin-left: 15rpx; color: #3D444E; font-size: 28rpx">订单列表</view>
  11. </view>
  12. <view class="ss-flex-1"></view>
  13. <text class="textIcon icon-kefu icon-navigation"></text>
  14. <text class="textIcon icon-tongzhiguanli icon-navigation" style="margin-left: 30rpx"></text>
  15. </view>
  16. <!-- 中部 -->
  17. <view class="list-wrap">
  18. <scroll-view scroll-y="true" class="list">
  19. <view class="list-scroll-view">
  20. <view style="width:100%;height:200rpx;background-color:#fff;margin-top:20rpx;" v-for="i in 10"
  21. :key="i"></view>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. </view>
  26. </s-layout>
  27. </template>
  28. <script setup>
  29. import {
  30. reactive,
  31. ref
  32. } from 'vue';
  33. import {
  34. computed
  35. } from 'vue';
  36. import {
  37. onLoad,
  38. onPageScroll,
  39. onPullDownRefresh,
  40. onReady,
  41. onReachBottom,
  42. onShow,
  43. } from '@dcloudio/uni-app';
  44. import sheep from '@/sheep';
  45. import $share from '@/sheep/platform/share';
  46. // 隐藏原生tabBar
  47. // uni.hideTabBar();
  48. // 返回首页
  49. const backPage = async () => {
  50. uni.reLaunch({
  51. url: '/pages/XDHome/homePage/homePage',
  52. });
  53. };
  54. const bottomHeight = ref('0rpx');
  55. // #ifdef APP-PlUS
  56. //获取顶部安全距离
  57. const app = uni.getSystemInfoSync();
  58. const bottomHeightOne = app.statusBarHeight + 'rpx';
  59. bottomHeight.value = bottomHeightOne
  60. // #endif
  61. </script>
  62. <style scoped lang="scss">
  63. .icon-navigation {
  64. font-size: 32rpx;
  65. color: #3D444E;
  66. font-weight: 700;
  67. }
  68. // 上中下布局样式
  69. .body {
  70. display: flex;
  71. flex-direction: column;
  72. background-color: #EEEEF0;
  73. height: calc(100vh - 50px);
  74. box-sizing: border-box;
  75. }
  76. .head {
  77. text-align: center;
  78. }
  79. // 中部滚动
  80. .list-wrap {
  81. flex-grow: 1;
  82. position: relative;
  83. width: 95%;
  84. margin-left: 2.5%;
  85. box-sizing: border-box;
  86. }
  87. .list {
  88. position: absolute;
  89. top: 0;
  90. left: 0;
  91. right: 0;
  92. bottom: 50rpx;
  93. padding: 10rpx;
  94. border-radius: 15rpx;
  95. box-sizing: border-box;
  96. }
  97. .list-scroll-view {
  98. width: 100%;
  99. margin-bottom: 20rpx;
  100. box-sizing: border-box;
  101. }
  102. .course-card {
  103. width: 47vw;
  104. margin-top: 10px;
  105. margin-bottom: 10px;
  106. }
  107. // 底部
  108. .tools {
  109. display: flex;
  110. flex-direction: row;
  111. justify-content: space-between;
  112. }
  113. .tools-item {
  114. width: 45px;
  115. text-align: center;
  116. font-size: 14px;
  117. padding: 20px;
  118. }
  119. </style>