104 lines
1.8 KiB
Vue
104 lines
1.8 KiB
Vue
<template>
|
|
<view>
|
|
<!-- <navBar navTitle="" :stickyShow="stickyShow" :backBackGroundColor="'rgba(255, 255, 255, 0.4)'"></navBar> -->
|
|
<view class="top">
|
|
<button class="back" @click="back">返回</button>
|
|
<image src="@/static/image/home/activity/series.png" mode="" class="cover"></image>
|
|
<button class="btn" @click="detail">查看详情
|
|
<image src="@/static/image/home/activity/right.png" mode="scaleToFill" class="img" />
|
|
</button>
|
|
</view>
|
|
<view class="article-box">
|
|
<image src="@/static/image/home/activity/article.png" mode="" class="article"></image>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
stickyShow: false,
|
|
}
|
|
},
|
|
methods: {
|
|
back() {
|
|
uni.switchTab({
|
|
url: '/pages/index/index'
|
|
});
|
|
},
|
|
detail() {
|
|
uni.navigateTo({
|
|
url: '/pages/index/detail/detail'
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
height: 100vh;
|
|
}
|
|
|
|
.top {
|
|
position: relative;
|
|
|
|
.btn {
|
|
width: 240rpx;
|
|
height: 58rpx;
|
|
position: absolute;
|
|
color: #FFFFFF;
|
|
background: #3E0007;
|
|
border-radius: 40rpx;
|
|
font-size: 24rpx;
|
|
bottom: 44rpx;
|
|
left: 254rpx;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
.img {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
margin-left: 14rpx;
|
|
}
|
|
}
|
|
|
|
.cover {
|
|
width: 100%;
|
|
height: 1624rpx;
|
|
display: block;
|
|
}
|
|
|
|
.back {
|
|
position: absolute;
|
|
width: 128rpx;
|
|
height: 56rpx;
|
|
background: rgba(255, 255, 255, 0.4);
|
|
color: #FFFFFF;
|
|
z-index: 999;
|
|
border-radius: 40rpx;
|
|
font-size: 32rpx;
|
|
line-height: 56rpx;
|
|
left: 26rpx;
|
|
top: 30rpx;
|
|
}
|
|
}
|
|
|
|
|
|
.article-box {
|
|
background: url('@/static/image/home/activity/container.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
width: 100%;
|
|
height: 1382rpx;
|
|
padding: 72rpx 44rpx;
|
|
box-sizing: border-box;
|
|
|
|
.article {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
</style> |