|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <view class="home d-flex flex-col bg-base">
|
|
|
|
|
|
+ <view class="home-container page-home d-flex flex-col bg-base">
|
|
<image
|
|
<image
|
|
class="w-100 position-absolute"
|
|
class="w-100 position-absolute"
|
|
src="/static/images/home/BackgroundBanner.png"
|
|
src="/static/images/home/BackgroundBanner.png"
|
|
@@ -11,6 +11,8 @@
|
|
mode="widthFix"
|
|
mode="widthFix"
|
|
/>
|
|
/>
|
|
<view class="content d-flex flex-col wing-l">
|
|
<view class="content d-flex flex-col wing-l">
|
|
|
|
+
|
|
|
|
+ <!-- 分栏 -->
|
|
<view class="shadow-lg radius-l bg-base p-3">
|
|
<view class="shadow-lg radius-l bg-base p-3">
|
|
<image
|
|
<image
|
|
class="w-100"
|
|
class="w-100"
|
|
@@ -19,7 +21,25 @@
|
|
/>
|
|
/>
|
|
<view class="position-relative d-flex flex-row flex-wrap justify-between mt-3">
|
|
<view class="position-relative d-flex flex-row flex-wrap justify-between mt-3">
|
|
<view
|
|
<view
|
|
- v-for="(tab, k) in subTabs"
|
|
|
|
|
|
+ v-for="(tab, k) in subTabs1"
|
|
|
|
+ :key="k"
|
|
|
|
+ class="d-flex flex-column align-center width-1-5 mt-2"
|
|
|
|
+ >
|
|
|
|
+ <image class="width-100" :src="tab.icon" mode="widthFix" />
|
|
|
|
+ <text class="color-second-text mt-2">{{ tab.name }}</text>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="d-flex w-100 flex-row align-center bg-light-light-primary radius-base mt-3 mb-3 p-3">
|
|
|
|
+ <image class="width-150 height-150 radius-base" src="/static/images/home/ImageTest.png" mode="aspectFill" />
|
|
|
|
+ <view class="d-flex flex-col ml-3 flex-one">
|
|
|
|
+ <text class="color-second-text">里厚吖:你好呀</text>
|
|
|
|
+ <image class="width-50 height-50 mt-3" src="/static/images/home/PlayButtonSmall.png" />
|
|
|
|
+ </view>
|
|
|
|
+ <text class="iconfont icon-arrow-right color-primary" />
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view
|
|
|
|
+ v-for="(tab, k) in subTabs2"
|
|
:key="k"
|
|
:key="k"
|
|
class="d-flex flex-column align-center width-1-5 mt-2"
|
|
class="d-flex flex-column align-center width-1-5 mt-2"
|
|
>
|
|
>
|
|
@@ -28,6 +48,87 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <!-- 文化地图 -->
|
|
|
|
+ <view class="home-title">
|
|
|
|
+ <text class="font-SongtiSCBlack">文化地图</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="position-relative radius-l overflow-hidden">
|
|
|
|
+ <map
|
|
|
|
+ class="w-100 height-400"
|
|
|
|
+ />
|
|
|
|
+ <view class="position-absolute map-tags d-flex flex-row">
|
|
|
|
+ <view class="active">
|
|
|
|
+ <text class="iconfont icon-read" />
|
|
|
|
+ 文物
|
|
|
|
+ </view>
|
|
|
|
+ <view>
|
|
|
|
+ <text class="iconfont icon-task-trip" />
|
|
|
|
+ 非遗
|
|
|
|
+ </view>
|
|
|
|
+ <view>
|
|
|
|
+ <text class="iconfont icon-tougao-01" />
|
|
|
|
+ 传习所
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- 近期活动 -->
|
|
|
|
+ <view class="home-title">
|
|
|
|
+ <text>近期活动</text>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="d-flex flex-col shadow-lg radius-l bg-base p-3">
|
|
|
|
+ <image
|
|
|
|
+ class="w-100 radius-base"
|
|
|
|
+ src="/static/images/home/ImageTest.png"
|
|
|
|
+ mode="widthFix"
|
|
|
|
+ />
|
|
|
|
+ <view class="d-flex flex-row justify-between mt-3">
|
|
|
|
+ <text class="color-primary size-l">茶艺传承工坊</text>
|
|
|
|
+ <text class="color-primary">剩余名额:8</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="d-flex flex-row justify-between align-center mt-3">
|
|
|
|
+ <view class="d-flex flex-one flex-col">
|
|
|
|
+ <text class="color-second size-l">
|
|
|
|
+ <text class="iconfont icon-read mr-2" />
|
|
|
|
+ 湖里创新园
|
|
|
|
+ </text>
|
|
|
|
+ <text class="color-second">
|
|
|
|
+ <text class="iconfont icon-time mr-2" />
|
|
|
|
+ 2025年06月16日 12:00
|
|
|
|
+ </text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="width-1-5">
|
|
|
|
+ <u-button shape="circle" type="primary">立即报名</u-button>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- 精彩推荐 -->
|
|
|
|
+ <view class="home-title">
|
|
|
|
+ <text>精彩推荐</text>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="d-flex flex-row justify-between flex-wrap">
|
|
|
|
+ <view
|
|
|
|
+ v-for="(tab, k) in recommend"
|
|
|
|
+ :key="k"
|
|
|
|
+ class="grid4-item position-relative mb-3"
|
|
|
|
+ >
|
|
|
|
+ <text
|
|
|
|
+ class="tag bg-mask-white color-primary radius-l p-2 position-absolute size-s"
|
|
|
|
+ >
|
|
|
|
+ {{ tab.name }}
|
|
|
|
+ </text>
|
|
|
|
+ <image
|
|
|
|
+ class="w-100 radius-base"
|
|
|
|
+ :src="tab.icon"
|
|
|
|
+ mode="widthFix"
|
|
|
|
+ />
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<tabbar :current="0"></tabbar>
|
|
<tabbar :current="0"></tabbar>
|
|
@@ -43,28 +144,58 @@ import MainBoxIcon5 from '/static/images/home/MainBoxIcon5.png';
|
|
import MainBoxIcon6 from '/static/images/home/MainBoxIcon6.png';
|
|
import MainBoxIcon6 from '/static/images/home/MainBoxIcon6.png';
|
|
import MainBoxIcon7 from '/static/images/home/MainBoxIcon7.png';
|
|
import MainBoxIcon7 from '/static/images/home/MainBoxIcon7.png';
|
|
import MainBoxIcon8 from '/static/images/home/MainBoxIcon8.png';
|
|
import MainBoxIcon8 from '/static/images/home/MainBoxIcon8.png';
|
|
|
|
+import ImageTest2 from '/static/images/home/ImageTest2.png';
|
|
|
|
+import ImageTest3 from '/static/images/home/ImageTest3.png';
|
|
|
|
+import ImageTest4 from '/static/images/home/ImageTest4.png';
|
|
|
|
+import ImageTest5 from '/static/images/home/ImageTest5.png';
|
|
|
|
|
|
-const subTabs = [
|
|
|
|
|
|
+const subTabs1 = [
|
|
{ name: '闽南语', icon: MainBoxIcon1 },
|
|
{ name: '闽南语', icon: MainBoxIcon1 },
|
|
{ name: '古早味', icon: MainBoxIcon2 },
|
|
{ name: '古早味', icon: MainBoxIcon2 },
|
|
{ name: '先贤列传', icon: MainBoxIcon3 },
|
|
{ name: '先贤列传', icon: MainBoxIcon3 },
|
|
{ name: '民俗活动', icon: MainBoxIcon4 },
|
|
{ name: '民俗活动', icon: MainBoxIcon4 },
|
|
|
|
+]
|
|
|
|
+const subTabs2 = [
|
|
{ name: '红砖厝韵', icon: MainBoxIcon5 },
|
|
{ name: '红砖厝韵', icon: MainBoxIcon5 },
|
|
{ name: '薪传匠艺', icon: MainBoxIcon6 },
|
|
{ name: '薪传匠艺', icon: MainBoxIcon6 },
|
|
{ name: '工夫茶道', icon: MainBoxIcon7 },
|
|
{ name: '工夫茶道', icon: MainBoxIcon7 },
|
|
{ name: '闽南魂', icon: MainBoxIcon8 },
|
|
{ name: '闽南魂', icon: MainBoxIcon8 },
|
|
]
|
|
]
|
|
|
|
+const recommend = [
|
|
|
|
+ { name: '非遗', icon: ImageTest2 },
|
|
|
|
+ { name: '文物', icon: ImageTest3 },
|
|
|
|
+ { name: '民俗', icon: ImageTest4 },
|
|
|
|
+ { name: '文物', icon: ImageTest5 },
|
|
|
|
+]
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
-.home {
|
|
|
|
- .title {
|
|
|
|
- left: 40rpx;
|
|
|
|
- top: calc(var(--status-bar-height) + 50rpx);
|
|
|
|
|
|
+.page-home {
|
|
|
|
+ .map-tags {
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ padding: 20rpx;
|
|
|
|
+
|
|
|
|
+ view {
|
|
|
|
+ border-radius: 40rpx;
|
|
|
|
+ padding: 10rpx 20rpx;
|
|
|
|
+ background-color: #f7f3e8;
|
|
|
|
+ color: #d9492e;
|
|
|
|
+ margin-right: 10rpx;
|
|
|
|
+
|
|
|
|
+ &.active {
|
|
|
|
+ background-color: #d9492e;
|
|
|
|
+ color: #f7f3e8;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- .content {
|
|
|
|
- margin-top: 30vh;
|
|
|
|
- z-index: 1;
|
|
|
|
|
|
+ .grid4-item {
|
|
|
|
+ width: 320rpx;
|
|
|
|
+
|
|
|
|
+ .tag {
|
|
|
|
+ top: 2rpx;
|
|
|
|
+ right: 2rpx;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|