index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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>
  22. </view>
  23. </template>
  24. <script setup>
  25. import {
  26. ref,
  27. onMounted
  28. } from 'vue';
  29. import {
  30. Client
  31. } from "@/pages/Client/new_file.vue"
  32. import volunteerSide from "@/pages/Volunteerside/Side_index.vue"
  33. const value = ref(''); //搜索
  34. const list3 = ref([
  35. '/static/img/68c51cda626f732e5a6a782e245ac255.jpeg',
  36. '/static/img/78f89f319f760ba84a5b86916612a99d.jpeg',
  37. '/static/img/e88c34398a054556e59659f4b7b83e8e.jpeg',
  38. ]);
  39. const inputStyle = { //input輸入框樣式設置
  40. borderRadius: '140rpx',
  41. border: '1rpx solid #ccc',
  42. height: '70rpx',
  43. paddingLeft: '30rpx',
  44. width: '540rpx'
  45. }
  46. </script>
  47. <style scoped>
  48. .Wrapper {
  49. display: flex;
  50. align-items: center;
  51. gap: 10rpx;
  52. }
  53. .Wrapper-img {
  54. width: 50rpx;
  55. height: 50rpx;
  56. margin-left: 10rpx;
  57. }
  58. .Wrapper-content {
  59. color: rgba(16, 16, 16, 1);
  60. font-size: 25rpx;
  61. font-family: PingFangSC-regular;
  62. line-height: 20rpx;
  63. }
  64. .custom-swiper {
  65. width: 710rpx;
  66. height: 100rpx;
  67. margin-top: 20rpx;
  68. margin-left: 20rpx;
  69. }
  70. </style>