feat: 新增sw(税务)与hj(生态环境)专区模块;自制hj/sw-tabbar底栏;hj-web内嵌阅读(双指缩放);hnlylaw三活动authorization隔离(Sft/Sw/Hj);缓存键Hj后缀;问卷1006/1007;home专区入口接线;sw/hj规则与隐私文案、学习清单及链接校修复

This commit is contained in:
lcj
2026-11-11 15:20:20 +08:00
parent ead48745c2
commit 8a1ff90d6b
30 changed files with 6365 additions and 40 deletions
+245
View File
@@ -0,0 +1,245 @@
<template>
<view class="content">
<view class="page-header">
<text class="header-back" @tap="goBack">‹</text>
<text class="header-title">法治学习</text>
</view>
<view class="body">
<view class="group" v-for="(group, gi) in articles" :key="gi">
<view class="group-title">{{ group.name }}</view>
<view class="article-item" v-for="item in group.articles" :key="item.url" @tap="openArticle(item)">
<view class="article-index">
<text class="article-index-text">{{ item.no }}</text>
</view>
<text class="article-title">{{ item.title }}</text>
<text class="article-arrow">›</text>
</view>
</view>
<view class="tip-text">点击法规名称跳转至官方发布页面阅读学习</view>
<view style="height: 40rpx;"></view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
groups: [{
name: '一、税收征管类(高频)',
list: [{
title: '中华人民共和国税收征收管理法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5195081/content.html'
},
{
title: '中华人民共和国税收征收管理法实施细则',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100010/c5195082/content.html'
}
]
},
{
name: '二、增值税',
list: [{
title: '中华人民共和国增值税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5237365/content.html'
},
{
title: '中华人民共和国增值税法实施条例',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100010/c5246349/content.html'
}
]
},
{
name: '三、所得税',
list: [{
title: '中华人民共和国企业所得税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193018/content.html'
},
{
title: '中华人民共和国企业所得税法实施条例',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100010/c5194417/content.html'
},
{
title: '中华人民共和国个人所得税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193028/content.html'
},
{
title: '中华人民共和国个人所得税法实施条例',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100010/c5194444/content.html'
}
]
},
{
name: '四、财产行为税(小税种)',
list: [{
title: '中华人民共和国印花税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193058/content.html'
},
{
title: '中华人民共和国契税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193053/content.html'
},
{
title: '中华人民共和国城市维护建设税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193055/content.html'
},
{
title: '中华人民共和国资源税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193040/content.html'
},
{
title: '中华人民共和国环境保护税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193032/content.html'
},
{
title: '中华人民共和国车船税法',
url: 'https://fgk.chinatax.gov.cn/zcfgk/c100009/c5193039/content.html'
}
]
}
]
}
},
computed: {
articles() {
let no = 0
return this.groups.map(g => ({
name: g.name,
articles: g.list.map(a => Object.assign({
no: ++no
}, a))
}))
}
},
methods: {
goBack() {
const pages = getCurrentPages()
if (pages.length > 1) {
uni.navigateBack()
} else {
uni.reLaunch({ url: '/pages/sw-index/sw-index' })
}
},
openArticle(item) {
const w = window.open(item.url, '_blank')
if (!w) {
window.location.href = item.url
}
}
}
}
</script>
<style lang="scss">
page {
background-color: #F8F8F8;
overflow-x: hidden;
}
.content {
position: relative;
min-height: 100vh;
width: 100%;
max-width: 100vw;
overflow-x: hidden;
box-sizing: border-box;
}
.page-header {
position: sticky;
top: 0;
z-index: 10;
display: flex;
align-items: center;
padding: 20rpx 30rpx;
background: linear-gradient(135deg, #FD5401, #FF7A3D);
}
.header-back {
font-size: 48rpx;
color: #fff;
line-height: 1;
margin-right: 16rpx;
padding: 0 10rpx;
}
.header-title {
font-size: 30rpx;
font-weight: 600;
color: #fff;
flex: 1;
}
.body {
width: 100%;
padding: 24rpx 30rpx;
box-sizing: border-box;
}
.group {
margin-bottom: 24rpx;
box-sizing: border-box;
}
.group-title {
font-size: 28rpx;
font-weight: 700;
color: #FD5401;
padding: 8rpx 4rpx 16rpx;
}
.article-item {
width: 100%;
max-width: 100%;
box-sizing: border-box;
background: #fff;
border-radius: 16rpx;
padding: 26rpx 24rpx;
margin-bottom: 14rpx;
display: flex;
align-items: center;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.04);
}
.article-index {
width: 44rpx;
height: 44rpx;
border-radius: 50%;
background: linear-gradient(135deg, #FD5401, #FF7A3D);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-right: 18rpx;
}
.article-index-text {
font-size: 22rpx;
font-weight: 700;
color: #fff;
}
.article-title {
flex: 1;
min-width: 0;
word-break: break-all;
font-size: 27rpx;
color: #333;
line-height: 1.4;
}
.article-arrow {
font-size: 36rpx;
color: #ccc;
flex-shrink: 0;
margin-left: 10rpx;
}
.tip-text {
font-size: 22rpx;
color: #999;
text-align: center;
margin: 6rpx 0 20rpx;
padding: 0 30rpx;
}
</style>