moban.vue 2.6 KB

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