hookehuyr

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

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