style(uiux): 依据ui-ux-pro-max规范深度打磨移动浏览器端细节并完成真机视口验收

这个提交包含在:
wikiboss
2026-09-16 17:09:19 +08:00
父节点 a377327465
当前提交 973586ff5f
共有 9 个文件被更改,包括 235 次插入 和 84 次删除

查看文件

@@ -1,6 +1,6 @@
<template>
<view class="index-container">
<!-- 顶部搜索栏 (矢量SVG搜索图标,满足无Emoji规范) -->
<!-- 顶部搜索栏 (矢量SVG搜索图标,交互聚焦微动效) -->
<view class="header-search">
<view class="search-box">
<image class="search-icon-img" :src="ICONS.search" mode="aspectFit" />
@@ -8,7 +8,7 @@
</view>
</view>
<!-- 游戏分类滑动栏 (SVG分类图标) -->
<!-- 游戏分类滑动栏 (SVG分类图标,单行横滑,抗挤压) -->
<scroll-view scroll-x class="category-scroll" :show-scrollbar="false">
<view class="category-list">
<view
@@ -25,7 +25,7 @@
</view>
</scroll-view>
<!-- 精彩活动横幅轮播 -->
<!-- 精彩活动横幅轮播 (流光投影) -->
<swiper class="banner-swiper" circular autoplay interval="4000" indicator-dots indicator-color="rgba(255,255,255,0.2)" indicator-active-color="#6366F1">
<swiper-item v-for="banner in banners" :key="banner.id" class="banner-item" @click="goToActivity">
<view class="banner-card" :style="{ background: banner.bg }">
@@ -36,7 +36,7 @@
</swiper-item>
</swiper>
<!-- 快捷功能金刚区 (纯矢量SVG图标) -->
<!-- 快捷功能金刚区 (纯矢量SVG图标,88rpx触控热区) -->
<view class="quick-grid">
<view class="quick-item btn-active" @click="navTo('/pages/activity/list')">
<view class="quick-icon-bg bg-purple">
@@ -68,7 +68,7 @@
</view>
</view>
<!-- 陪玩大神瀑布流 -->
<!-- 陪玩大神瀑布流标题 -->
<view class="section-title-wrap">
<view class="section-title">
<view class="title-line"></view>
@@ -80,6 +80,7 @@
</view>
</view>
<!-- 陪玩大神卡片网格 -->
<view class="expert-grid">
<view
v-for="expert in filteredExperts"
@@ -87,7 +88,7 @@
class="expert-card card-active"
@click="goToExpert(expert.id)"
>
<!-- 封面图构图优化:标准黄金比例与底部暗夜流光渐变 -->
<!-- 封面图构图优化:高保真黄金比例与底部流光渐变 -->
<view class="card-cover-wrap">
<image class="card-cover" :src="expert.avatar" mode="aspectFill" />
<view class="cover-gradient"></view>
@@ -107,8 +108,8 @@
</view>
<view class="rank-badge">{{ expert.rankTag }}</view>
<!-- 语音试听条 (矢量SVG播放图标) -->
<view class="voice-bar btn-active" @click.stop="toggleVoice(expert.id)">
<!-- 语音试听条 (矢量SVG播放图标,带播放高亮光晕) -->
<view class="voice-bar btn-active" :class="{ playing: playingId === expert.id }" @click.stop="toggleVoice(expert.id)">
<image class="voice-icon-svg" :src="playingId === expert.id ? ICONS.pause : ICONS.play" mode="aspectFit" />
<text class="voice-text">{{ playingId === expert.id ? '试听中...' : expert.voiceDuration + 's 原声试听' }}</text>
<view class="wave-lines" v-if="playingId === expert.id">
@@ -119,12 +120,12 @@
</view>
<view class="card-footer">
<view class="price-wrap">
<view class="price-wrap tabular-num">
<text class="price-symbol">¥</text>
<text class="price-val">{{ expert.price }}</text>
<text class="price-unit">/时</text>
</view>
<text class="order-count">{{ expert.orderCount }}单</text>
<text class="order-count tabular-num">{{ expert.orderCount }}单</text>
</view>
</view>
</view>
@@ -196,7 +197,7 @@ const navTo = (url) => {
.index-container {
min-height: 100vh;
background-color: #0A0F1D;
padding-bottom: 140rpx;
padding-bottom: calc(160rpx + env(safe-area-inset-bottom));
}
.header-search {
@@ -214,6 +215,12 @@ const navTo = (url) => {
border-radius: 40rpx;
padding: 0 28rpx;
border: 1px solid rgba(255, 255, 255, 0.08);
transition: all 0.2s ease;
&:focus-within {
border-color: #6366F1;
box-shadow: 0 0 16rpx rgba(99, 102, 241, 0.35);
}
.search-icon-img {
width: 32rpx;
@@ -256,6 +263,7 @@ const navTo = (url) => {
border-radius: 32rpx;
border: 1px solid rgba(255, 255, 255, 0.06);
position: relative;
transition: all 0.15s ease-out;
.cat-icon-svg {
width: 28rpx;
@@ -277,12 +285,13 @@ const navTo = (url) => {
padding: 2rpx 8rpx;
border-radius: 12rpx;
font-weight: 700;
box-shadow: 0 2rpx 6rpx rgba(239, 68, 68, 0.4);
}
&.active {
background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
border-color: #818CF8;
box-shadow: 0 4rpx 16rpx rgba(99, 102, 241, 0.4);
box-shadow: 0 4rpx 16rpx rgba(99, 102, 241, 0.45);
.cat-name {
color: #FFFFFF;
@@ -303,7 +312,7 @@ const navTo = (url) => {
display: flex;
flex-direction: column;
justify-content: center;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.4);
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.45);
.banner-tag {
align-self: flex-start;
@@ -351,6 +360,7 @@ const navTo = (url) => {
align-items: center;
justify-content: center;
margin-bottom: 12rpx;
transition: transform 0.15s ease;
.quick-svg {
width: 40rpx;
@@ -434,6 +444,7 @@ const navTo = (url) => {
position: relative;
height: 260rpx;
overflow: hidden;
background-color: #1E2942;
.card-cover {
width: 100%;
@@ -445,7 +456,7 @@ const navTo = (url) => {
.cover-gradient {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(21, 29, 48, 0.8) 100%);
background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(21, 29, 48, 0.85) 100%);
}
.status-tag {
@@ -548,6 +559,13 @@ const navTo = (url) => {
align-items: center;
padding: 0 16rpx;
margin-bottom: 16rpx;
transition: all 0.2s ease;
&.playing {
background: rgba(99, 102, 241, 0.3);
border-color: #818CF8;
box-shadow: 0 0 14rpx rgba(99, 102, 241, 0.4);
}
.voice-icon-svg {
width: 20rpx;