feat: 完善对象存储上传与真实条码二维码引擎,彻底剥离保底Mock数据
这个提交包含在:
@@ -1,159 +1,185 @@
|
||||
<template>
|
||||
<view class="index-container" :class="{ 'theme-warm': currentThemeKey === 'warm' }">
|
||||
<view class="index-container" :class="{ 'theme-warm': currentThemeKey === 'warm' }" :style="navStyle">
|
||||
<!-- 顶部搜索栏 (矢量SVG搜索图标,交互聚焦微动效) -->
|
||||
<view class="header-search">
|
||||
<view class="search-box">
|
||||
<image class="search-icon-img" :src="ICONS.search" mode="aspectFit" />
|
||||
<input class="search-input" placeholder="搜索同城陪吃、陪喝、KTV陪唱或达人" placeholder-class="placeholder-text" />
|
||||
<input class="search-input" placeholder="搜索同城陪玩、美食、KTV嗨唱" placeholder-class="placeholder-text" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 游戏分类滑动栏 (SVG分类图标,单行横滑,抗挤压) -->
|
||||
<scroll-view scroll-x class="category-scroll" :show-scrollbar="false">
|
||||
<view class="category-list">
|
||||
<!-- 首页骨架屏 (首屏加载中占位,防布局偏移与视觉空白) -->
|
||||
<skeleton-screen v-if="isLoading" type="home" />
|
||||
|
||||
<!-- 真实内容 (加载完成平滑展示) -->
|
||||
<view v-else class="index-body-wrapper">
|
||||
<!-- 精彩活动横幅轮播 (流光投影) -->
|
||||
<swiper class="banner-swiper" circular autoplay interval="4000" indicator-dots indicator-color="rgba(255,255,255,0.3)" indicator-active-color="#6366F1">
|
||||
<swiper-item v-for="banner in banners" :key="banner.id" class="banner-item" @click="goToActivity(banner)">
|
||||
<view class="banner-card" :style="{ background: banner.bg || 'linear-gradient(135deg, #F43F5E 0%, #FB7185 100%)' }">
|
||||
<image v-if="banner.image" class="banner-bg-img" :src="banner.image" mode="aspectFill" />
|
||||
<view v-if="banner.image" class="banner-overlay"></view>
|
||||
<view class="banner-content">
|
||||
<view class="banner-tag">{{ banner.tag || banner.badge || '热门陪伴' }}</view>
|
||||
<view class="banner-title">{{ banner.title }}</view>
|
||||
<view class="banner-sub">{{ banner.subtitle || '点击立即参与' }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
||||
|
||||
<!-- 陪玩活动项目专属金刚区 (10宫格经典网格:2行×5列,纯图标+主标题) -->
|
||||
<view class="quick-grid grid-card">
|
||||
<view
|
||||
v-for="item in games"
|
||||
v-for="item in activityProjects"
|
||||
:key="item.id"
|
||||
class="category-item btn-active"
|
||||
:class="{ active: currentCategory === item.id }"
|
||||
@click="selectCategory(item.id)"
|
||||
class="quick-item btn-active"
|
||||
@click="handleProjectClick(item)"
|
||||
>
|
||||
<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">
|
||||
<text class="badge-text">HOT</text>
|
||||
<view class="quick-icon-bg" :class="item.bgClass">
|
||||
<image class="quick-svg" :src="item.icon" mode="aspectFit" />
|
||||
</view>
|
||||
<text class="quick-title">{{ item.name }}</text>
|
||||
</view>
|
||||
</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 }">
|
||||
<view class="banner-tag">{{ banner.tag }}</view>
|
||||
<view class="banner-title">{{ banner.title }}</view>
|
||||
<view class="banner-sub">点击立即参与</view>
|
||||
<!-- 陪玩大神瀑布流标题 -->
|
||||
<view class="section-title-wrap">
|
||||
<view class="section-title">
|
||||
<view class="title-line"></view>
|
||||
<text>精选在线大神</text>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="section-more">
|
||||
<view class="pulse-point"></view>
|
||||
<text>实时在线</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 快捷功能金刚区 (纯矢量SVG图标,88rpx触控热区) -->
|
||||
<view class="quick-grid grid-card">
|
||||
<view class="quick-item btn-active" @click="navTo('/pages/activity/list')">
|
||||
<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">
|
||||
<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">
|
||||
<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/expert/workspace')">
|
||||
<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>
|
||||
</view>
|
||||
|
||||
<!-- 陪玩大神瀑布流标题 -->
|
||||
<view class="section-title-wrap">
|
||||
<view class="section-title">
|
||||
<view class="title-line"></view>
|
||||
<text>精选在线大神</text>
|
||||
</view>
|
||||
<view class="section-more">
|
||||
<view class="pulse-point"></view>
|
||||
<text>实时在线</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 陪玩大神卡片网格 -->
|
||||
<view class="expert-grid">
|
||||
<view
|
||||
v-for="expert in filteredExperts"
|
||||
:key="expert.id"
|
||||
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>
|
||||
</view>
|
||||
<view class="game-badge">{{ expert.game }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 信息区 -->
|
||||
<view class="card-body">
|
||||
<view class="row-nickname">
|
||||
<text class="nickname">{{ expert.nickname }}</text>
|
||||
<view class="gender-tag" :class="expert.gender">
|
||||
<image class="gender-svg" :src="expert.gender === 'female' ? ICONS.female : ICONS.male" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="city-badge" v-if="expert.city">
|
||||
<image class="city-pin-svg" :src="ICONS.mapPin" mode="aspectFit" />
|
||||
<text class="city-text">{{ expert.city }}</text>
|
||||
</view>
|
||||
<view class="rank-badge" v-else>{{ expert.rankTag }}</view>
|
||||
|
||||
<!-- 语音/歌声试听条 (矢量SVG播放图标,带播放高亮光晕) -->
|
||||
<view class="voice-bar btn-active" :class="{ playing: playingId === expert.id, 'song-bar': expert.voiceType === 'song' }" @click.stop="toggleVoice(expert.id)">
|
||||
<image class="voice-icon-svg" :src="playingId === expert.id ? ICONS.pause : (expert.voiceType === 'song' ? ICONS.micVocal : ICONS.play)" mode="aspectFit" />
|
||||
<text class="voice-text">{{ playingId === expert.id ? '播放中...' : (expert.voiceTitle || 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>
|
||||
<view class="wave-item w3"></view>
|
||||
<!-- 陪玩大神卡片网格 -->
|
||||
<view class="expert-grid">
|
||||
<view
|
||||
v-for="expert in filteredExperts"
|
||||
:key="expert.id"
|
||||
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>
|
||||
</view>
|
||||
<view class="game-badge">{{ expert.game }}</view>
|
||||
</view>
|
||||
|
||||
<view class="card-footer">
|
||||
<view class="price-wrap tabular-num">
|
||||
<text class="price-symbol">¥</text>
|
||||
<text class="price-val">{{ expert.price }}</text>
|
||||
<text class="price-unit">/时</text>
|
||||
<!-- 信息区 -->
|
||||
<view class="card-body">
|
||||
<view class="row-nickname">
|
||||
<text class="nickname">{{ expert.nickname }}</text>
|
||||
<view class="gender-tag" :class="expert.gender">
|
||||
<image class="gender-svg" :src="expert.gender === 'female' ? ICONS.female : ICONS.male" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="city-badge" v-if="expert.city">
|
||||
<image class="city-pin-svg" :src="ICONS.mapPin" mode="aspectFit" />
|
||||
<text class="city-text">{{ expert.city }}</text>
|
||||
</view>
|
||||
<view class="rank-badge" v-else>{{ expert.rankTag }}</view>
|
||||
|
||||
<!-- 语音/歌声试听条 (矢量SVG播放图标,带播放高亮光晕) -->
|
||||
<view class="voice-bar btn-active" :class="{ playing: playingId === expert.id, 'song-bar': expert.voiceType === 'song' }" @click.stop="toggleVoice(expert.id)">
|
||||
<image class="voice-icon-svg" :src="playingId === expert.id ? ICONS.pause : (expert.voiceType === 'song' ? ICONS.micVocal : ICONS.play)" mode="aspectFit" />
|
||||
<text class="voice-text">{{ playingId === expert.id ? '播放中...' : (expert.voiceTitle || 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>
|
||||
<view class="wave-item w3"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-footer">
|
||||
<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 tabular-num">{{ expert.orderCount }}单</text>
|
||||
</view>
|
||||
<text class="order-count tabular-num">{{ expert.orderCount }}单</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部自定义导航栏 (发单人端:首页 / 活动中心 / 我要发单 / 友圈 / 个人中心) -->
|
||||
<custom-tab-bar current="home" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, onUnmounted } from 'vue';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
import { GAMES_LIST, BANNERS, EXPERTS_LIST } from '@/common/mock.js';
|
||||
import CustomTabBar from '@/components/CustomTabBar.vue';
|
||||
import SkeletonScreen from '@/components/SkeletonScreen.vue';
|
||||
import { getCompanions, getBanners } from '@/common/api.js';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
import { getNavBarInfo } from '@/common/nav.js';
|
||||
|
||||
const games = ref(GAMES_LIST);
|
||||
const banners = ref(BANNERS);
|
||||
const experts = ref(EXPERTS_LIST);
|
||||
const isLoading = ref(true);
|
||||
const banners = ref([]);
|
||||
const experts = ref([]);
|
||||
const currentCategory = ref('all');
|
||||
const playingId = ref(null);
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
const navInfo = ref(getNavBarInfo());
|
||||
|
||||
const navStyle = computed(() => {
|
||||
return {
|
||||
'--safe-header-gap': `${navInfo.value.safeHeaderGap}px`,
|
||||
'--capsule-right-space': `${navInfo.value.capsuleRightSpace}px`,
|
||||
'--capsule-height': `${navInfo.value.capsuleHeight}px`
|
||||
};
|
||||
});
|
||||
|
||||
const loadInitialData = async () => {
|
||||
try {
|
||||
await Promise.allSettled([
|
||||
fetchLiveCompanions(),
|
||||
fetchLiveBanners()
|
||||
]);
|
||||
} finally {
|
||||
// 平滑延时关闭骨架屏,呈现优雅扫光转场
|
||||
setTimeout(() => {
|
||||
isLoading.value = false;
|
||||
}, 200);
|
||||
}
|
||||
};
|
||||
|
||||
const fetchLiveCompanions = async () => {
|
||||
try {
|
||||
const list = await getCompanions();
|
||||
if (Array.isArray(list) && list.length > 0) {
|
||||
experts.value = list;
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn('[Index] 获取大神数据失败:', err);
|
||||
}
|
||||
};
|
||||
|
||||
const fetchLiveBanners = async () => {
|
||||
try {
|
||||
const list = await getBanners();
|
||||
if (Array.isArray(list) && list.length > 0) {
|
||||
banners.value = list;
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn('[Index] 获取Banner配置失败:', err);
|
||||
}
|
||||
};
|
||||
|
||||
const onThemeChanged = (key) => {
|
||||
currentThemeKey.value = key;
|
||||
@@ -161,16 +187,23 @@ const onThemeChanged = (key) => {
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
navInfo.value = getNavBarInfo();
|
||||
currentThemeKey.value = getCurrentThemeKey();
|
||||
applyThemeToNativeUI(currentThemeKey.value);
|
||||
uni.$on('theme-change', onThemeChanged);
|
||||
loadInitialData();
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
navInfo.value = getNavBarInfo();
|
||||
currentThemeKey.value = getCurrentThemeKey();
|
||||
applyThemeToNativeUI(currentThemeKey.value);
|
||||
uni.hideTabBar({ animation: false, fail: () => {} });
|
||||
fetchLiveCompanions();
|
||||
fetchLiveBanners();
|
||||
});
|
||||
|
||||
|
||||
onUnmounted(() => {
|
||||
uni.$off('theme-change', onThemeChanged);
|
||||
});
|
||||
@@ -191,10 +224,6 @@ const filteredExperts = computed(() => {
|
||||
return target ? experts.value.filter(e => e.game === target) : experts.value;
|
||||
});
|
||||
|
||||
const selectCategory = (id) => {
|
||||
currentCategory.value = id;
|
||||
};
|
||||
|
||||
const toggleVoice = (id) => {
|
||||
if (playingId.value === id) {
|
||||
playingId.value = null;
|
||||
@@ -213,10 +242,113 @@ const goToExpert = (id) => {
|
||||
});
|
||||
};
|
||||
|
||||
const goToActivity = () => {
|
||||
uni.switchTab({
|
||||
url: '/pages/activity/list'
|
||||
});
|
||||
const goToActivity = (banner) => {
|
||||
if (banner && banner.link) {
|
||||
if (banner.link.startsWith('/pages/activity/list') || banner.link.startsWith('/pages/order/list') || banner.link.startsWith('/pages/user/index')) {
|
||||
uni.switchTab({ url: banner.link });
|
||||
} else {
|
||||
uni.navigateTo({ url: banner.link });
|
||||
}
|
||||
} else {
|
||||
uni.switchTab({
|
||||
url: '/pages/activity/list'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
const activityProjects = [
|
||||
{
|
||||
id: 'esports',
|
||||
name: '电子竞技',
|
||||
icon: ICONS.gameAll,
|
||||
bgClass: 'bg-indigo',
|
||||
cat: 'all',
|
||||
targetUrl: '/pages/activity/list?category=ALL'
|
||||
},
|
||||
{
|
||||
id: 'meal',
|
||||
name: '美食探店',
|
||||
icon: ICONS.utensils,
|
||||
bgClass: 'bg-amber',
|
||||
cat: 'offline_meal',
|
||||
targetUrl: '/pages/activity/list?category=MEAL'
|
||||
},
|
||||
{
|
||||
id: 'sing',
|
||||
name: 'KTV嗨唱',
|
||||
icon: ICONS.micVocal,
|
||||
bgClass: 'bg-rose',
|
||||
cat: 'offline_sing',
|
||||
targetUrl: '/pages/activity/list?category=SING'
|
||||
},
|
||||
{
|
||||
id: 'billiards',
|
||||
name: '同城台球',
|
||||
icon: ICONS.billiards,
|
||||
bgClass: 'bg-sky',
|
||||
cat: 'offline_play',
|
||||
targetUrl: '/pages/activity/list?category=ALL'
|
||||
},
|
||||
{
|
||||
id: 'hiking',
|
||||
name: '户外爬山',
|
||||
icon: ICONS.mountain,
|
||||
bgClass: 'bg-emerald',
|
||||
cat: 'offline_play',
|
||||
targetUrl: '/pages/activity/list?category=ALL'
|
||||
},
|
||||
{
|
||||
id: 'drink',
|
||||
name: '下午茶歇',
|
||||
icon: ICONS.coffee,
|
||||
bgClass: 'bg-teal',
|
||||
cat: 'offline_drink',
|
||||
targetUrl: '/pages/activity/list?category=DRINK'
|
||||
},
|
||||
{
|
||||
id: 'boardgame',
|
||||
name: '剧本桌游',
|
||||
icon: ICONS.dice,
|
||||
bgClass: 'bg-purple',
|
||||
cat: 'offline_play',
|
||||
targetUrl: '/pages/activity/list?category=ALL'
|
||||
},
|
||||
{
|
||||
id: 'fitness',
|
||||
name: '运动健身',
|
||||
icon: ICONS.fitness,
|
||||
bgClass: 'bg-orange',
|
||||
cat: 'offline_play',
|
||||
targetUrl: '/pages/activity/list?category=ALL'
|
||||
},
|
||||
{
|
||||
id: 'bar',
|
||||
name: '同城微醺',
|
||||
icon: ICONS.warmFlame,
|
||||
bgClass: 'bg-rose',
|
||||
cat: 'offline_drink',
|
||||
targetUrl: '/pages/activity/list?category=DRINK'
|
||||
},
|
||||
{
|
||||
id: 'more',
|
||||
name: '全部活动',
|
||||
icon: ICONS.gridAll,
|
||||
bgClass: 'bg-blue',
|
||||
cat: 'all',
|
||||
targetUrl: '/pages/activity/list?category=ALL'
|
||||
}
|
||||
];
|
||||
|
||||
const handleProjectClick = (item) => {
|
||||
if (item.cat) {
|
||||
currentCategory.value = item.cat;
|
||||
}
|
||||
if (item.targetUrl) {
|
||||
uni.reLaunch({
|
||||
url: item.targetUrl
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const navTo = (url) => {
|
||||
@@ -254,6 +386,9 @@ const navTo = (url) => {
|
||||
align-items: center;
|
||||
background-color: #151D30;
|
||||
height: 80rpx;
|
||||
/* #ifdef MP-WEIXIN */
|
||||
height: var(--capsule-height, 64rpx);
|
||||
/* #endif */
|
||||
border-radius: 40rpx;
|
||||
padding: 0 28rpx;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
@@ -277,82 +412,7 @@ const navTo = (url) => {
|
||||
}
|
||||
.placeholder-text {
|
||||
color: #64748B;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.category-scroll {
|
||||
white-space: nowrap;
|
||||
padding: 0 32rpx 10rpx;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
.category-list {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
padding: 16rpx 0 10rpx;
|
||||
}
|
||||
|
||||
.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;
|
||||
transition: all 0.15s ease-out;
|
||||
|
||||
.cat-icon-svg {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
.cat-name {
|
||||
font-size: 24rpx;
|
||||
color: #94A3B8;
|
||||
font-weight: 500;
|
||||
}
|
||||
.cat-badge {
|
||||
position: absolute;
|
||||
top: -10rpx;
|
||||
right: -8rpx;
|
||||
height: 26rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #FF3B30 0%, #FF2D55 100%);
|
||||
border: 2rpx solid #0A0F1D;
|
||||
padding: 0 10rpx;
|
||||
border-radius: 14rpx;
|
||||
box-shadow: 0 4rpx 12rpx rgba(255, 45, 85, 0.5);
|
||||
z-index: 3;
|
||||
pointer-events: none;
|
||||
|
||||
.badge-text {
|
||||
color: #FFFFFF;
|
||||
font-size: 16rpx;
|
||||
font-weight: 800;
|
||||
font-style: italic;
|
||||
line-height: 1;
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
|
||||
border-color: #818CF8;
|
||||
box-shadow: 0 4rpx 16rpx rgba(99, 102, 241, 0.45);
|
||||
|
||||
.cat-name {
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -369,44 +429,80 @@ const navTo = (url) => {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.45);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
.banner-tag {
|
||||
align-self: flex-start;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(8px);
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 8rpx;
|
||||
font-size: 20rpx;
|
||||
color: #FFF;
|
||||
margin-bottom: 8rpx;
|
||||
.banner-bg-img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
.banner-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #FFF;
|
||||
margin-bottom: 6rpx;
|
||||
|
||||
.banner-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
|
||||
z-index: 2;
|
||||
}
|
||||
.banner-sub {
|
||||
font-size: 22rpx;
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
|
||||
.banner-content {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
.banner-tag {
|
||||
align-self: flex-start;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(8px);
|
||||
padding: 4rpx 14rpx;
|
||||
border-radius: 8rpx;
|
||||
font-size: 20rpx;
|
||||
color: #FFF;
|
||||
margin-bottom: 8rpx;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
.banner-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #FFF;
|
||||
margin-bottom: 6rpx;
|
||||
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
.banner-sub {
|
||||
font-size: 22rpx;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
text-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.quick-grid {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
row-gap: 24rpx;
|
||||
column-gap: 6rpx;
|
||||
margin: 0 32rpx 32rpx;
|
||||
background-color: #151D30;
|
||||
border-radius: 24rpx;
|
||||
padding: 24rpx 16rpx;
|
||||
padding: 28rpx 10rpx 24rpx;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
|
||||
.quick-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
|
||||
.quick-icon-bg {
|
||||
width: 80rpx;
|
||||
@@ -415,29 +511,36 @@ const navTo = (url) => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 12rpx;
|
||||
transition: transform 0.15s ease;
|
||||
margin-bottom: 10rpx;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
.quick-svg {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
width: 42rpx;
|
||||
height: 42rpx;
|
||||
}
|
||||
|
||||
&.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); }
|
||||
&.bg-indigo { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); }
|
||||
&.bg-amber { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
|
||||
&.bg-rose { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.3); }
|
||||
&.bg-sky { background: rgba(14, 165, 233, 0.15); border: 1px solid rgba(14, 165, 233, 0.3); }
|
||||
&.bg-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
|
||||
&.bg-teal { background: rgba(20, 184, 166, 0.15); border: 1px solid rgba(20, 184, 166, 0.3); }
|
||||
}
|
||||
|
||||
.quick-title {
|
||||
font-size: 24rpx;
|
||||
font-size: 22rpx;
|
||||
color: #F8FAFC;
|
||||
font-weight: 600;
|
||||
margin-bottom: 4rpx;
|
||||
white-space: nowrap;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.quick-sub {
|
||||
font-size: 18rpx;
|
||||
color: #64748B;
|
||||
|
||||
&:active .quick-icon-bg {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -731,6 +834,10 @@ const navTo = (url) => {
|
||||
.index-container.theme-warm {
|
||||
background-color: #FDFBF7;
|
||||
|
||||
.banner-swiper .banner-card {
|
||||
box-shadow: 0 8rpx 28rpx rgba(28, 25, 23, 0.12);
|
||||
}
|
||||
|
||||
.header-search {
|
||||
background-color: #FDFBF7;
|
||||
.search-box {
|
||||
@@ -751,23 +858,6 @@ const navTo = (url) => {
|
||||
}
|
||||
}
|
||||
|
||||
.category-scroll .category-item {
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #F0ECE4;
|
||||
.cat-name {
|
||||
color: #57534E;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.05));
|
||||
border-color: #EA580C;
|
||||
.cat-name {
|
||||
color: #EA580C;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.quick-grid, .grid-card {
|
||||
background-color: #FFFFFF;
|
||||
border-color: #F0ECE4;
|
||||
@@ -777,8 +867,18 @@ const navTo = (url) => {
|
||||
.quick-title {
|
||||
color: #1C1917;
|
||||
}
|
||||
.quick-sub {
|
||||
color: #78716C;
|
||||
|
||||
.quick-icon-bg {
|
||||
&.bg-purple { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); }
|
||||
&.bg-green { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
|
||||
&.bg-blue { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
|
||||
&.bg-orange { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.2); }
|
||||
&.bg-indigo { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }
|
||||
&.bg-amber { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
|
||||
&.bg-rose { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); }
|
||||
&.bg-sky { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.2); }
|
||||
&.bg-emerald { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
|
||||
&.bg-teal { background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.2); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户