Browse Source

排行,安全警示教育视频

master
unknown 1 year ago
parent
commit
04cd425330
  1. 18
      pages.json
  2. 59
      pages/indexEntry/credit/credit.vue
  3. 4
      pages/indexEntry/examines/examines.vue
  4. 121
      pages/indexEntry/examines/warningEducation/warningEducation.vue
  5. 4
      pages/tabbar/index/index.vue

18
pages.json

@ -33,6 +33,15 @@
"root": "pages/indexEntry",
"pages": [
{
"path": "credit/credit",
"style": {
"navigationBarTitleText": "质量信誉排行",
"enablePullDownRefresh": false,
"backgroundTextStyle": "" ,
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
"path": "enroll/enroll",
"style": {
"navigationBarTitleText": "学员报名",
@ -156,6 +165,15 @@
}
},
{
"path": "examines/warningEducation/warningEducation",
"style": {
"navigationBarTitleText": "安全警示教育在线视频学习",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"backgroundTextStyle": "dark"
}
},
{
"path": "examines/allExamines/allExamines",
"style": {
"navigationBarTitleText": "找考场",

59
pages/indexEntry/credit/credit.vue

@ -0,0 +1,59 @@
<template>
<view class="pageBg">
<view class="ul">
<view class="li">
<view class="num">1</view>
<view class="con">
<schoolItme/>
</view>
</view>
</view>
</view>
</template>
<script>
import schoolItme from '../findShcool/comp/schoolItem.vue'
export default {
components: { schoolItme },
onLoad(option) {
if(option.type) {
uni.setNavigationBarTitle({
title: '合格率排行'
})
}
}
}
</script>
<style lang="scss" scoped>
.ul {
padding: 28rpx;
}
.li {
display: flex;
align-items: center;
.num {
width: 56rpx;
height: 36rpx;
border-radius: 4rpx;
text-align: center;
background: #ADADAD;
font-size: 28rpx;
color: #fff;
margin-right: 28rpx;
&:nth-child(1) {
background: #FF6B6D;
}
&:nth-child(2) {
background: #F18840;
}
&:nth-child(3) {
background: #FFB83E;
}
}
.con {
flex: 1;
width: 0;
}
}
</style>

4
pages/indexEntry/examines/examines.vue

@ -4,7 +4,7 @@
<view class="pad">
<view class="card">
<view class="navBox">
<view class="nav" v-for="(item,index) in navList" :key="index">
<view class="nav" v-for="(item,index) in navList" :key="index" @click="$goPage(item.url)">
<view class="icon">
<image :src="item.icon" mode=""></image>
</view>
@ -33,7 +33,7 @@
{text: '我要模拟', icon: require('../../../static/images/index/btn_moni.png'), id: 1 },
{text: '考场取号', icon: require('../../../static/images/index/btn_quhao.png'), id: 2 },
{text: '领证宣誓', icon: require('../../../static/images/index/btn_xuanshi.png'), id: 3 },
{text: '警示教育', icon: require('../../../static/images/index/btn_jiaoyu.png'), id: 4 },
{text: '警示教育', icon: require('../../../static/images/index/btn_jiaoyu.png'), id: 4 , url: '/pages/indexEntry/examines/warningEducation/warningEducation'},
{text: '驾照邮寄', icon: require('../../../static/images/index/btn_youjix.png'), id: 5 },
]
}

121
pages/indexEntry/examines/warningEducation/warningEducation.vue

@ -0,0 +1,121 @@
<template>
<view class="pageBgImg">
<topNavbar title="安全警示教育在线视频学习"></topNavbar>
<view class="pad">
<view class="searcBox">
<searchRow placeholder="搜索视频名称"/>
</view>
<view class="card">
<view class="con">
<view class="tit">第一章</view>
<view class="li" v-for="(item,index) in 10" :key="index">
<view class="cover">
<view class="status">未开始</view>
<view class="startIcon">
<image src="@/static/images/index/btn_bofang.png" mode=""></image>
</view>
<view class="coverImg">
<image src="@/static/images/logo.png" mode=""></image>
</view>
</view>
<view class="rightTxt">
<view class="name">公益短片之车速决定命运</view>
<view class="time">3:22</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {}
}
}
</script>
<style lang="scss" scoped>
.searcBox {
padding: 24rpx 0 30rpx;
}
.card {
.con {
.tit {
border-bottom: 2rpx solid #E8E9EC;
line-height: 74rpx;
padding-left: 16rpx;
}
.li {
display: flex;
padding: 30rpx 16rpx;
border-bottom: 2rpx dashed #E8E9EC;
&:last-child {
border: none;
}
.cover {
background: #000;
width: 302rpx;
height: 168rpx;
border-radius: 12rpx;
overflow: hidden;
position: relative;
flex-shrink: 0;
.status {
position: absolute;
left: 0;
top: 0;
width: 108rpx;
height: 40rpx;
background: #ADADAD;
border-radius: 12rpx 0px 12rpx 0px;
line-height: 40rpx;
color: #fff;
text-align: center;
z-index: 8;
}
.startIcon {
position: absolute;
left: 50%;
bottom: 50%;
// transform: translateX(-50%);
// transform: translateY(-50%);
transform: translate(-50%, 50%);
width: 60rpx;
height: 60rpx;
z-index: 9;
}
.coverImg {
width: 100%;
height: 100%;
image {
opacity: 0.92;
}
}
}
.rightTxt {
flex: 1;
width: 0;
padding-left: 28rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
font-size: 28rpx;
.name {
}
.time {
}
}
}
}
}
</style>

4
pages/tabbar/index/index.vue

@ -150,7 +150,7 @@
text: '合格率排行',
tps: '官方数据 阳光透明',
icon: require('../../../static/images/index/img_3@2x.png'),
url: ''
url: '/pages/indexEntry/credit/credit?type=1'
},
{
text: '行业政策',
@ -162,7 +162,7 @@
text: '质量信誉排行',
tps: '官方数据 阳光透明',
icon: require('../../../static/images/index/img_5@2x.png'),
url: ''
url: '/pages/indexEntry/credit/credit'
},
{
text: '咨询投诉',

Loading…
Cancel
Save