initial commit: giftlaw ni xue fa wo you li - natural resources session
This commit is contained in:
@@ -0,0 +1,156 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<view class="page-body">
|
||||
<image src="https://aliyunoss.hn12301.net/learnlaw/gift_zt_bj.jpg" mode="widthFix" style="width:750rpx;position:absolute;top:0;left:0;z-index:-1;"></image>
|
||||
<view class="header">
|
||||
<view class="header-icon"><text>📖</text></view>
|
||||
<text class="header-title">法制学习</text>
|
||||
<view class="header-line"></view>
|
||||
</view>
|
||||
<view class="doc-list" v-if="articles.length > 0">
|
||||
<view class="doc-item" v-for="(item, i) in articles" :key="i" @tap="openArticle(i)">
|
||||
<view class="doc-icon">
|
||||
<text class="iconfont">📄</text>
|
||||
</view>
|
||||
<view class="doc-info">
|
||||
<text class="doc-title">{{ item.title }}</text>
|
||||
<text class="doc-desc">{{ item.desc }}</text>
|
||||
</view>
|
||||
<view class="doc-arrow">
|
||||
<text>›</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
articles: [
|
||||
{ title: '湖南省实施《中华人民共和国法治宣传教育法》办法', desc: '省级地方性法规', url: 'https://goldnar.hntgov.net/img/word1.docx' },
|
||||
{ title: '全民阅读促进条例', desc: '行政法规', url: 'https://goldnar.hntgov.net/img/word2.docx' },
|
||||
{ title: '中华人民共和国法治宣传教育法', desc: '全国性法律', url: 'https://goldnar.hntgov.net/img/word3.docx' },
|
||||
{ title: '中华人民共和国民法典', desc: '全国性法律', url: 'https://goldnar.hntgov.net/img/word4.docx' }
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openArticle(i) {
|
||||
uni.navigateTo({ url: '/pages/study/preview?index=' + i })
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #7CC6EB;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.page-body {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding: 80rpx 30rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.header-icon {
|
||||
font-size: 52rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: 800;
|
||||
color: #fff;
|
||||
text-shadow: 0 2rpx 8rpx rgba(0,0,0,0.15);
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.header-line {
|
||||
width: 60rpx;
|
||||
height: 4rpx;
|
||||
background: rgba(255,255,255,0.5);
|
||||
border-radius: 2rpx;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
|
||||
.doc-list {
|
||||
background: rgba(255,255,255,0.95);
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.doc-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 28rpx 24rpx;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
}
|
||||
|
||||
.doc-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.doc-icon {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
margin-right: 16rpx;
|
||||
background: #fff7e6;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.doc-icon .iconfont {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.doc-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.doc-title {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.doc-desc {
|
||||
font-size: 22rpx;
|
||||
color: #bbb;
|
||||
margin-top: 4rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.doc-arrow {
|
||||
font-size: 36rpx;
|
||||
color: #ccc;
|
||||
flex-shrink: 0;
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user