普法入口
This commit is contained in:
@@ -28,6 +28,15 @@
|
||||
<u-notice-bar mode="vertical" color="#4181FF" style="flex: 1;" :volume-icon="false" :is-circular="false"
|
||||
duration="5000" speed="5000" :list="noticeList" @click="clickNotice"/>
|
||||
</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">
|
||||
<header>推荐专题</header>
|
||||
<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}) {
|
||||
if (type == 0) {
|
||||
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 {
|
||||
box-sizing: border-box;
|
||||
padding: 32px;
|
||||
|
||||
@@ -47,6 +47,11 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
onLoad(o) {
|
||||
if(o) {
|
||||
this.currIndex = o.inx
|
||||
}
|
||||
},
|
||||
components: {
|
||||
OnlineClass,
|
||||
GeneralLawExam
|
||||
|
||||
Reference in New Issue
Block a user