文件
fenleixinxi/uniapp/pages/index/index.vue
MiAn 63fdfe87d7 feat(v1.1.0): 支付改由 epay 插件承载、插件纳入版本库,补齐媒体上传/LBS/互动/优惠券/后台看板,并修复余额充值资损
## 一、支付:改由已安装的 epay 插件承载(不再自研签名)
- 下单:\addons\epay\library\Service::submitOrder($amount 元, $orderNo, 'wechat', $body, $notifyUrl, null, 'miniapp', $openid)
- 验签:Service::checkNotify('wechat')(内部 $pay->verify());应答:$pay->success()(v2 = XML)
- 业务编排仍在 application/api/controller/Pay.php,不改插件源码:
  POST /pay/prepay(取调起参数,下发前剔除 appId);POST /pay/notify(公开路由:插件验签 → 金额核对 → 幂等分派)
- 配置真源 = addons/epay/config.php(后台「插件管理 → 微信支付宝整合插件 → 配置」);
  fc_config 的 wx.mchId / wx.apiKey / wx.payNotifyUrl 废弃;后台「系统设置」支付表单改只读并跳插件配置页
- 插件 API 保持 version=v2(PHP 7.4 可跑);certs/* 为 0 字节占位,不含任何真实密钥
- 修复 BUG-015:Pay::notify() 与基类站内信同名且签名不兼容导致 /pay/* 全 500,动作改名 notifyCallback()

## 二、插件纳入 Git 版本管理
- .gitignore 移除 /addons/* 与 /public/assets/addons/*(保留 .gitkeep 占位)
- 入库 addons/epay、addons/wechat、public/assets/addons/*、addons/.htaccess(deny from all)
- config.php 入库为空白模板;服务器请在填好密钥后执行
  git update-index --skip-worktree addons/epay/config.php,避免真实密钥回传仓库

## 三、安全修复:余额充值资损(高危,已实测复现)
- 现象:POST /order/recharge {payType:'balance'} 只加余额不扣款(余额 134.50 → 1022.50),等于凭空增发余额,
  可再去买会员 / 付费发布 / 解锁联系方式
- 修复:/order/recharge 仅接受 payType=wxpay,balance → 「余额充值仅支持微信支付」,其它 → 「支付方式不支持」;
  订单恒为 status=pending、pay_type=wxpay、paytime=null;入账只发生在 /pay/notify 回调(Order::creditRecharge)
  或后台「会员管理 → 余额充值」(fc/userext/recharge)
- 小程序充值页同步为「仅微信支付」+ 防重复提交 + onShow 刷新资产;mock / 用例 / 文档同步

## 四、其他 v1.1.0 能力
- 媒体上传:POST /post/upload(图片 ≤10MB / 视频 ≤50MB,真落盘),发布页 uni.uploadFile 真上传
- LBS:fc_post.lat/lng、首页 sort=nearby(距离升序、无坐标排最后)、卡片 distance、详情页地图
- 互动:举报 POST /report(原因字典)、收藏 / 关注(fc_favorite / fc_follow、/favorite/*、/follow/toggle)
- 交易:余额充值 POST /order/recharge、优惠券 /coupon/list|receive(fc_coupon / fc_user_coupon、我的资产券)
- 发布计费:会员发布折扣(discountRate/discountText)+ 免费发布条数(freeQuota*)
- 后台新增:数据总览 fc/dashboard、系统设置 fc/setting、优惠券管理 fc/coupon(含菜单与权限节点)

## 五、本批审核修复
- 详情页:游客不再请求登录态接口(避免 401 被清 token 踢去登录);微信付费查看改为支付后轮询解锁,
  不再读取 wxpay 分支未返回的 contact;加防重复提交
- 发布页:freeLeftToday → freeQuotaLeft / freeQuotaCycle / freeUnlimited(对齐后端出参);
  上传图预览拼后端域名(新增 format.js#assetUrl,后端返回相对路径)
- 收藏空态「去首页」:switchTab → reLaunch(项目用自绘 fc-tabbar,无 tabBar,switchTab 必然失败)
- 会员券 days=0 显示「永久有效」;manifest.json 补 requiredPrivateInfos(getLocation / chooseLocation)
- 后端:publishConfig 补 discountRate/discountText 与 memberPostDiscountText();优惠券总开关 coupon.enabled
  真生效(关闭后 list/receive 拒绝);后台 fc/Coupon 的 add/edit 补 strip_tags 过滤(防存储型 XSS)、
  补 searchFields='name',列表 name 列再做一次 HTML 转义
- FcInstall:补清理后台菜单缓存 __menu__(否则新菜单要等缓存过期才显示),并同步 README 说明
- 后台语言包 fc/setting.php 按「支付只读 + 跳插件配置」的新页面重写
- 文档同步:uniapp/docs/{01,03,04}、uniapp/README.md、docs/05-后端实现规范.md、后台 README 上线步骤

## 六、校验结果(全部通过)
- 后端端到端:tools/verify-api.mjs 226/226(含新增「拒绝余额充值(资损防护)」用例)
- 小程序:uniapp/tests/run.mjs 167/167;validate.mjs 0 错 0 警;check-scss 19/19
- 后台:check-admin-i18n 0 错 0 警;check-theme 0 错 0 警;9 个页面 HTTP 200 全中文
- php -l 改动/新增 PHP 文件 0 语法错误;探针复测:余额不再增长、epay 插件下单/验签链路通
2026-10-19 10:03:13 +08:00

723 行
18 KiB
Vue

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<template>
<view class="fc-page home">
<!-- 顶部:LOGO + 定位 + 消息 + 搜索 -->
<view class="home__header">
<view class="home__header-status" :style="{ height: statusBarHeight + 'px' }"></view>
<view class="home__header-bar">
<image class="fc-logo fc-logo--sm" :src="logoUrl()" mode="aspectFit" />
<view class="home__location" @click="onLocation">
<image class="fc-icon fc-icon--sm" :src="iconUrl('home-location')" mode="aspectFit" />
<text class="home__location-text fc-ellipsis">{{ location }}</text>
<text class="home__location-arrow">▾</text>
</view>
<view class="home__msg" @click="go('/pages/message/index')">
<image class="fc-icon fc-icon--sm" :src="iconUrl('home-bell')" mode="aspectFit" />
<view v-if="unread > 0" class="home__msg-dot">{{ unread }}</view>
</view>
</view>
<view class="home__search" @click="goSearch">
<image class="fc-icon fc-icon--sm" :src="iconUrl('home-search')" mode="aspectFit" />
<text class="home__search-ph">搜索招聘、租房、二手…</text>
</view>
</view>
<!-- 轮播广告位:后台渐变底色 + 页面 CSS 装饰层 + 白色插画(视觉规则见 common/assets/banners.js) -->
<swiper class="home__banner" circular autoplay :interval="4000" :duration="500" indicator-dots
indicator-color="rgba(255,255,255,0.45)" indicator-active-color="#ffffff">
<swiper-item v-for="(b, i) in banners" :key="b.id">
<view class="home__banner-item" :style="{ background: bannerBg(b, i) }" @click="goBanner(b)">
<!-- 后台自定义整幅配图优先;未配置时用内置「绿底 + 白色插画」 -->
<image v-if="b.image" class="home__banner-photo" :src="b.image" mode="aspectFill" />
<view v-else class="home__banner-deco">
<view class="home__banner-glow"></view>
<view class="home__banner-vein"></view>
<view class="home__banner-hill home__banner-hill--far"></view>
<view class="home__banner-hill home__banner-hill--near"></view>
<view class="home__banner-badge">
<view class="home__banner-ring home__banner-ring--outer"></view>
<view class="home__banner-ring home__banner-ring--inner"></view>
<image class="home__banner-art" :src="bannerArtUrl(i)" mode="aspectFit" />
<view v-if="bannerHasValue(i)" class="home__banner-value">
<view class="home__banner-value-dot"></view>
<view class="home__banner-value-dot home__banner-value-dot--sm"></view>
</view>
</view>
</view>
<!-- 左侧压暗罩:白字在任何后台底色上都清透可读 -->
<view class="home__banner-shade"></view>
<view class="home__banner-text">
<text class="home__banner-tag">同城精选</text>
<text class="home__banner-title">{{ b.title }}</text>
<view class="home__banner-cta">
<text class="home__banner-cta-text">立即查看 ›</text>
</view>
</view>
</view>
</swiper-item>
</swiper>
<!-- 分类导航 -->
<view class="fc-card home__cats">
<view class="home__cats-head">
<text class="home__cats-title">同城分类</text>
<text class="home__cats-more" @click="go('/pages/post/list')">全部分类 ›</text>
</view>
<view class="home__cats-grid">
<view v-for="c in categories" :key="c.id" class="home__cat" @click="goCategory(c)">
<view class="home__cat-icon">
<image class="fc-icon--badge" :src="catIcon(c)" mode="aspectFit" />
</view>
<text class="home__cat-name">{{ c.name }}</text>
</view>
</view>
</view>
<!-- 会员引导条 -->
<view class="home__vip" @click="go('/pages/member/index')">
<view class="home__vip-left">
<image class="fc-icon fc-icon--md" :src="iconUrl('home-crown')" mode="aspectFit" />
<view class="home__vip-texts">
<text class="home__vip-title">{{ isMember ? '会员权益已生效' : '开通会员,发布 8 折' }}</text>
<text class="home__vip-sub">{{ isMember ? '每日免费查看 20 条联系方式' : '超值月卡 ¥19.9 起' }}</text>
</view>
</view>
<view class="home__vip-btn">{{ isMember ? '查看权益' : '立即开通' }}</view>
</view>
<!-- 筛选排序 -->
<view class="home__filter">
<view v-for="s in sorts" :key="s.value" class="home__filter-item"
:class="{ 'home__filter-item--active': sort === s.value }" @click="changeSort(s.value)">
<text>{{ s.label }}</text>
</view>
<view class="home__filter-item home__filter-item--area" @click="showAreaPicker = true">
<text>{{ area || '区域' }} ▾</text>
</view>
</view>
<!-- 骨架屏 -->
<view v-if="loading && !list.length">
<view v-for="i in 3" :key="i" class="fc-post-card home__skeleton">
<view class="fc-skeleton home__skeleton-thumb"></view>
<view class="home__skeleton-body">
<view class="fc-skeleton home__skeleton-line" style="width: 80%"></view>
<view class="fc-skeleton home__skeleton-line" style="width: 50%"></view>
<view class="fc-skeleton home__skeleton-line" style="width: 35%"></view>
</view>
</view>
</view>
<fc-empty v-else-if="!list.length" text="附近暂无信息,换个筛选条件试试" btn-text="去发布"
@action="go('/pages/post/create')" />
<view v-else>
<fc-post-card v-for="p in list" :key="p.id" :post="p" @click="goDetail" />
<view class="home__loadmore">
<text v-if="loading">加载中…</text>
<text v-else-if="!hasMore">— 已经到底啦 —</text>
<text v-else @click="loadMore">加载更多</text>
</view>
</view>
<view class="home__tabbar-space"></view>
<fc-tabbar :current="0" />
<!-- 区域选择弹层 -->
<view v-if="showAreaPicker" class="home__mask" @click="showAreaPicker = false">
<view class="home__sheet" @click.stop>
<text class="home__sheet-title">选择区域</text>
<view class="home__sheet-list">
<view v-for="a in areaOptions" :key="a" class="home__sheet-item"
:class="{ 'home__sheet-item--active': area === a }" @click="pickArea(a)">
<text>{{ a }}</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import FcPostCard from '@/components/fc-post-card/fc-post-card.vue'
import FcTabbar from '@/components/fc-tabbar/fc-tabbar.vue'
import FcEmpty from '@/components/fc-empty/fc-empty.vue'
import homeApi from '@/common/api/home.js'
import { useUserStore } from '@/common/store/index.js'
import { iconUrl, logoUrl, categoryIconUrl, loadUiConfig } from '@/common/store/ui.js'
import { bannerArtUrl, bannerHasValue, bannerBg } from '@/common/assets/banners.js'
export default {
components: { FcPostCard, FcTabbar, FcEmpty },
data() {
return {
statusBarHeight: 20,
location: '贵阳 · 观山湖区',
unread: 2,
banners: [],
categories: [],
list: [],
page: 1,
size: 10,
hasMore: true,
loading: false,
sort: 'new',
area: '',
lat: null,
lng: null,
showAreaPicker: false,
areaOptions: ['云岩区', '南明区', '观山湖区', '花溪区'],
sorts: [
{ label: '最新', value: 'new' },
{ label: '最热', value: 'hot' },
{ label: '价格', value: 'price' },
{ label: '附近', value: 'nearby' },
],
}
},
computed: {
isMember() {
try {
return useUserStore().isMember.value
} catch (e) {
return false
}
},
},
onLoad() {
try {
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight || 20
} catch (e) {}
// 拉取后台自定义的 LOGO 与图标配置(失败自动用内置默认图)
loadUiConfig()
// LBS:取一次坐标(失败静默降级,不阻塞首页)
this.fetchLocation()
this.bootstrap()
},
// 每次切回首页都强制重新拉取后台配置:
// 否则 loadUiConfig 内部的 `if (loaded && !force) return` 会让后台改动
// 必须重启小程序才生效,表现为「后台改了前端不变」。
onShow() {
loadUiConfig(true)
},
onPullDownRefresh() {
this.page = 1
this.hasMore = true
// 手动下拉时也同步一次后台配置
loadUiConfig(true)
this.bootstrap().finally(() => uni.stopPullDownRefresh())
},
onReachBottom() {
this.loadMore()
},
methods: {
// 图标/LOGO 地址(由后台配置决定,未配置时用内置图标)
iconUrl,
logoUrl,
// 轮播:内置白色插画 + 金色价值点缀(规则见 common/assets/banners.js)
bannerArtUrl,
bannerHasValue,
bannerBg,
catIcon(c) {
return (c.iconKey && iconUrl(c.iconKey)) || categoryIconUrl(c.id)
},
async bootstrap() {
this.loading = true
try {
const [banners, categories] = await Promise.all([homeApi.banners(), homeApi.categories()])
this.banners = banners
this.categories = categories
} catch (e) {
console.warn('首页基础数据加载失败', e)
}
await this.fetchFeed(true)
this.loading = false
},
/**
* 取用户坐标(gcj02,与后端 LBS 口径一致)。
* 失败静默降级:不弹提示、不阻塞首页,仅本次请求不带 lat/lng。
*/
fetchLocation() {
if (typeof uni === 'undefined' || !uni.getLocation) return
uni.getLocation({
type: 'gcj02',
success: (res) => {
this.lat = res.latitude
this.lng = res.longitude
// 坐标到手后刷新一次(排序/距离随之生效)
this.page = 1
this.fetchFeed(true)
},
fail: () => {},
})
},
async fetchFeed(reset = false) {
this.loading = true
try {
const res = await homeApi.feed({
page: this.page,
size: this.size,
sort: this.sort,
area: this.area || undefined,
lat: this.lat != null ? this.lat : undefined,
lng: this.lng != null ? this.lng : undefined,
})
this.list = reset ? res.list : this.list.concat(res.list)
this.hasMore = res.hasMore
} catch (e) {
uni.showToast({ title: '加载失败,请稍后重试', icon: 'none' })
} finally {
this.loading = false
}
},
loadMore() {
if (!this.hasMore || this.loading) return
this.page += 1
this.fetchFeed()
},
changeSort(v) {
if (this.sort === v) return
this.sort = v
this.page = 1
this.fetchFeed(true)
},
pickArea(a) {
this.area = this.area === a ? '' : a
this.showAreaPicker = false
this.page = 1
this.fetchFeed(true)
},
go(url) {
uni.navigateTo({ url })
},
goSearch() {
uni.navigateTo({ url: '/pages/search/index' })
},
goCategory(c) {
uni.navigateTo({ url: `/pages/post/list?categoryId=${c.id}&name=${encodeURIComponent(c.name)}` })
},
goBanner(b) {
uni.navigateTo({ url: b.link })
},
goDetail(p) {
uni.navigateTo({ url: `/pages/detail/detail?id=${p.id}` })
},
onLocation() {
// 手动点定位:重新取一次坐标(失败静默,保持现有显示)
this.fetchLocation()
uni.showToast({ title: '已按当前位置刷新', icon: 'none' })
},
},
}
</script>
<style lang="scss" scoped>
.home__header {
background: $fc-gradient-hero;
padding-bottom: 70rpx;
}
.home__header-bar {
display: flex;
align-items: center;
padding: 6rpx 24rpx 0;
}
.home__location {
flex: 1;
display: flex;
align-items: center;
min-width: 0;
margin: 0 16rpx;
}
.home__location-text {
font-size: $fc-font;
color: #ffffff;
margin: 0 6rpx;
font-weight: 600;
}
.home__location-arrow {
font-size: $fc-font-xs;
color: rgba(255, 255, 255, 0.85);
}
.home__search {
margin: 20rpx 24rpx 0;
height: 72rpx;
border-radius: $fc-radius-pill;
background: rgba(255, 255, 255, 0.94);
display: flex;
align-items: center;
padding: 0 24rpx;
}
.home__search-ph {
margin-left: 12rpx;
font-size: $fc-font-sm;
color: $fc-text-placeholder;
}
.home__msg {
position: relative;
width: 56rpx;
height: 56rpx;
display: flex;
align-items: center;
justify-content: center;
}
.home__msg-dot {
position: absolute;
top: -4rpx;
right: -8rpx;
min-width: 30rpx;
height: 30rpx;
padding: 0 6rpx;
border-radius: 999rpx;
background: #ffffff;
color: $fc-primary-text;
font-size: 20rpx;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
/* ---------- 轮播卡:绿底 + 中性装饰层 + 白色插画 ---------- */
.home__banner {
height: 300rpx;
margin: -50rpx 24rpx 0;
border-radius: $fc-radius-lg;
overflow: hidden;
box-shadow: $fc-shadow-lg;
}
.home__banner-item {
position: relative;
height: 100%;
overflow: hidden;
padding: 26rpx 0 26rpx 32rpx;
display: flex;
flex-direction: column;
justify-content: center;
}
/* 后台自定义整幅配图(优先) */
.home__banner-photo {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
/* 装饰层:一律用中性半透明白 / 深绿,跟随任何后台底色都不会串色 */
.home__banner-deco {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.home__banner-glow {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: radial-gradient(circle at 80% 44%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 46%,
rgba(255, 255, 255, 0) 72%);
}
.home__banner-vein {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1rpx,
rgba(255, 255, 255, 0) 1rpx, rgba(255, 255, 255, 0) 54rpx);
}
.home__banner-hill {
position: absolute;
border-radius: 50%;
}
.home__banner-hill--far {
left: -26%;
width: 152%;
top: 194rpx;
height: 260rpx;
background: rgba(4, 48, 42, 0.22);
}
.home__banner-hill--near {
left: -14%;
width: 128%;
top: 236rpx;
height: 240rpx;
background: rgba(4, 48, 42, 0.26);
}
/* 大圆徽章:双环 + 白色插画(与 LOGO 的白色定位针同一手法) */
.home__banner-badge {
position: absolute;
right: 14rpx;
top: 50%;
width: 220rpx;
height: 220rpx;
margin-top: -110rpx;
display: flex;
align-items: center;
justify-content: center;
}
.home__banner-ring {
position: absolute;
left: 50%;
top: 50%;
border-radius: 50%;
}
.home__banner-ring--outer {
width: 218rpx;
height: 218rpx;
margin: -109rpx 0 0 -109rpx;
border: 2rpx solid rgba(255, 255, 255, 0.14);
}
.home__banner-ring--inner {
width: 164rpx;
height: 164rpx;
margin: -82rpx 0 0 -82rpx;
border: 2rpx dotted rgba(255, 255, 255, 0.26);
}
.home__banner-art {
width: 116rpx;
height: 116rpx;
}
/* 金色「价值点缀」:只给「直降 / 免费」这类价值主张(像嵌在圆环上的一颗宝石) */
.home__banner-value {
position: absolute;
right: 10rpx;
top: 30rpx;
display: flex;
align-items: center;
}
.home__banner-value-dot {
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background: $fc-accent-light;
box-shadow: 0 0 16rpx rgba(245, 166, 35, 0.7);
}
.home__banner-value-dot--sm {
width: 10rpx;
height: 10rpx;
margin-left: 12rpx;
background: $fc-accent;
box-shadow: none;
}
/* 左侧压暗罩 + 文字(白字在任何底色上都够清透) */
.home__banner-shade {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 44%,
rgba(255, 255, 255, 0) 70%);
}
.home__banner-text {
position: relative;
width: 62%;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.home__banner-tag {
padding: 4rpx 16rpx;
border-radius: $fc-radius-pill;
background: rgba(255, 255, 255, 0.72);
border: 2rpx solid rgba(255, 255, 255, 0.45);
color: $fc-primary-ink;
font-size: 22rpx;
letter-spacing: 1rpx;
}
.home__banner-title {
margin-top: 14rpx;
color: $fc-primary-ink;
font-size: 34rpx;
font-weight: 700;
line-height: $fc-leading-tight;
text-shadow: 0 2rpx 10rpx rgba(255, 255, 255, 0.35);
}
.home__banner-cta {
margin-top: 16rpx;
padding: 8rpx 24rpx;
border-radius: $fc-radius-pill;
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 6rpx 18rpx rgba(4, 48, 42, 0.18);
}
.home__banner-cta-text {
color: $fc-primary-text;
font-size: 24rpx;
font-weight: 600;
}
.home__cats {
margin-top: 24rpx;
}
.home__cats-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
}
.home__cats-title {
font-size: $fc-font-lg;
font-weight: 700;
color: $fc-text;
}
.home__cats-more {
font-size: $fc-font-sm;
color: $fc-text-secondary;
}
.home__cats-grid {
display: flex;
flex-wrap: wrap;
}
.home__cat {
width: 25%;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 24rpx;
}
.home__cat-icon {
width: 96rpx;
height: 96rpx;
display: flex;
align-items: center;
justify-content: center;
}
.home__cat-name {
margin-top: 14rpx;
font-size: $fc-font-sm;
color: $fc-text-regular;
line-height: $fc-leading-tight;
}
.home__vip {
margin: 0 24rpx 24rpx;
padding: 24rpx 28rpx;
border-radius: $fc-radius-lg;
background: $fc-gradient-warm;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: $fc-shadow;
}
.home__vip-left {
display: flex;
align-items: center;
}
.home__vip-texts {
display: flex;
flex-direction: column;
}
.home__vip-title {
color: #ffffff;
font-size: $fc-font-lg;
font-weight: 700;
line-height: $fc-leading-tight;
}
.home__vip-sub {
color: rgba(255, 255, 255, 0.9);
font-size: $fc-font-xs;
margin-top: 8rpx;
}
.home__vip-btn {
padding: 12rpx 28rpx;
border-radius: $fc-radius-pill;
background: #ffffff;
color: $fc-primary-text;
font-size: $fc-font-sm;
font-weight: 700;
}
.home__filter {
display: flex;
align-items: center;
padding: 0 24rpx 16rpx;
}
.home__filter-item {
margin-right: 28rpx;
font-size: $fc-font;
color: $fc-text-secondary;
&--active {
color: $fc-primary-text;
font-weight: 700;
}
&--area {
margin-left: auto;
margin-right: 0;
}
}
.home__skeleton {
display: flex;
background: #ffffff;
}
.home__skeleton-thumb {
width: 200rpx;
height: 200rpx;
flex: 0 0 200rpx;
margin-right: 24rpx;
}
.home__skeleton-body {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.home__skeleton-line {
height: 26rpx;
}
.home__loadmore {
text-align: center;
padding: 24rpx 0 32rpx;
font-size: $fc-font-sm;
color: $fc-text-placeholder;
}
.home__tabbar-space {
height: 130rpx;
}
.home__mask {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 200;
background: rgba(4, 48, 42, 0.5);
display: flex;
align-items: flex-end;
}
.home__sheet {
width: 100%;
background: #ffffff;
border-radius: 32rpx 32rpx 0 0;
padding: 36rpx 32rpx 60rpx;
}
.home__sheet-title {
display: block;
text-align: center;
font-size: $fc-font-lg;
font-weight: 700;
margin-bottom: 28rpx;
}
.home__sheet-list {
display: flex;
flex-wrap: wrap;
}
.home__sheet-item {
width: 30%;
margin: 0 1.5% 20rpx;
height: 76rpx;
border-radius: $fc-radius;
background: $fc-bg;
display: flex;
align-items: center;
justify-content: center;
font-size: $fc-font;
color: $fc-text-regular;
&--active {
background: $fc-primary-lighter;
color: $fc-primary-text;
font-weight: 700;
border: 2rpx solid $fc-primary-text;
}
}
</style>