普法入口

This commit is contained in:
shijingjing
2023-03-15 14:28:49 +08:00
parent 62c0878bf1
commit 4c980ce920
2 changed files with 39 additions and 0 deletions

View File

@@ -28,6 +28,15 @@
<u-notice-bar mode="vertical" color="#4181FF" style="flex: 1;" :volume-icon="false" :is-circular="false" <u-notice-bar mode="vertical" color="#4181FF" style="flex: 1;" :volume-icon="false" :is-circular="false"
duration="5000" speed="5000" :list="noticeList" @click="clickNotice"/> duration="5000" speed="5000" :list="noticeList" @click="clickNotice"/>
</div> </div>
<div class="lawClass">
<div class="pic-left">
<img src="https://cdn.cunwuyun.cn/qujing/but-zaixianketang.png" alt="" @click="clickLaw(0)">
</div>
<div class="pic-right">
<img src="https://cdn.cunwuyun.cn/qujing/but-pufakaoshi.png" alt="" @click="clickLaw(1)">
</div>
</div>
<!-- <template v-if="activeList.length>0"> <!-- <template v-if="activeList.length>0">
<header>推荐专题</header> <header>推荐专题</header>
<scroll-view :scroll-x="true" style="width: 100%" class="scroll-wrap"> <scroll-view :scroll-x="true" style="width: 100%" class="scroll-wrap">
@@ -158,6 +167,11 @@ export default {
}) })
} }
}, },
clickLaw(index) {
uni.navigateTo({
url: "/mods/AppLegalLearning/AppLegalLearning?inx=" + index
})
},
handleActive({type, appId, url}) { handleActive({type, appId, url}) {
if (type == 0) { if (type == 0) {
uni.navigateToMiniProgram({appId}) uni.navigateToMiniProgram({appId})
@@ -370,6 +384,26 @@ export default {
} }
} }
.lawClass {
padding: 0 32px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
width: 100%;
height: 150px;
.pic-left,
.pic-right {
width: 46%;
height: 112px;
img {
display: block;
width: 100%;
height: 100%;
}
}
}
.list-wrap { .list-wrap {
box-sizing: border-box; box-sizing: border-box;
padding: 32px; padding: 32px;

View File

@@ -47,6 +47,11 @@ export default {
} }
}); });
}, },
onLoad(o) {
if(o) {
this.currIndex = o.inx
}
},
components: { components: {
OnlineClass, OnlineClass,
GeneralLawExam GeneralLawExam