index.vue 1.8 KB

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