feat(hhrs): 开发文旅场馆、商户折扣、中奖名单三个H5页面
- 新增自定义导航栏(返回按钮 + 标题) - 文旅场馆/商户折扣:搜索栏 + 卡片列表(缩略图/名称/分类/地址/距离) - 中奖名单:公告区 + 统计卡片 + 三期Tab切换 + 中奖者表格 - pages.json 新增 navigationStyle: custom 配置 - common/http.api.js 新增 mp-api/hhrs 前缀接口占位 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e4c29a08b4
commit
b37aa6bf81
+20
-3
@@ -1,5 +1,10 @@
|
||||
0 // 如果没有通过拦截器配置域名的话,可以在这里写上完整的URL(加上域名部分)
|
||||
// 如果没有通过拦截器配置域名的话,可以在这里写上完整的URL(加上域名部分)
|
||||
let LoginUrl = 'app-api/auth/checkerLogin';
|
||||
let VenueListUrl = 'mp-api/hhrs/venue/list';
|
||||
let VenueDetailUrl = 'mp-api/hhrs/venue/detail';
|
||||
let MerchantListUrl = 'mp-api/hhrs/merchant/list';
|
||||
let MerchantDetailUrl = 'mp-api/hhrs/merchant/detail';
|
||||
let WinnerListUrl = 'mp-api/hhrs/winner/list';
|
||||
|
||||
|
||||
// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
|
||||
@@ -8,13 +13,25 @@ const install = (Vue, vm) => {
|
||||
// 此处没有使用传入的params参数
|
||||
let checkerLogin = (params = {}) => vm.$u.post(LoginUrl, params);
|
||||
|
||||
// 文旅场馆
|
||||
let getVenueList = (params = {}) => vm.$u.get(VenueListUrl, params);
|
||||
let getVenueDetail = (params = {}) => vm.$u.post(VenueDetailUrl, params);
|
||||
|
||||
// 此处使用了传入的params参数,一切自定义即可
|
||||
// 商户折扣
|
||||
let getMerchantList = (params = {}) => vm.$u.get(MerchantListUrl, params);
|
||||
let getMerchantDetail = (params = {}) => vm.$u.post(MerchantDetailUrl, params);
|
||||
|
||||
// 中奖名单
|
||||
let getWinnerList = (params = {}) => vm.$u.get(WinnerListUrl, params);
|
||||
|
||||
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
|
||||
vm.$u.api = {
|
||||
checkerLogin,
|
||||
|
||||
getVenueList,
|
||||
getVenueDetail,
|
||||
getMerchantList,
|
||||
getMerchantDetail,
|
||||
getWinnerList,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+6
-3
@@ -19,13 +19,15 @@
|
||||
{
|
||||
"path": "pages/venue/venue",
|
||||
"style": {
|
||||
"navigationBarTitleText": "文旅场馆"
|
||||
"navigationBarTitleText": "文旅场馆",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/discount/discount",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商户折扣"
|
||||
"navigationBarTitleText": "商户折扣",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -37,7 +39,8 @@
|
||||
{
|
||||
"path": "pages/winners/winners",
|
||||
"style": {
|
||||
"navigationBarTitleText": "中奖名单"
|
||||
"navigationBarTitleText": "中奖名单",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+220
-18
@@ -1,30 +1,232 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="content">
|
||||
<text>商户折扣</text>
|
||||
<!-- 自定义导航栏 -->
|
||||
<view class="nav-bar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="nav-header">
|
||||
<view class="nav-back" @click="goBack">
|
||||
<text class="back-icon"></text>
|
||||
</view>
|
||||
<text class="nav-title">商户折扣</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 搜索栏 -->
|
||||
<view class="search-area">
|
||||
<view class="search-bar">
|
||||
<text class="search-icon"></text>
|
||||
<input class="search-input" v-model="keyword" placeholder="请搜索商户名" confirm-type="search" @confirm="onSearch" />
|
||||
<view class="search-btn" @click="onSearch">搜索</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商户列表 -->
|
||||
<view class="list-area">
|
||||
<view class="merchant-card" v-for="item in list" :key="item.id" @click="goDetail(item)">
|
||||
<image class="card-img" :src="item.image" mode="aspectFill" />
|
||||
<view class="card-info">
|
||||
<text class="card-name">{{ item.name }}</text>
|
||||
<text class="card-category">{{ item.category }}</text>
|
||||
<text class="card-address">{{ item.address }}</text>
|
||||
</view>
|
||||
<view class="card-distance">
|
||||
<text class="distance-icon"></text>
|
||||
<text class="distance-text">{{ item.distance }}km</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
statusBarHeight: 44,
|
||||
keyword: '',
|
||||
list: [
|
||||
{
|
||||
id: 1,
|
||||
name: '万达影城(怀化市鹤城区万...',
|
||||
category: '影城',
|
||||
address: '怀化市鹤城区万达广场 C 区501',
|
||||
image: 'https://aliyunoss.hn12301.net/hhrs/hhrs_merchant1.png',
|
||||
distance: '1.4'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '绝味鸭脖(绝味怀化万达...',
|
||||
category: '商超',
|
||||
address: '怀化市鹤城区万达广场 C 区501',
|
||||
image: 'https://aliyunoss.hn12301.net/hhrs/hhrs_merchant2.png',
|
||||
distance: '1.4'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
const sysInfo = uni.getSystemInfoSync()
|
||||
this.statusBarHeight = sysInfo.statusBarHeight || 44
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
onLoad() {},
|
||||
methods: {}
|
||||
goDetail(item) {
|
||||
uni.navigateTo({ url: '/pages/discount/detail?id=' + item.id })
|
||||
},
|
||||
onSearch() {
|
||||
// TODO: 调用搜索接口
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
}
|
||||
<style>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background-color: #f2f2f7;
|
||||
}
|
||||
|
||||
.nav-bar {
|
||||
background-color: #ffffff;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.nav-header {
|
||||
height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-back {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.back-icon {
|
||||
font-size: 20px;
|
||||
color: #1a1818;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #1a1818;
|
||||
}
|
||||
|
||||
.search-area {
|
||||
background-color: #ffffff;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 44px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #f2f2f7;
|
||||
border-radius: 100px;
|
||||
padding: 4px 8px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
font-size: 18px;
|
||||
color: #8e8e93;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
background-color: #0088ff;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 50px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.list-area {
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.merchant-card {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #f2f2f7;
|
||||
border-radius: 6px;
|
||||
padding: 24px 12px;
|
||||
gap: 12px;
|
||||
box-shadow: 0 2px 3px #f2f2f7;
|
||||
}
|
||||
|
||||
.card-img {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
border-radius: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.card-name {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.card-category {
|
||||
font-size: 14px;
|
||||
color: #727272;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.card-address {
|
||||
font-size: 14px;
|
||||
color: #727272;
|
||||
margin-top: 8px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.card-distance {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.distance-icon {
|
||||
font-size: 12px;
|
||||
color: #727272;
|
||||
}
|
||||
|
||||
.distance-text {
|
||||
font-size: 12px;
|
||||
color: #727272;
|
||||
}
|
||||
</style>
|
||||
|
||||
+220
-18
@@ -1,30 +1,232 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="content">
|
||||
<text>文旅场馆</text>
|
||||
<!-- 自定义导航栏 -->
|
||||
<view class="nav-bar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="nav-header">
|
||||
<view class="nav-back" @click="goBack">
|
||||
<text class="back-icon"></text>
|
||||
</view>
|
||||
<text class="nav-title">文旅场馆</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 搜索栏 -->
|
||||
<view class="search-area">
|
||||
<view class="search-bar">
|
||||
<text class="search-icon"></text>
|
||||
<input class="search-input" v-model="keyword" placeholder="请搜索场馆名" confirm-type="search" @confirm="onSearch" />
|
||||
<view class="search-btn" @click="onSearch">搜索</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 场馆列表 -->
|
||||
<view class="list-area">
|
||||
<view class="venue-card" v-for="item in list" :key="item.id" @click="goDetail(item)">
|
||||
<image class="card-img" :src="item.image" mode="aspectFill" />
|
||||
<view class="card-info">
|
||||
<text class="card-name">{{ item.name }}</text>
|
||||
<text class="card-category">{{ item.category }}</text>
|
||||
<text class="card-address">{{ item.address }}</text>
|
||||
</view>
|
||||
<view class="card-distance">
|
||||
<text class="distance-icon"></text>
|
||||
<text class="distance-text">{{ item.distance }}km</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
statusBarHeight: 44,
|
||||
keyword: '',
|
||||
list: [
|
||||
{
|
||||
id: 1,
|
||||
name: '怀化黄岩白马风景区',
|
||||
category: '景区',
|
||||
address: '怀化市鹤城区万达广场 C 区501',
|
||||
image: 'https://aliyunoss.hn12301.net/hhrs/hhrs_venue1.png',
|
||||
distance: '1.4'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '穿岩山国家森林公园景区',
|
||||
category: '景区',
|
||||
address: '怀化市鹤城区万达广场 C 区501',
|
||||
image: 'https://aliyunoss.hn12301.net/hhrs/hhrs_venue2.png',
|
||||
distance: '1.4'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
const sysInfo = uni.getSystemInfoSync()
|
||||
this.statusBarHeight = sysInfo.statusBarHeight || 44
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
onLoad() {},
|
||||
methods: {}
|
||||
goDetail(item) {
|
||||
uni.navigateTo({ url: '/pages/venue/detail?id=' + item.id })
|
||||
},
|
||||
onSearch() {
|
||||
// TODO: 调用搜索接口
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
}
|
||||
<style>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background-color: #f2f2f7;
|
||||
}
|
||||
|
||||
.nav-bar {
|
||||
background-color: #ffffff;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.nav-header {
|
||||
height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-back {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.back-icon {
|
||||
font-size: 20px;
|
||||
color: #1a1818;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #1a1818;
|
||||
}
|
||||
|
||||
.search-area {
|
||||
background-color: #ffffff;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 44px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #f2f2f7;
|
||||
border-radius: 100px;
|
||||
padding: 4px 8px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
font-size: 18px;
|
||||
color: #8e8e93;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
background-color: #0088ff;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 50px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.list-area {
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.venue-card {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #f2f2f7;
|
||||
border-radius: 6px;
|
||||
padding: 24px 12px;
|
||||
gap: 12px;
|
||||
box-shadow: 0 2px 3px #f2f2f7;
|
||||
}
|
||||
|
||||
.card-img {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
border-radius: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.card-name {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.card-category {
|
||||
font-size: 14px;
|
||||
color: #727272;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.card-address {
|
||||
font-size: 14px;
|
||||
color: #727272;
|
||||
margin-top: 8px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.card-distance {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.distance-icon {
|
||||
font-size: 12px;
|
||||
color: #727272;
|
||||
}
|
||||
|
||||
.distance-text {
|
||||
font-size: 12px;
|
||||
color: #727272;
|
||||
}
|
||||
</style>
|
||||
|
||||
+283
-18
@@ -1,30 +1,295 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view class="content">
|
||||
<text>中奖名单</text>
|
||||
<!-- 自定义导航栏 -->
|
||||
<view class="nav-bar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="nav-header">
|
||||
<view class="nav-back" @click="goBack">
|
||||
<text class="back-icon"></text>
|
||||
</view>
|
||||
<text class="nav-title">中奖名单</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 顶部公告区 -->
|
||||
<view class="banner-area">
|
||||
<view class="banner-header">
|
||||
<text class="banner-icon">🏆</text>
|
||||
<text class="banner-title">中奖名单公示</text>
|
||||
</view>
|
||||
<text class="banner-subtitle">总计 10,000份权益包,分三期公证抽取</text>
|
||||
<view class="stats-card">
|
||||
<text class="stats-gift">🎁</text>
|
||||
<text class="stats-label">已产生</text>
|
||||
<text class="stats-number">7,000</text>
|
||||
<text class="stats-label">名幸运持卡人</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 三期 Tab -->
|
||||
<view class="tab-bar">
|
||||
<view
|
||||
class="tab-item"
|
||||
:class="{ active: currentTab === index }"
|
||||
v-for="(tab, index) in tabs"
|
||||
:key="index"
|
||||
@click="switchTab(index)"
|
||||
>
|
||||
<text class="tab-label">{{ tab.name }}</text>
|
||||
<text class="tab-date">{{ tab.date }}</text>
|
||||
<view class="tab-indicator" v-if="currentTab === index"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 中奖者表格 -->
|
||||
<view class="table-area">
|
||||
<view class="table-header">
|
||||
<text class="table-col col-name">姓名</text>
|
||||
<text class="table-col col-idcard">身份证</text>
|
||||
<text class="table-col col-phone">手机号码</text>
|
||||
</view>
|
||||
<view class="table-row" v-for="(item, index) in currentList" :key="index">
|
||||
<text class="table-col col-name">{{ item.name }}</text>
|
||||
<text class="table-col col-idcard">{{ item.idCard }}</text>
|
||||
<text class="table-col col-phone">{{ item.phone }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
statusBarHeight: 44,
|
||||
currentTab: 0,
|
||||
tabs: [
|
||||
{ name: '第一期', date: '2026.02.10' },
|
||||
{ name: '第二期', date: '2026.04.10' },
|
||||
{ name: '第三期', date: '2026.06.10' }
|
||||
],
|
||||
winnerData: {
|
||||
0: [
|
||||
{ name: '王大力分', idCard: '4306********1920', phone: '186****1212' },
|
||||
{ name: '王东林', idCard: '4306********1921', phone: '186****9010' }
|
||||
],
|
||||
1: [],
|
||||
2: []
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
currentList() {
|
||||
return this.winnerData[this.currentTab] || []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
const sysInfo = uni.getSystemInfoSync()
|
||||
this.statusBarHeight = sysInfo.statusBarHeight || 44
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
uni.navigateBack()
|
||||
},
|
||||
onLoad() {},
|
||||
methods: {}
|
||||
switchTab(index) {
|
||||
this.currentTab = index
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
}
|
||||
<style>
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
background-color: #f2f2f7;
|
||||
}
|
||||
|
||||
/* 自定义导航栏 */
|
||||
.nav-bar {
|
||||
background-color: #ffffff;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.nav-header {
|
||||
height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-back {
|
||||
position: absolute;
|
||||
left: 14px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.back-icon {
|
||||
font-size: 20px;
|
||||
color: #1a1818;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #1a1818;
|
||||
}
|
||||
|
||||
/* 顶部公告区 */
|
||||
.banner-area {
|
||||
background-color: #ffffff;
|
||||
padding: 24px;
|
||||
border-radius: 0 0 10px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 17px;
|
||||
}
|
||||
|
||||
.banner-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.banner-icon {
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
.banner-title {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #0d387d;
|
||||
}
|
||||
|
||||
.banner-subtitle {
|
||||
font-size: 14px;
|
||||
color: #8e8e93;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stats-card {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
background: linear-gradient(146deg, #4981d2 0%, #1853af 100%);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.stats-gift {
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
.stats-label {
|
||||
font-size: 14px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.stats-number {
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
color: #fce7b0;
|
||||
}
|
||||
|
||||
/* 三期 Tab */
|
||||
.tab-bar {
|
||||
display: flex;
|
||||
background-color: #ffffff;
|
||||
padding-top: 12px;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 88px;
|
||||
position: relative;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.tab-label {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #b1b1b1;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.tab-date {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #b1b1b1;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.tab-item.active .tab-label,
|
||||
.tab-item.active .tab-date {
|
||||
color: #3d85ff;
|
||||
}
|
||||
|
||||
.tab-indicator {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 24px;
|
||||
height: 4px;
|
||||
background-color: #3d85ff;
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
/* 中奖者表格 */
|
||||
.table-area {
|
||||
background-color: #ffffff;
|
||||
margin: 0 12px;
|
||||
margin-top: 12px;
|
||||
border-radius: 10px 10px 0 0;
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 470px;
|
||||
}
|
||||
|
||||
.table-header,
|
||||
.table-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #f2f2f7;
|
||||
}
|
||||
|
||||
.table-header {
|
||||
color: #8e8e93;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.table-row {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.table-col {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.col-name {
|
||||
width: 80px;
|
||||
flex: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-idcard {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.col-phone {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user