tj
2025-05-28 6ef1b14f735acdc3ff77a50da1bb09a5bb983dcc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<template>
    <view class="search-card">
      <image
        class="background-image"
        src="https://ai-public.mastergo.com/ai/img_res/6a226f9e9652c51cd535c3490535dfeb.jpg"
        mode="aspectFill"
      />
  
      <!-- 右上角搜索按钮 -->
      <view class="search-btn">
        <up-icon name="search" size="30rpx" color="#333" />
        <text class="search-text">搜索目的地</text>
      </view>
  
      <!-- 中间圆形图标 -->
      <view class="center-icon">
        <view class="icon-circle">
          <up-icon name="/static/common/geo-earth.png" size="100rpx" color="#fff" />
        </view>
      </view>
    </view>
  </template>
  
  <script setup lang="ts">
  // 目前没有 props 或逻辑,空着即可
  </script>
  
  <style scoped lang="scss">
  .search-card {
    position: relative;
    height: 500rpx;
    border-radius: 24rpx;
    overflow: hidden;
  }
  
  .background-image {
    width: 100%;
    height: 100%;
    border-radius: 20rpx;
  }
  
  .search-btn {
    position: absolute;
    top: 16rpx;
    right: 32rpx;
    background-color: #fff;
    border-radius: 50rpx;
    padding: 8rpx 16rpx;
    display: flex;
    align-items: center;
    box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
    height: 50rpx;
    line-height: 50rpx;
  }
  
  .search-text {
    margin-left: 8rpx;
    font-size: 24rpx;
    color: #333;
  }
  
  .center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .icon-circle {
    background-color: rgba(0, 0, 0, 0.5);
    width: 180rpx;
    height: 180rpx;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  </style>