index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view style="padding-top: 200rpx; width: 100vw; height: 100vh; overflow: hidden">
  3. <view style="width: 100%; height: 100%; overflow:scroll">
  4. <view class="Wrapper">
  5. <image src="/static/img/Location.png" class="Wrapper-img" />
  6. <span class="Wrapper-content">重庆</span>
  7. <vie class="input-container">
  8. <up-input v-model="value" @click.native="goToDetail" placeholder="请输入内容" prefixIcon="search"
  9. :customStyle="inputStyle"></up-input>
  10. </vie>
  11. <image src="/static/Icon - 消息通知.png" class="Wrapper-img" />
  12. </view>
  13. <!-- 轮播图片 -->
  14. <view class="custom-swiper">
  15. <up-swiper :list="list3" indicator indicatorMode="line" circular></up-swiper>
  16. </view>
  17. <!-- 服务选择 -->
  18. <Client></Client>
  19. <!-- 瀑布流 -->
  20. <volunteerSide></volunteerSide>
  21. <view class="font-title index-title">月度排名</view>
  22. <List :data="data" @refresh="getList" v-if="data.length > 0" :type="'ranking'"/>
  23. <view v-else class="empty-null">
  24. <img src="/static/empty/订单为空.png" alt="">
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script setup>
  30. import {
  31. ref,
  32. onMounted
  33. } from 'vue';
  34. import {
  35. Client
  36. } from "@/pages/Client/new_file.vue"
  37. import volunteerSide from "@/pages/Volunteerside/Side_index.vue"
  38. import List from './order/list/index.vue';
  39. const value = ref(''); //搜索
  40. const list3 = ref([
  41. '/static/img/68c51cda626f732e5a6a782e245ac255.jpeg',
  42. '/static/img/78f89f319f760ba84a5b86916612a99d.jpeg',
  43. '/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg',
  44. ]);
  45. const inputStyle = { //input輸入框樣式設置
  46. borderRadius: '140rpx',
  47. border: '1rpx solid #ccc',
  48. height: '70rpx',
  49. paddingLeft: '30rpx',
  50. width: '540rpx'
  51. }
  52. const data = ref([
  53. {
  54. }
  55. ]);
  56. </script>
  57. <style scoped>
  58. .Wrapper {
  59. display: flex;
  60. align-items: center;
  61. gap: 10rpx;
  62. }
  63. .Wrapper-img {
  64. width: 50rpx;
  65. height: 50rpx;
  66. margin-left: 10rpx;
  67. }
  68. .Wrapper-content {
  69. color: rgba(16, 16, 16, 1);
  70. font-size: 25rpx;
  71. font-family: PingFangSC-regular;
  72. line-height: 20rpx;
  73. }
  74. .custom-swiper {
  75. width: 710rpx;
  76. height: 100rpx;
  77. margin-top: 20rpx;
  78. margin-left: 20rpx;
  79. }
  80. .index-title {
  81. padding: 0 12px 12px;
  82. }
  83. .index-title::before {
  84. content: ' ';
  85. width: 5px;
  86. height: 15px;
  87. background: rgba(255, 87, 4, 1);
  88. display: inline-block;
  89. margin-right: 4px;
  90. position: relative;
  91. top: 1px;
  92. }
  93. </style>