hookehuyr

refactor(页面样式): 移除搜索页热门搜索和底部导航,调整首页间距

- 搜索页配置文件改为自定义导航样式,移除背景色配置
- 搜索页移除热门搜索模块和底部导航组件
- 首页热门资料模块增加底部外边距
- 清理搜索页中未使用的热门搜索数据
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
116 </view> 116 </view>
117 117
118 <!-- Hot Materials --> 118 <!-- Hot Materials -->
119 - <view class="bg-white rounded-[32rpx] shadow-sm p-[32rpx]"> 119 + <view class="bg-white rounded-[32rpx] shadow-sm p-[32rpx] mb-[48rpx]">
120 <view class="flex justify-between items-center mb-[24rpx]"> 120 <view class="flex justify-between items-center mb-[24rpx]">
121 <text class="text-gray-900 text-[32rpx] font-bold">本周热门资料</text> 121 <text class="text-gray-900 text-[32rpx] font-bold">本周热门资料</text>
122 <view class="flex items-center text-blue-600" @tap="go('/pages/knowledge-base/index')"> 122 <view class="flex items-center text-blue-600" @tap="go('/pages/knowledge-base/index')">
......
1 +/*
2 + * @Date: 2026-01-29 23:36:16
3 + * @LastEditors: hookehuyr hookehuyr@gmail.com
4 + * @LastEditTime: 2026-01-29 23:37:49
5 + * @FilePath: /manulife-weapp/src/pages/search/index.config.js
6 + * @Description: 搜索页面配置文件
7 + */
1 export default { 8 export default {
2 navigationBarTitleText: '搜索', 9 navigationBarTitleText: '搜索',
3 enablePullDownRefresh: true, 10 enablePullDownRefresh: true,
4 - backgroundColor: '#F9FAFB' 11 + navigationStyle: 'custom'
5 } 12 }
......
...@@ -104,25 +104,7 @@ ...@@ -104,25 +104,7 @@
104 <view class="text-[#6B7280] text-[28rpx]">搜索培训资料、案例、产品</view> 104 <view class="text-[#6B7280] text-[28rpx]">搜索培训资料、案例、产品</view>
105 <view class="text-[#9CA3AF] text-[24rpx] mt-[12rpx]">输入关键词开始搜索</view> 105 <view class="text-[#9CA3AF] text-[24rpx] mt-[12rpx]">输入关键词开始搜索</view>
106 </view> 106 </view>
107 -
108 - <!-- Hot Searches -->
109 - <view v-if="!hasSearched" class="mt-[60rpx]">
110 - <view class="text-[#1F2937] text-[28rpx] font-bold mb-[24rpx]">热门搜索</view>
111 - <view class="flex flex-wrap gap-[16rpx]">
112 - <view
113 - v-for="(keyword, index) in hotSearches"
114 - :key="index"
115 - class="px-[24rpx] py-[12rpx] bg-white rounded-full text-[26rpx] text-[#4B5563]"
116 - @tap="searchKeyword = keyword; handleSearch()"
117 - >
118 - {{ keyword }}
119 - </view>
120 - </view>
121 - </view>
122 </view> 107 </view>
123 -
124 - <!-- Tab Bar -->
125 - <TabBar current="home" />
126 </view> 108 </view>
127 </template> 109 </template>
128 110
...@@ -131,7 +113,6 @@ import { ref, computed } from 'vue' ...@@ -131,7 +113,6 @@ import { ref, computed } from 'vue'
131 import Taro from '@tarojs/taro' 113 import Taro from '@tarojs/taro'
132 import { useGo } from '@/hooks/useGo' 114 import { useGo } from '@/hooks/useGo'
133 import NavHeader from '@/components/NavHeader.vue' 115 import NavHeader from '@/components/NavHeader.vue'
134 -import TabBar from '@/components/TabBar.vue'
135 import IconFont from '@/components/IconFont.vue' 116 import IconFont from '@/components/IconFont.vue'
136 117
137 // Navigation 118 // Navigation
...@@ -145,15 +126,6 @@ const hasSearched = ref(false) ...@@ -145,15 +126,6 @@ const hasSearched = ref(false)
145 // Tabs 126 // Tabs
146 const tabs = ['全部', '产品', '资料'] 127 const tabs = ['全部', '产品', '资料']
147 128
148 -// Hot searches
149 -const hotSearches = ref([
150 - '家庭财富传承',
151 - '儿童教育金',
152 - '医疗保险',
153 - '高净值客户',
154 - '保险合同',
155 -])
156 -
157 // Mock data 129 // Mock data
158 const mockData = ref([ 130 const mockData = ref([
159 { 131 {
......