index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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">
  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>
  28. </view>
  29. </view>
  30. </template>
  31. <script setup>
  32. import {
  33. ref,
  34. onMounted
  35. } from 'vue';
  36. import {
  37. Client
  38. } from "@/pages/Client/new_file.vue"
  39. import volunteerSide from "@/pages/Volunteerside/Side_index.vue"
  40. import List from './order/list/index.vue';
  41. const value = ref(''); //搜索
  42. const userType = uni.getStorageSync('userType') //读取本地存储
  43. const list3 = ref([
  44. '/static/img/68c51cda626f732e5a6a782e245ac255.jpeg',
  45. '/static/img/78f89f319f760ba84a5b86916612a99d.jpeg',
  46. '/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg',
  47. ]);
  48. const inputStyle = { //input輸入框樣式設置
  49. borderRadius: '140rpx',
  50. border: '1rpx solid #ccc',
  51. height: '70rpx',
  52. paddingLeft: '30rpx',
  53. width: '540rpx'
  54. }
  55. const data = ref([
  56. {
  57. }
  58. ]);
  59. </script>
  60. <style scoped>
  61. .Wrapper {
  62. display: flex;
  63. align-items: center;
  64. gap: 10rpx;
  65. }
  66. .Wrapper-img {
  67. width: 50rpx;
  68. height: 50rpx;
  69. margin-left: 10rpx;
  70. }
  71. .Wrapper-content {
  72. color: rgba(16, 16, 16, 1);
  73. font-size: 25rpx;
  74. font-family: PingFangSC-regular;
  75. line-height: 20rpx;
  76. }
  77. .custom-swiper {
  78. width: 710rpx;
  79. height: 100rpx;
  80. margin-top: 20rpx;
  81. margin-left: 20rpx;
  82. }
  83. .index-title {
  84. padding: 0 12px 12px;
  85. }
  86. .index-title::before {
  87. content: ' ';
  88. width: 5px;
  89. height: 15px;
  90. background: rgba(255, 87, 4, 1);
  91. display: inline-block;
  92. margin-right: 4px;
  93. position: relative;
  94. top: 1px;
  95. }
  96. </style>