index.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 v-if="userType == '2'" class="serve-monthly-ranking">
  22. <view class="font-title index-title">月度排名</view>
  23. <List :data="data" @refresh="getList" v-if="data.length > 0" :type="'ranking'" />
  24. <view v-else class="empty-null">
  25. <img src="/static/empty/订单为空.png" alt="">
  26. </view>
  27. <!-- <view class="serve-title index-title">本月热门服务排名</view> -->
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script setup>
  33. import {
  34. ref,
  35. onMounted
  36. } from 'vue';
  37. import {
  38. Client
  39. } from "@/pages/Client/new_file.vue"
  40. import volunteerSide from "@/pages/Volunteerside/Side_index.vue"
  41. import List from '@/pages_classify/components/orderList/index.vue';
  42. const value = ref(''); //搜索
  43. const userType = uni.getStorageSync('userType') //读取本地存储
  44. // 用户/志愿者 识别标识
  45. const userOrWorker = uni.getStorageSync('storage_data').vuex_userOrWorker //读取本地存储
  46. const list3 = ref([
  47. '/static/img/68c51cda626f732e5a6a782e245ac255.jpeg',
  48. '/static/img/78f89f319f760ba84a5b86916612a99d.jpeg',
  49. '/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg',
  50. ]);
  51. const inputStyle = { //input輸入框樣式設置
  52. borderRadius: '140rpx',
  53. border: '1rpx solid #ccc',
  54. height: '70rpx',
  55. paddingLeft: '30rpx',
  56. width: '540rpx'
  57. }
  58. const data = ref([{
  59. }]);
  60. </script>
  61. <style scoped>
  62. .Wrapper {
  63. display: flex;
  64. align-items: center;
  65. gap: 10rpx;
  66. }
  67. .Wrapper-img {
  68. width: 50rpx;
  69. height: 50rpx;
  70. margin-left: 10rpx;
  71. }
  72. .Wrapper-content {
  73. color: rgba(16, 16, 16, 1);
  74. font-size: 25rpx;
  75. font-family: PingFangSC-regular;
  76. line-height: 20rpx;
  77. }
  78. .custom-swiper {
  79. width: 710rpx;
  80. height: 100rpx;
  81. margin-top: 20rpx;
  82. margin-left: 20rpx;
  83. }
  84. .index-title {
  85. padding: 0 12px 12px;
  86. margin-bottom: 16px;
  87. }
  88. .index-title::before {
  89. content: ' ';
  90. width: 5px;
  91. height: 15px;
  92. background: rgba(255, 87, 4, 1);
  93. display: inline-block;
  94. margin-right: 4px;
  95. position: relative;
  96. top: 1px;
  97. }
  98. .serve-monthly-ranking {
  99. margin-bottom: 16px;
  100. }
  101. </style>