147 lines
3.8 KiB
Vue
147 lines
3.8 KiB
Vue
<template class="content">
|
|
<view>
|
|
<!-- 顶部导航栏 -->
|
|
<up-navbar leftText="" title="" :placeholder="true" :safeAreaInsetTop="true" :bgColor="bgColor">
|
|
<template class="img1BOX" #left>
|
|
<view class="leftinfo">
|
|
<span class="lefttext">时间</span>
|
|
<image
|
|
style=" margin-left: 10rpx; transform: rotate(-45deg); /* 旋转45度 */ width: 15rpx; height: 15rpx;"
|
|
:src="tu21"></image>
|
|
</view>
|
|
</template>
|
|
<template #center>
|
|
<div class="navbarcenter"><span>热门活动</span></div>
|
|
</template>
|
|
</up-navbar>
|
|
<view class="bgc"></view>
|
|
<!-- 搜索栏 -->
|
|
<view class="sousuoBox1 flex alignCenter justifyBetween">
|
|
<view class="sousuoBox flex alignCenter justifyBetween" @click="toEarch">
|
|
<view class="souBOx flex alignCenter">
|
|
<image :src="tu22" class="img3"></image>
|
|
<span class="shuruText">电音节节日活动</span>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- tabs标签 -->
|
|
<view class="tabsinfo flex alignCenter justifyCenter">
|
|
<up-tabs :list="list4" lineWidth="24" lineHeight="4" lineColor="#B3D7FF" :activeStyle="{
|
|
color: '#000000',
|
|
fontSize: '30rpx',
|
|
transform: 'scale(1.05)'
|
|
}" :inactiveStyle="{
|
|
color: '#999999',
|
|
fontSize: '28rpx',
|
|
transform: 'scale(1.05)'
|
|
}" itemStyle=" width: 200rpx; padding-bottom:18rpx;">
|
|
</up-tabs>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
</view>
|
|
</template>
|
|
<script setup>
|
|
import { ref, reactive, getCurrentInstance } from 'vue'
|
|
import { useStore } from 'vuex';
|
|
const { proxy } = getCurrentInstance();
|
|
const imgInfo = ref("")
|
|
// 创建响应式数据 ref('#001f3f')
|
|
const bgColor = ref('');
|
|
bgColor.value = 'rgba(170, 0, 0, 0)'
|
|
const store = useStore()
|
|
const list4 = reactive([
|
|
{ name: '全部' },
|
|
{ name: '未开始'},
|
|
{ name: '进行中' },
|
|
{ name: '已结束' }
|
|
]);
|
|
const QNDomain = store.state.user.QNDomain
|
|
const tu21 = ref("")
|
|
const tu22 = ref("")
|
|
tu22.value = QNDomain + "home/icon/image/png/tu2-2_20240531163115818.png"
|
|
tu21.value = QNDomain + "home/icon/image/png/tu2-1_20240531153239639.png"
|
|
imgInfo.value = QNDomain + "home/test/image/jpeg/test1_20240531151817921.jpg"
|
|
</script>
|
|
<style lang="scss">
|
|
.leftinfo{
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
.content {
|
|
position: relative;
|
|
|
|
.img1BOX {
|
|
padding-left: 32rpx;
|
|
display: flex;
|
|
align-content: center;
|
|
.lefttext {
|
|
font-weight: 400;
|
|
width: 58rpx;
|
|
height: 30rpx;
|
|
font-size: 30rpx;
|
|
text-align: left;
|
|
color: #000000 100%;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
.img2BOX{
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
}
|
|
.navbarcenter {
|
|
font-weight: 400;
|
|
width: 146rpx;
|
|
height: 36rpx;
|
|
font-size: 36rpx;
|
|
text-align: left;
|
|
color: #000000 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.bgc {
|
|
width: 750rpx;
|
|
height: 500rpx;
|
|
background: linear-gradient(180deg, rgb(201, 246, 245), rgb(248, 248, 226));
|
|
position: fixed;
|
|
top: 0rpx;
|
|
left: 0rpx;
|
|
z-index: -1;
|
|
}
|
|
.sousuoBox1 {
|
|
margin: 10rpx 32rpx;
|
|
width: auto;
|
|
}
|
|
|
|
.sousuoBox {
|
|
width: 684rpx;
|
|
height: 68rpx;
|
|
border: #B3D7FF solid 2rpx;
|
|
border-radius: 30rpx 30rpx 30rpx 30rpx;
|
|
background: #ffffff80;
|
|
}
|
|
|
|
.souBOx {
|
|
margin-left: 32rpx;
|
|
}
|
|
.sousuoBox .souBOx .shuruText {
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
text-align: center;
|
|
color: #999999 100%;
|
|
margin-left: 20rpx;
|
|
}
|
|
.img3 {
|
|
width: 38rpx;
|
|
height: 38rpx;
|
|
}
|
|
.tabsinfo {
|
|
width: 686rpx;
|
|
height: 80rpx;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
</style> |