style(uiux): 严格对齐UIUX设计约束规范,全面替换系统Emoji为电竞矢量SVG图标并修复H5居中自适应
这个提交包含在:
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<view class="index-container">
|
||||
<!-- 顶部搜索栏 -->
|
||||
<!-- 顶部搜索栏 (矢量SVG搜索图标,满足无Emoji规范) -->
|
||||
<view class="header-search">
|
||||
<view class="search-box">
|
||||
<text class="search-icon">🔍</text>
|
||||
<image class="search-icon-img" :src="ICONS.search" mode="aspectFit" />
|
||||
<input class="search-input" placeholder="搜索陪玩大神、游戏昵称或项目" placeholder-class="placeholder-text" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 游戏分类滑动栏 -->
|
||||
<!-- 游戏分类滑动栏 (SVG分类图标) -->
|
||||
<scroll-view scroll-x class="category-scroll" :show-scrollbar="false">
|
||||
<view class="category-list">
|
||||
<view
|
||||
@@ -18,7 +18,7 @@
|
||||
:class="{ active: currentCategory === item.id }"
|
||||
@click="selectCategory(item.id)"
|
||||
>
|
||||
<text class="cat-icon">{{ item.icon }}</text>
|
||||
<image class="cat-icon-svg" :src="item.icon" mode="aspectFit" />
|
||||
<text class="cat-name">{{ item.name }}</text>
|
||||
<view v-if="item.hot" class="cat-badge">HOT</view>
|
||||
</view>
|
||||
@@ -36,25 +36,33 @@
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
||||
<!-- 快捷功能金刚区 -->
|
||||
<!-- 快捷功能金刚区 (纯矢量SVG图标) -->
|
||||
<view class="quick-grid">
|
||||
<view class="quick-item btn-active" @click="navTo('/pages/activity/list')">
|
||||
<view class="quick-icon-bg bg-purple">🔥</view>
|
||||
<view class="quick-icon-bg bg-purple">
|
||||
<image class="quick-svg" :src="ICONS.teamUp" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="quick-title">组队开黑</text>
|
||||
<text class="quick-sub">AA制五排</text>
|
||||
</view>
|
||||
<view class="quick-item btn-active" @click="navTo('/pages/activity/my-ticket')">
|
||||
<view class="quick-icon-bg bg-green">🎟️</view>
|
||||
<view class="quick-icon-bg bg-green">
|
||||
<image class="quick-svg" :src="ICONS.ticket" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="quick-title">我的门票</text>
|
||||
<text class="quick-sub">4位核销码</text>
|
||||
</view>
|
||||
<view class="quick-item btn-active" @click="navTo('/pages/order/list')">
|
||||
<view class="quick-icon-bg bg-blue">⚡</view>
|
||||
<view class="quick-icon-bg bg-blue">
|
||||
<image class="quick-svg" :src="ICONS.orderList" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="quick-title">服务订单</text>
|
||||
<text class="quick-sub">状态实时看</text>
|
||||
</view>
|
||||
<view class="quick-item btn-active" @click="navTo('/pages/user/index')">
|
||||
<view class="quick-icon-bg bg-orange">👑</view>
|
||||
<view class="quick-icon-bg bg-orange">
|
||||
<image class="quick-svg" :src="ICONS.expertBadge" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="quick-title">大神中心</text>
|
||||
<text class="quick-sub">双身份切换</text>
|
||||
</view>
|
||||
@@ -66,7 +74,10 @@
|
||||
<view class="title-line"></view>
|
||||
<text>精选在线大神</text>
|
||||
</view>
|
||||
<text class="section-more">实时在线</text>
|
||||
<view class="section-more">
|
||||
<view class="pulse-point"></view>
|
||||
<text>实时在线</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="expert-grid">
|
||||
@@ -76,9 +87,11 @@
|
||||
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>
|
||||
|
||||
<view class="status-tag" :class="expert.isOnline ? 'online' : 'offline'">
|
||||
<view class="pulse-dot" v-if="expert.isOnline"></view>
|
||||
<text>{{ expert.isOnline ? '在线' : '离线' }}</text>
|
||||
@@ -94,10 +107,10 @@
|
||||
</view>
|
||||
<view class="rank-badge">{{ expert.rankTag }}</view>
|
||||
|
||||
<!-- 语音试听条 -->
|
||||
<!-- 语音试听条 (矢量SVG播放图标) -->
|
||||
<view class="voice-bar btn-active" @click.stop="toggleVoice(expert.id)">
|
||||
<text class="voice-icon">{{ playingId === expert.id ? '🔊' : '▶' }}</text>
|
||||
<text class="voice-text">{{ playingId === expert.id ? '试听中...' : expert.voiceDuration + 's 语音' }}</text>
|
||||
<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">
|
||||
<view class="wave-item w1"></view>
|
||||
<view class="wave-item w2"></view>
|
||||
@@ -122,6 +135,7 @@
|
||||
<script setup>
|
||||
import { ref, computed } from 'vue';
|
||||
import { GAMES_LIST, BANNERS, EXPERTS_LIST } from '@/common/mock.js';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
|
||||
const games = ref(GAMES_LIST);
|
||||
const banners = ref(BANNERS);
|
||||
@@ -201,9 +215,11 @@ const navTo = (url) => {
|
||||
padding: 0 28rpx;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
|
||||
.search-icon {
|
||||
font-size: 28rpx;
|
||||
.search-icon-img {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
margin-right: 16rpx;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.search-input {
|
||||
flex: 1;
|
||||
@@ -219,24 +235,32 @@ const navTo = (url) => {
|
||||
.category-scroll {
|
||||
white-space: nowrap;
|
||||
padding: 10rpx 32rpx 20rpx;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
.category-list {
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.category-item {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
padding: 14rpx 28rpx;
|
||||
background-color: #151D30;
|
||||
border-radius: 32rpx;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
position: relative;
|
||||
|
||||
.cat-icon {
|
||||
font-size: 26rpx;
|
||||
margin-right: 8rpx;
|
||||
.cat-icon-svg {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.cat-name {
|
||||
font-size: 24rpx;
|
||||
@@ -283,7 +307,7 @@ const navTo = (url) => {
|
||||
|
||||
.banner-tag {
|
||||
align-self: flex-start;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(8px);
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 8rpx;
|
||||
@@ -320,19 +344,23 @@ const navTo = (url) => {
|
||||
align-items: center;
|
||||
|
||||
.quick-icon-bg {
|
||||
width: 76rpx;
|
||||
height: 76rpx;
|
||||
border-radius: 22rpx;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 34rpx;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
&.bg-purple { background: rgba(139, 92, 246, 0.2); }
|
||||
&.bg-green { background: rgba(16, 185, 129, 0.2); }
|
||||
&.bg-blue { background: rgba(99, 102, 241, 0.2); }
|
||||
&.bg-orange { background: rgba(245, 158, 11, 0.2); }
|
||||
.quick-svg {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
&.bg-purple { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); }
|
||||
&.bg-green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
|
||||
&.bg-blue { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
|
||||
&.bg-orange { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
|
||||
}
|
||||
|
||||
.quick-title {
|
||||
@@ -371,11 +399,22 @@ const navTo = (url) => {
|
||||
}
|
||||
|
||||
.section-more {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
font-size: 22rpx;
|
||||
color: #10B981;
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
padding: 4rpx 14rpx;
|
||||
background: rgba(16, 185, 129, 0.12);
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 16rpx;
|
||||
|
||||
.pulse-point {
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
border-radius: 50%;
|
||||
background: #10B981;
|
||||
box-shadow: 0 0 8rpx #10B981;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -393,11 +432,20 @@ const navTo = (url) => {
|
||||
|
||||
.card-cover-wrap {
|
||||
position: relative;
|
||||
height: 320rpx;
|
||||
height: 260rpx;
|
||||
overflow: hidden;
|
||||
|
||||
.card-cover {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
}
|
||||
|
||||
.cover-gradient {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(21, 29, 48, 0.8) 100%);
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
@@ -413,8 +461,9 @@ const navTo = (url) => {
|
||||
font-weight: 600;
|
||||
|
||||
&.online {
|
||||
background: rgba(16, 185, 129, 0.85);
|
||||
background: rgba(16, 185, 129, 0.9);
|
||||
color: #FFF;
|
||||
box-shadow: 0 0 10rpx rgba(16, 185, 129, 0.5);
|
||||
}
|
||||
&.offline {
|
||||
background: rgba(100, 116, 139, 0.8);
|
||||
@@ -422,8 +471,8 @@ const navTo = (url) => {
|
||||
}
|
||||
|
||||
.pulse-dot {
|
||||
width: 10rpx;
|
||||
height: 10rpx;
|
||||
width: 8rpx;
|
||||
height: 8rpx;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
animation: pulse 1.5s infinite;
|
||||
@@ -434,8 +483,9 @@ const navTo = (url) => {
|
||||
position: absolute;
|
||||
bottom: 14rpx;
|
||||
right: 14rpx;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(4px);
|
||||
background: rgba(10, 15, 29, 0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(6px);
|
||||
font-size: 18rpx;
|
||||
color: #E2E8F0;
|
||||
padding: 4rpx 10rpx;
|
||||
@@ -486,6 +536,7 @@ const navTo = (url) => {
|
||||
border-radius: 6rpx;
|
||||
display: inline-block;
|
||||
margin-bottom: 12rpx;
|
||||
border: 1px solid rgba(245, 158, 11, 0.2);
|
||||
}
|
||||
|
||||
.voice-bar {
|
||||
@@ -498,9 +549,9 @@ const navTo = (url) => {
|
||||
padding: 0 16rpx;
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
.voice-icon {
|
||||
font-size: 20rpx;
|
||||
color: #818CF8;
|
||||
.voice-icon-svg {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.voice-text {
|
||||
|
||||
在新工单中引用
屏蔽一个用户