kun 9/25 9:21

This commit is contained in:
沈学坤
2019-09-25 09:21:20 +08:00
parent 62ee28fadf
commit f86504bdef
16 changed files with 681 additions and 459 deletions

687
src/views/home/ApplyFor.vue Normal file
View File

@@ -0,0 +1,687 @@
<template>
<div class="wr">
<header-nav :index_num="index_num"></header-nav>
<div class="wrapperr">
<p class="title">党组织申请</p>
<!-- 进度条 -->
<div class="he">
<div class="list"
v-for="(item,index) in text"
:key="index"
:style="{'background-image': sub == index ? 'url('+imgUrl.bg0+')' : 'url('+imgUrl.bg1+')'}">
<span :style="sub == index ? 'color:#fff' : 'color:#000'">{{item}}</span>
</div>
</div>
<!-- 用户填写的内容 -->
<form action
method
onsubmit="return false"
enctype="multipart/form-data">
<!-- 党组织申请1 -->
<div id="boxOne"
v-if="sub == 0">
<h3>基本信息</h3>
<div class="b">
<div class="o">
<label>
<span>社会组织名称:</span>
<input class="input"
type="text"
name="name" />
</label>
<label>
<span>社会组织类型:</span>
<select name="type"
id></select>
</label>
</div>
<div class="o">
<label>
<span>流动党员数量:</span>
<input class="input"
type="text"
name="name" />
</label>
<label>
<span>已有党员数量:</span>
<input class="input"
type="text"
name="name" />
</label>
</div>
<div class="o">
<label>
<span>从业人员总数:</span>
<input class="input"
type="text"
name="name" />
</label>
<label>
<span>党组织名称:</span>
<input class="input"
type="text"
name="name" />
</label>
</div>
<div class="o-zero">
<span>是否建立党组织:</span>
<div>
<label for>
<input type="radio"
name="yn"
value="yes"
checked />&nbsp;&nbsp;
</label>&nbsp;&nbsp;&nbsp;&nbsp;
<label for>
<input type="radio"
name="yn"
value="no" />&nbsp;&nbsp;
</label>
</div>
</div>
<div class="o-one">
<span>是否建立功能型党组织:</span>
<div>
<label for>
<input type="radio"
name="ynn"
value="yes"
checked />&nbsp;&nbsp;
</label>&nbsp;&nbsp;&nbsp;&nbsp;
<label for>
<input type="radio"
name="ynn"
value="no" />&nbsp;&nbsp;
</label>
</div>
</div>
<div class="o-o">
<label>登记管理机关:</label>
<input type="text" />
</div>
<div class="o-o">
<label>业务主管单位:</label>
<input type="text" />
</div>
<div class="o-two">
<label>隶属的上一级党组织名称:</label>
<input type="text" />
</div>
</div>
<div class="btn"
@click="btn(1)">下一步</div>
</div>
<!-- 党组织申请2 -->
<div id="boxTwo"
v-if="sub == 1">
<!-- !!!!!! -->
<h3>党组织书记情况</h3>
<div class="b">
<div>
<label for>姓名:</label>
<input type="text" />
</div>
<div style="display: flex;
align-items: center;">
<label for>姓别:</label>
<label class="label">
<input type="radio"
name="sex" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio"
name="sex" />&nbsp;&nbsp;
</label>
</div>
<div>
<label for>年龄:</label>
<input type="text" />
</div>
<div>
<label for>行政职务:</label>
<input type="text" />
</div>
<div>
<label for>近三年参加上级党组织培训次数:</label>
<input type="text" />
</div>
</div>
<!-- !!!!!! -->
<h3 style="margin-top:35px;">党组织信息</h3>
<div class="b">
<div>
<label for>近三年发展党员数:</label>
<input type="text" />
</div>
<div style="display: flex;
align-items: center;">
<label for>是否建立群团组织:</label>
<label class="label">
<input type="radio"
name="ss" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio"
name="ss" />&nbsp;&nbsp;
</label>
</div>
<div>
<label for>专职党务工作者人数:</label>
<input type="text" />
</div>
<div style="display: flex;
align-items: center;">
<label for>是否选派党建工作指导员:</label>
<label class="label">
<input type="radio"
name="ww" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio"
name="ww" />&nbsp;&nbsp;
</label>
</div>
<div>
<label for>党组织年度活动经费(万元):</label>
<input type="text" />
</div>
<div>
<label for>党组织年度活动场所面积(平米):</label>
<input type="text" />
</div>
</div>
<div @click="btn(2)"
style="display:flex;justify-content:center;margin-top:35px;">
<input type="submit"
value="立即提交" />
</div>
</div>
</form>
<!-- succeed -->
<div class="succeed"
v-if="sub == 2">
<div>
<img :src="imgUrl.succeed"
alt />
<span>党组织申请已提交成功</span>
</div>
</div>
</div>
<footer-nav class="footer"></footer-nav>
</div>
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
return {
imgUrl: {
bg0: require("../../../static/img/bg0.png"),
bg1: require("../../../static/img/bg1.png"),
succeed: require("../../../static/img/succeed.png")
},
text: ["1 填写基本信息", "2 填写党组织信息", "3 提交审核"],
sub: 0,
index_num: 0
};
},
computed: {},
watch: {},
methods: {
btn(n) {
let s = this.sub;
s = n;
this.sub = s;
}
},
created() {},
mounted() {}
};
</script>
<style lang='scss' scoped>
.wr {
width: 1280px;
box-sizing: border-box;
.footer {
margin-top: 80px;
}
}
.wrapperr {
width: 1200px;
margin: 40px auto;
padding: 34px 31px 100px;
box-sizing: border-box;
background-color: #ffffff;
.succeed {
margin-top: 70px;
div {
width: 100%;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
img {
width: 118px;
height: 118px;
margin-bottom: 28px;
}
span {
font-family: "MicrosoftYaHei";
font-size: 26px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
}
}
form {
h3 {
width: 1138px;
height: 38px;
font-family: "MicrosoftYaHei";
font-size: 20px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
border-bottom: 2px solid #dedede;
padding-left: 30px;
box-sizing: border-box;
margin-bottom: 58px;
}
label input[type="radio"] {
width: 17px;
height: 17px;
appearance: none;
-webkit-appearance: none;
outline: none;
margin: 0;
cursor: pointer;
}
label input[type="radio"]:after {
width: 17px;
height: 17px;
display: block;
content: "";
background: url("../../../static/img/wxz.png") no-repeat;
background-size: 100% 100%;
}
label input[type="radio"]:checked:after {
background: url("../../../static/img/xz.png") no-repeat;
}
#boxTwo {
.b {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
div {
margin-bottom: 25px;
height: 43px;
label {
text-align: right;
width: 229px;
height: 16px;
display: inline-block;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
input[type="text"] {
margin-left: 28px;
width: 386px;
height: 43px;
background-color: #ffffff;
border: solid 1px #c7c7c7;
outline: none;
}
.label {
width: 386px;
height: 43px;
margin-left: 30px;
display: flex;
align-items: center;
}
}
}
input[type="submit"] {
width: 330px;
height: 63px;
line-height: 63px;
text-align: center;
background-color: #e60012;
border-radius: 5px;
font-family: "MicrosoftYaHei";
font-size: 26px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #ffffff;
}
}
#boxOne {
.b {
width: 100%;
.o-two {
width: 100%;
height: 43px;
display: flex;
align-items: center;
padding-left: 16px;
box-sizing: border-box;
margin-bottom: 60px;
label {
display: inline-block;
width: 181px;
height: 16px;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
input {
width: 913px;
height: 43px;
background-color: #ffffff;
border: solid 1px #c7c7c7;
margin-left: 28px;
outline: none;
}
}
.o-o {
width: 100%;
height: 43px;
display: flex;
align-items: center;
padding-left: 96px;
box-sizing: border-box;
margin-bottom: 25px;
label {
display: inline-block;
width: 101px;
height: 16px;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
input {
width: 913px;
height: 43px;
background-color: #ffffff;
border: solid 1px #c7c7c7;
margin-left: 28px;
outline: none;
}
}
.o-one {
width: 100%;
height: 43px;
box-sizing: border-box;
display: flex;
align-items: center;
margin-bottom: 11px;
div {
margin-left: 30px;
display: flex;
align-items: center;
label {
display: flex;
align-items: center;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 25px;
letter-spacing: 0px;
color: #333333;
}
/*
label input[type="radio"] {
width: 17px;
height: 17px;
appearance: none;
-webkit-appearance: none;
outline: none;
margin: 0;
cursor: pointer;
}
label input[type="radio"]:after {
width: 17px;
height: 17px;
display: block;
content: "";
background: url("../../../static/img/wxz.png") no-repeat;
background-size: 100% 100%;
}
label input[type="radio"]:checked:after {
background: url("../../../static/img/xz.png") no-repeat;
}*/
}
span {
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
}
.o-zero {
margin-bottom: 11px;
width: 100%;
height: 43px;
padding-left: 80px;
box-sizing: border-box;
display: flex;
align-items: center;
div {
margin-left: 30px;
display: flex;
align-items: center;
label {
display: flex;
align-items: center;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 25px;
letter-spacing: 0px;
color: #333333;
}
/*
label input[type="radio"] {
width: 17px;
height: 17px;
appearance: none;
-webkit-appearance: none;
outline: none;
margin: 0;
cursor: pointer;
}
label input[type="radio"]:after {
width: 17px;
height: 17px;
display: block;
content: "";
background: url("../../../static/img/wxz.png") no-repeat;
background-size: 100% 100%;
}
label input[type="radio"]:checked:after {
background: url("../../../static/img/xz.png") no-repeat;
}
*/
}
span {
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
}
.o {
margin-bottom: 25px;
width: 100%;
height: 43px;
display: flex;
justify-content: space-between;
align-items: center;
padding-left: 96px;
box-sizing: border-box;
label {
// width: 547px;
height: 43px;
display: inline-block;
box-sizing: border-box;
select {
width: 386px;
height: 43px;
background-color: #ffffff;
border: solid 1px #c7c7c7;
outline: none;
box-sizing: border-box;
/* 清除默认的箭头样式 */
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
/* 右侧添加小箭头的背景图 */
background: url("../../../static/img/xa.png") 360px center
no-repeat;
background-size: 14px 8px;
}
.input {
width: 386px;
height: 43px;
background-color: #ffffff;
border: solid 1px #c7c7c7;
outline: none;
box-sizing: border-box;
}
span {
margin-right: 30px;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
display: inline-block;
width: 101px;
text-align: right;
}
}
}
}
.btn {
cursor: pointer;
margin: 0 auto;
width: 230px;
height: 63px;
background-color: #e60012;
border-radius: 5px;
font-family: "MicrosoftYaHei";
font-size: 26px;
font-weight: normal;
font-stretch: normal;
line-height: 63px;
letter-spacing: 0px;
color: #ffffff;
text-align: center;
}
}
}
.he {
margin: 44px auto 70px;
width: 598px;
height: 34px;
display: flex;
justify-content: space-between;
align-items: center;
.list {
width: 192px;
height: 34px;
line-height: 34px;
text-align: center;
background-size: 100% 100%;
font-family: "MicrosoftYaHei";
font-size: 14px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
}
}
.title {
text-align: center;
font-family: "MicrosoftYaHei";
font-size: 22px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
}
</style>

977
src/views/home/HomePage.vue Normal file
View File

@@ -0,0 +1,977 @@
<template>
<div class="wrapper">
<header-nav :index_num="index_num"></header-nav>
<div id="box">
<!-- 内容ONE -->
<div class="container">
<!-- 轮播图 -->
<div class="swiperone">
<div class="swiper-container swiper-one">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img :src="imgUrl.lb"
alt />
<div class="box">加强基础设施建设完善城市功能扩大城市容量</div>
</div>
<div class="swiper-slide">
<img :src="imgUrl.lb"
alt />
<div class="box">加强基础设施建设完善城市功能扩大城市容量</div>
</div>
<div class="swiper-slide">
<img :src="imgUrl.lb"
alt />
<div class="box">加强基础设施建设完善城市功能扩大城市容量</div>
</div>
</div>
</div>
<!-- 如果需要导航按钮 -->
<div class="swiper-button-prev swiper-button-white"></div>
<div class="swiper-button-next swiper-button-white"></div>
</div>
<!-- 通知公告的box -->
<div class="right">
<!-- 通知公告 -->
<div class="top">
<div class="b">
<span>通知公告</span>
<span>更多>></span>
</div>
</div>
<!-- 列表显示 -->
<ul>
<template v-for="(item,index) in mData">
<li :key="index"
v-if="index < 8">
<a href="javascript:void(0);">
<span>{{item.text}}</span>
<time>[{{item.time}}]</time>
</a>
</li>
</template>
</ul>
</div>
</div>
<!-- TWO -->
<div class="container-two">
<p class="title">新闻动态</p>
<div id="boxs">
<!-- 党组织信息 -->
<div class="box-child">
<div class="top-p">
<div>
<img class="o"
:src="imgUrl.gq"
alt />
<span>党组织信息</span>
</div>
<span>更多>></span>
</div>
<div class="p">
<div class="text">
<p>党的建设即马克思主义建党理论同党的建设实践的统一马克思主义党的学说的应用</p>
<p>党的建设包括三个方面的含义</p>
<p>一是研究党的建设的理论科学</p>
<p>二是在马克思主义党的学说指导下所进行的党的建设的实践活动</p>
<p>三是作为理论原则与实际行动两者中介的约法规章</p>
</div>
<div class="img"
@click="$jump('applyFor')">
<div class="img-box">
<img :src="imgUrl.wjx"
alt />
<span>申请成为党组织</span>
</div>
</div>
</div>
</div>
<!-- 统一战线 -->
<div class="box-child">
<div class="top-p">
<div>
<img class="n"
:src="imgUrl.ws"
alt />
<span>统一战线</span>
</div>
<span @click="$jump('newsList')">更多>></span>
</div>
<ul class="ulo">
<template v-for="(item,index) in mmData">
<li :key="index"
v-if="index<9"
@click="$jump('newsDetails')">
<a href="javascript:void(0);">{{item.text}}</a>
</li>
</template>
</ul>
</div>
<!-- 组织生活 -->
<div class="box-child">
<div class="top-p">
<div>
<img class="e"
:src="imgUrl.zz"
alt />
<span>组织生活</span>
</div>
<span @click="$jump('newsList')">更多>></span>
</div>
<ul class="ult">
<template v-for="(item,index) in mmmData">
<li :key="index"
v-if="index < 9"
@click="$jump('newsDetails')">
<a href="javascript:void(0);">{{item.text}}</a>
</li>
</template>
</ul>
</div>
</div>
</div>
<!-- THREE -->
<div class="container-three">
<p class="title">@书记</p>
<div class="box-list">
<template v-for="(item,index) in sData">
<div class="list"
:key="index"
v-if="index<3">
<img :src="item.img"
alt />
<div class="wen-ben">
<h3>{{item.title}}</h3>
<p>{{item.text}}</p>
</div>
</div>
</template>
</div>
</div>
<!-- FOUR -->
<div class="container-four">
<p class="title">党建矩阵</p>
<div class="swiper-box-list">
<div id="img-box"
class="f-row">
<template v-for="(list,index) in lists">
<div class="img-box"
:key="index">
<img :src="imgUrl.img3"
alt />
<p>中国政府网站</p>
</div>
</template>
<img v-if="leftPos != 0"
@click="scrollFeeds('left')"
class="mv-btn left-side"
:src="imgUrl.left"
alt />
<img @click="scrollFeeds('right')"
class="mv-btn right-side"
:src="imgUrl.right"
alt />
</div>
</div>
<!-- <div class="swiper-container swiper-two">
<div class="swiper-wrapper">
<template v-for="(item,index) in list">
<div class="swiper-slide" :key="index" v-if="index < 8">
<img :src="imgUrl.img3" alt />
<span>中国政府网站{{index+1}}</span>
</div>
</template>
</div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>-->
</div>
</div>
<footer-nav class="footer"></footer-nav>
</div>
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import Swiper from "swiper";
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
return {
index_num: 0,
leftPos: 0,
imgUrl: {
lb: require("../../../static/img/lb.png"),
gq: require("../../../static/img/gq.png"),
ws: require("../../../static/img/ws.png"),
zz: require("../../../static/img/zz.png"),
wjx: require("../../../static/img/wjx.png"),
img3: require("../../../static/img/img3.png"),
right: require("../../../static/img/right.png"),
left: require("../../../static/img/left.png")
},
mData: [
{ text: "贵安新区拟对部分社会组织进行注销登记", time: "2019-3-14" },
{ text: "四平市民政局以服务平台促社会组织发展", time: "2019-3-14" },
{
text:
"淮北市开展2019年度市级社会组织评淮北市开展2019年度市级社会组织评",
time: "2019-3-14"
},
{
text:
"佛山市民政局通报2018年度市级社会佛山市民政局通报2018年度市级社会",
time: "2019-3-14"
},
{
text:
"社会组织唱响《我和我的祖国》献礼新社会组织唱响《我和我的祖国》献礼新",
time: "2019-3-14"
},
{
text:
"市民政局与市体育总会召开协调会专项市民政局与市体育总会召开协调会专项",
time: "2019-3-14"
},
{
text:
'民政部立项中央财政支持"促进肝健康民政部立项中央财政支持"促进肝健康',
time: "2019-3-14"
},
{
text:
"静海区召开社会组织参与扶贫帮困活动静海区召开社会组织参与扶贫帮困活动",
time: "2019-3-14"
}
],
mmData: [
{ text: "中国宋庆龄基金会“留守儿童关爱行动”" },
{ text: "全国港澳研究会举办“重温邓小”" },
{ text: "市品牌质量创新促进会与香港品质保证局" },
{ text: "无锡市召开骨干社会组织信息员工作会议" },
{ text: "中国扶贫基金会向尼泊尔聋哑学生捐赠爰" },
{ text: "中国围棋协会贺电:三星杯包揽四强围棋" },
{ text: "非公环保企业和环保社会组织召开纪念" },
{ text: "青春诗会”新闻发布会在京举行" },
{ text: "市社会组织联合会召开“垃圾分类,社会组织在行动" },
{ text: "关于对全院参加业务培训人员的友情提示" }
],
mmmData: [
{ text: "铁岭市非公有制经济组织和社会组织觉组" },
{ text: "市社科联举办社科学会党建工作推进会暨" },
{ text: "以党建“三个覆盖”为重点推进社会组织" },
{ text: "门头沟区委社会工委区民政局开展社会组" },
{ text: "2019年市团干部岗位实践能力大比武非" },
{ text: "萍多市非公有制经济组织和社会组织党建" },
{ text: "门头沟区委社会工委区民政局开展社会组" },
{ text: "举办两新组织党组织书记重点培训班" },
{ text: "市社会组织综合党委组织观看“两弹一星”" },
{ text: "关于对全院参加业务培训人员的友情提示" }
],
sData: [
{
img: require("../../../static/img/img0.png"),
title: "信访人对信访事项处理意见不服的,怎么办?",
text:
"活动策划是提高市场占有率的有效行为,一份可执行、可操作、创意突出的活动策划案,可有效提升企业的知名度及品牌美誉度。活动策划案是相对于市场策划案而言,严格说它们同属市场策划的兄弟分支,活动策划、..."
},
{
img: require("../../../static/img/img1.png"),
title: "信访人对信访事项处理意见不服的,怎么办?",
text:
"活动策划是提高市场占有率的有效行为,一份可执行、可操作、创意突出的活动策划案,可有效提升企业的知名度及品牌美誉度。活动策划案是相对于市场策划案而言,严格说它们同属市场策划的兄弟分支,活动策划、..."
},
{
img: require("../../../static/img/img2.png"),
title: "信访人对信访事项处理意见不服的,怎么办?",
text:
"活动策划是提高市场占有率的有效行为,一份可执行、可操作、创意突出的活动策划案,可有效提升企业的知名度及品牌美誉度。活动策划案是相对于市场策划案而言,严格说它们同属市场策划的兄弟分支,活动策划、..."
},
{
img: require("../../../static/img/img0.png"),
title: "信访人对信访事项处理意见不服的,怎么办?",
text:
"活动策划是提高市场占有率的有效行为,一份可执行、可操作、创意突出的活动策划案,可有效提升企业的知名度及品牌美誉度。活动策划案是相对于市场策划案而言,严格说它们同属市场策划的兄弟分支,活动策划、..."
}
],
lists: [1, 2, 3, 4, 5, 6, 7, 8]
};
},
computed: {},
watch: {},
methods: {
initSwiper() {
var mySwiper = new Swiper(".swiper-one", {
loop: true,
autoplay: {
delay: 3000
},
/** 如果需要前进后退按钮 */
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
}
});
},
scrollFeeds: function(btn) {
let feeds = document.querySelector(".f-row");
if (btn === "left") {
this.leftPos += 460;
let scrollAmount = 0;
var slideTimer = setInterval(function() {
feeds.scrollLeft -= 10;
scrollAmount += 10;
if (scrollAmount >= 460) {
window.clearInterval(slideTimer);
}
}, 25);
} else {
this.leftPos -= 460;
let scrollAmount = 0;
// eslint-disable-next-line no-redeclare
var slideTimer = setInterval(function() {
feeds.scrollLeft += 10;
scrollAmount += 10;
if (scrollAmount >= 460) {
window.clearInterval(slideTimer);
}
}, 25);
}
}
/*
initialSwiper() {
var swiper = new Swiper(".swiper-two", {
spaceBetween: 20,
slidesPerView: 18 / 4,
slidesPerGroup: 7 / 4,
loopFillGroupWithBlank: true,
// 如果需要前进后退按钮
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
},
});
}
*/
},
created() {},
mounted() {
this.initSwiper();
/*this.initialSwiper();*/
}
};
</script>
<style lang='scss' scoped>
.swiper-wrapper {
height: auto !important;
}
.wrapper {
width: 1280px;
box-sizing: border-box;
position: relative;
.footer {
margin-top: 80px;
}
/** FOUR */
.container-four {
width: 100%;
height: 260px;
padding: 0 40px;
box-sizing: border-box;
margin-top: 59px;
.swiper-box-list {
width: 100%;
height: 250px;
box-sizing: border-box;
padding: 0 42px 0 0px;
position: relative;
.mv-btn {
cursor: pointer;
height: 60px;
width: 60px;
border-radius: 18px;
z-index: 20;
position: absolute;
&.left-side {
left: 0px;
top: 60px;
}
&.right-side {
right: 40px;
top: 60px;
}
}
#img-box {
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
align-items: flex-start;
overflow-y: scroll;
&::-webkit-scrollbar {
display: none;
}
.img-box {
width: 239px;
height: 196px;
background-color: #ffffff;
box-shadow: 0px 10px 9px 1px rgba(206, 204, 204, 0.5);
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-right: 20px;
img {
width: 239px;
height: 130px;
border-radius: 5px 5px 0px 0px;
}
p {
font-family: "MicrosoftYaHei";
font-size: 18px;
font-weight: bold;
font-stretch: normal;
line-height: 60px;
letter-spacing: 0px;
color: #333333;
}
}
}
/*
.swiper-button-prev.swiper-button-disabled {
opacity: 0;
cursor: auto;
pointer-events: none;
}
.swiper-button-next.swiper-button-disabled {
opacity: 1;
cursor: auto;
pointer-events: none;
}
.swiper-button-prev {
outline: none;
position: absolute;
top: 50%;
left: 0%;
width: 60px;
height: 60px;
margin-top: -22px;
z-index: 10;
cursor: pointer;
background-image: url("../../../static//img/left.png");
background-size: 60px 60px;
background-position: center;
background-repeat: no-repeat;
}
.swiper-button-next {
outline: none;
position: absolute;
top: 50%;
right: 0%;
width: 60px;
height: 60px;
margin-top: -22px;
z-index: 10;
cursor: pointer;
background-image: url("../../../static//img/right.png");
background-size: 60px 60px;
background-position: center;
background-repeat: no-repeat;
}
.swiper-slide {
width: 239px !important;
background-color: #ffffff;
box-shadow: 0px 10px 9px 1px rgba(206, 204, 204, 0.12);
border-radius: 5px;
text-align: center;
margin-right: 20px;
display: flex;
flex-direction: column;
img {
width: 239px;
height: 130px;
background-color: #ffffff;
border-radius: 5px 5px 0px 0px;
}
span {
font-family: "MicrosoftYaHei";
font-size: 18px;
font-weight: bold;
font-stretch: normal;
line-height: 60px;
letter-spacing: 0px;
color: #333333;
}
}
*/
}
.title {
font-family: "MicrosoftYaHei";
font-size: 24px;
font-weight: bold;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
margin-bottom: 30px;
}
}
/** THREE */
.container-three {
width: 100%;
height: 848px;
padding: 0 40px;
box-sizing: border-box;
margin-top: 59px;
.box-list {
width: 100%;
height: 794px;
background-color: #ffffff;
box-sizing: border-box;
padding: 0 60px 0 8px;
.list {
width: 1132px;
height: 240px;
box-sizing: border-box;
padding: 33px 8px 26px 12px;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #f8f8f8;
border-top: 1px solid #f8f8f8;
&:nth-last-child(1) {
border-bottom: 0px solid #f8f8f8;
}
img {
width: 300px;
height: 180px;
border-radius: 5px;
}
.wen-ben {
width: 763px;
h3 {
font-family: "MicrosoftYaHei";
font-size: 22px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 1px;
color: #333333;
margin: 17px 0 36px 0;
}
p {
font-family: MicrosoftYaHei;
font-size: 18px;
font-weight: normal;
font-stretch: normal;
line-height: 30px;
letter-spacing: 1px;
color: #666666;
}
}
}
}
.title {
font-family: "MicrosoftYaHei";
font-size: 24px;
font-weight: bold;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
margin-bottom: 30px;
}
}
/** TWO */
.container-two {
width: 100%;
height: 482px;
padding: 0 40px;
box-sizing: border-box;
margin-top: 59px;
#boxs {
width: 100%;
height: 428px;
display: flex;
justify-content: space-between;
align-items: flex-start;
.box-child {
width: 365px;
height: 428px;
background-color: #ffffff;
box-shadow: 0px 10px 8px 2px rgba(173, 167, 167, 0.08);
border-radius: 10px;
box-sizing: border-box;
padding: 0 14px;
.ult {
margin-top: 29px;
width: 303px;
height: 297px;
li {
a {
color: #333333;
}
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 33px;
letter-spacing: 0px;
overflow: hidden;
-o-text-overflow: clip;
text-overflow: clip;
white-space: nowrap;
}
}
.ulo {
margin-top: 29px;
width: 321px;
height: 297px;
li {
a {
color: #333333;
}
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 33px;
letter-spacing: 0px;
overflow: hidden;
-o-text-overflow: clip;
text-overflow: clip;
white-space: nowrap;
}
}
.p {
margin-top: 29px;
.img {
width: 309px;
display: flex;
justify-content: flex-end;
cursor: pointer;
.img-box {
width: 157px;
height: 32px;
background-image: linear-gradient(
35deg,
#f82747 0%,
#fe5b2c 100%
);
border-radius: 25px;
text-align: center;
line-height: 32px;
position: relative;
img {
width: 18px;
height: 18px;
position: absolute;
left: -5%;
top: 24%;
}
span {
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: bold;
font-stretch: normal;
letter-spacing: 0px;
color: #fbfffb;
text-shadow: 2px 4px 7px 0px rgba(175, 14, 39, 0.83);
}
}
}
.text {
width: 309px;
height: 262px;
p {
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 33px;
letter-spacing: 0px;
color: #333333;
}
}
}
.top-p {
width: 100%;
height: 56px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #ccc;
span {
font-family: "MicrosoftYaHei";
font-size: 14px;
font-weight: normal;
font-stretch: normal;
letter-spacing: -1px;
color: #999999;
}
div {
display: flex;
justify-content: space-between;
align-items: center;
.o {
width: 27px;
height: 24px;
}
.n {
width: 35px;
height: 23px;
}
.e {
width: 27px;
height: 26px;
}
span {
margin-left: 16px;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #666666;
}
}
}
}
}
.title {
margin-bottom: 30px;
font-family: "MicrosoftYaHei";
font-size: 24px;
font-weight: bold;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
}
/** ONE */
.container {
width: 100%;
padding: 0 40px;
box-sizing: border-box;
margin-top: 40px;
display: flex;
justify-content: space-between;
align-items: center;
.right {
width: 491px;
height: 400px;
ul {
height: 333px;
margin-top: 28px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;
li {
width: 491px;
a {
display: flex;
justify-content: space-between;
align-items: center;
time {
font-family: "MicrosoftYaHei";
font-size: 17px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #999999;
}
span {
display: inline-block;
width: 329px;
font-family: "MicrosoftYaHei";
font-size: 18px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
.top {
border-bottom: 1px solid #ccc;
padding-bottom: 20px;
box-sizing: border-box;
width: 491px;
height: 40px;
display: flex;
align-items: flex-start;
.b {
width: 100%;
height: 24px;
display: flex;
align-items: center;
justify-content: space-between;
& > span:first-child {
font-family: "MicrosoftYaHei";
font-size: 24px;
font-weight: bold;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
& > span:last-child {
font-family: "MicrosoftYaHei";
font-size: 14px;
font-weight: normal;
font-stretch: normal;
line-height: 10px;
letter-spacing: -1px;
color: #999999;
}
}
}
}
.swiperone {
position: relative;
.swiper-one {
width: 660px;
height: 400px;
box-sizing: border-box;
.swiper-slide {
width: 660px;
height: 400px;
position: relative;
.box {
width: 660px;
height: 80px;
background-color: rgba($color: #000000, $alpha: 0.7);
position: absolute;
bottom: 0%;
left: 0%;
z-index: 5;
text-align: center;
font-family: "MicrosoftYaHei";
font-size: 20px;
font-weight: normal;
font-stretch: normal;
line-height: 80px;
letter-spacing: -1px;
color: #ffffff;
}
& > img {
width: 100%;
height: 100%;
}
}
}
.swiper-button-prev {
position: absolute;
top: 93%;
left: 4%;
width: 13px;
height: 23px;
margin-top: -22px;
z-index: 10;
cursor: pointer;
background-size: 13px 23px;
background-position: center;
background-repeat: no-repeat;
outline: none;
}
.swiper-button-next {
position: absolute;
top: 93%;
right: 4%;
width: 13px;
height: 23px;
margin-top: -22px;
z-index: 10;
cursor: pointer;
background-size: 13px 23px;
background-position: center;
background-repeat: no-repeat;
outline: none;
}
}
}
}
</style>

View File

@@ -0,0 +1,263 @@
<template>
<div class="wrapper">
<header-nav :index_num="index_num"></header-nav>
<div class="box">
<div class="left">
<dl>
<dt>
<img class="one"
:src="imgUrl.img5"
alt />
<span @click="collection()"
class="iconfont icon-changyongtubiao-mianxing-"
:class="coll ? 'colorTrue' : 'colorFalse'"></span>
</dt>
<dd>
<span class="d-o">因势而谋书写能源转型发展大文章</span>
</dd>
<dd>
<span class="d-b">
来源:央视网
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
发布时间:2019-08-08
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
浏览量:11123
</span>
</dd>
</dl>
<div class="text">
<p>近日,国家能源局召开党组中心组学习(扩大)会议,专题学习习近平新时代中国特色社会主义思想学习纲要中关于掌握马克思主义思想方法和工作方法重要论述扎实推进国家能源局不忘初心牢记使命主题教育马克思主义思想方法和工作方法是我们党的看家本领落实四个革命一个合作能源安全新战略,构建清洁低碳安全高效的能源体系任务艰巨而繁重,迫切需要我们掌握科学的世界观和方法论,树立科学的思想方法和工作方法国家能源局党组书记局长章建华开门见山,强调了把马克思主义的科学方法和工作方法贯穿能源发展全过程的重要意义坚持实事求是在调查硏究中找准问题在革命建设改革各个历史时期,中国共产党运用马克思主义世界观和方法论,系统具体历史地分析中国社会运动及其发展规律,在实践过程中形成了实事求是问题导向等一系列科学的思想方法和工作方法</p>
<p>习近平总书记关于掌握马克思主义思想方法和工作方法的重要论述,是马克思主义世界观和方法论在当代中国的具体运用我国仍处于并将长期处于社会主义初级阶段,是最大的国情和实际我们开展各项工作,要一切从实际出发,牢牢立足这个最大国情和实际,不要超越阶段从能源来,我国富煤少油缺气的资源禀赋,决定了煤炭在较长一个时期內作为我国主体能源的地位不会发玍变化,这就要求我们坚持从煤炭资源丰富旳国情岀发,切实抓好煤炭清洁高效利用章建华说对此,国家能源局党组成员副局长刘宝华也指岀,煤炭资源的清洁开发和利用,是保障能源安全旳基石近些年我们在煤电领堿实施以大代小,老小机组拆除近亿千瓦,极大地提髙了煤电发电的整体质量,能效大幅提升,污染大幅下降在煤炭领堿实施产能置换政策,对提髙效率降低成本提升安全水平也发挥了决定性的作用实际工作中的问题则需要通过调査研究来发现和解决主题教育开展以来,国家能源局党组高度重视调查研究工作,在中央第二十指导组的指导下,局党组和40个基层党组织结合职责任务,有针对性地确定调研课题118个,局领导和各部门各单位主要负责同志带头深入一线接地气搞调研坚持理想信念在服务人民中担当履责正如章建华所说,马克思主乂的世界观人生观价值观与方法论是有机统一的,方法论的背后是党性修养是价值追求是品格境界掌握马克思主义的思想方法和工作方法必须知行合一,植于心践于行共产党员必须把理想信念植于心,树牢四个意识,坚定四个自信,坚决做到两个维护,自觉把对党忠诚体现到对党的信仰忠诚上,体现到对党组织忠诚上</p>
</div>
</div>
<div class="right">
<h3>热点新闻</h3>
<div>
<template v-for="(item,index) in list">
<dl :key="index"
v-if="index < 4"
@click="$jump('newsDetails')">
<dt>
<img :src="imgUrl.img4"
alt />
</dt>
<dd>
<span class="dd">活动策划是提高市场占有率的有效行为</span>
</dd>
<dd>
<time>2019-10-14</time>
</dd>
</dl>
</template>
</div>
</div>
</div>
<footer-nav class="footer"></footer-nav>
</div>
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
return {
index_num: 0,
coll: false,
imgUrl: {
img4: require("../../../static/img/img4.png"),
img5: require("../../../static/img/img5.png"),
wjx: require("../../../static/img/wjx.png")
},
list: [1, 2, 3, 4, 5, 6, 7, 8, 9]
};
},
computed: {},
watch: {},
methods: {
collection() {
this.coll = !this.coll;
}
},
created() {},
mounted() {}
};
</script>
<style lang='scss' scoped>
.wrapper {
width: 1280px;
box-sizing: border-box;
.box {
width: 100%;
padding: 42px 40px 0px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
.left {
width: 840px;
height: 1283px;
background-color: #ffffff;
padding: 35px 30px 70px;
box-sizing: border-box;
dl {
position: relative;
width: 780px;
height: 587px;
box-sizing: border-box;
dd {
.d-o {
display: inline-block;
margin: 28px 0 23px;
font-family: "MicrosoftYaHei";
font-size: 24px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
.d-b {
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #999999;
}
}
dt {
.one {
width: 780px;
height: 494px;
}
.colorFalse {
font-size: 28px;
color: #ccc;
position: absolute;
right: 0%;
bottom: 5%;
}
.colorTrue {
font-size: 28px;
color: #fec300;
position: absolute;
right: 0%;
bottom: 5%;
}
}
}
.text {
margin: 38px auto 0px;
overflow: hidden;
width: 775px;
height: 550px;
font-family: "MicrosoftYaHei";
font-size: 18px;
font-weight: normal;
font-stretch: normal;
line-height: 40px;
letter-spacing: 0px;
color: #666666;
p {
text-indent: 1em;
}
}
}
.right {
width: 301px;
height: 1282px;
background-color: #ffffff;
border: solid 1px rgba($color: #ccc, $alpha: 0.48);
padding-top: 33px;
box-sizing: border-box;
div {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
dl {
margin-bottom: 30px;
dt {
img {
width: 260px;
height: 144px;
border-radius: 10px;
}
}
dd {
span {
margin-top: 10px;
display: inline-block;
width: 266px;
font-family: "MicrosoftYaHei";
font-size: 18px;
font-weight: normal;
font-stretch: normal;
line-height: 30px;
letter-spacing: 1px;
color: #333333;
display: -webkit-box;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-wrap: break-word;
white-space: normal;
}
time {
display: inline-block;
width: 266px;
text-align: right;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
line-height: 30px;
letter-spacing: 1px;
color: #999999;
}
}
}
h3 {
margin-left: 20px;
margin-bottom: 30px;
font-family: "MicrosoftYaHei";
font-size: 22px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
}
}
.footer {
margin-top: 80px;
}
}
</style>

205
src/views/home/NewsList.vue Normal file
View File

@@ -0,0 +1,205 @@
<template>
<div class="wrapper">
<header-nav :index_num="index_num"></header-nav>
<div id="box">
<template v-for="(list,index) in four">
<div id="news"
:key="index"
@click="$jump('newsDetails')">
<div class="news-box">
<img src="../../../static/img/img5.png"
alt />
<section>
<h3>因势而谋书写能源转型发展大文章</h3>
<aside>
<span>来源:央视网</span>
<span>发布时间:2019-08-08</span>
<span>浏览量:11123</span>
</aside>
<p>近日,国家能源局召开党组中心组学习(扩大)会议,专题学习习近平新时代中国特色社会主义思想学习纲要中关于掌握马克思主义 近日,国家能源局召开党组中心组学习(扩大)会议,专题学习习近平新时代中国特色社会主义思想学习纲要中关于掌握马克思主义 近日,国家能源局召开党组中心组学习(扩大)会议,专题学习习近平新时代中国特色社会主义思想学习纲要中关于掌握马克思主义</p>
</section>
</div>
</div>
</template>
<!-- 分页按钮 -->
<div class="page">
<el-pagination @size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-size="pageSize"
background
layout="prev, pager, next"
:total="10"></el-pagination>
</div>
</div>
<footer-nav class="footer"></footer-nav>
</div>
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
return {
index_num: 0,
pageSize: 1,
currentPage: 1,
totalCount: 1,
four: [1, 2, 3, 4]
};
},
computed: {},
watch: {},
methods: {
handleSizeChange(val) {
this.pageNum = val;
this.getPackData();
},
handleCurrentChange(val) {
this.currentPage = val;
this.getPackData();
},
getPackData() {}
},
created() {
this.currentPage = Number(localStorage.getItem("pagination")) || 1;
this.handleCurrentChange(this.currentPage);
},
mounted() {}
};
</script>
<style lang='scss' scoped>
.wrapper {
width: 1280px;
box-sizing: border-box;
position: relative;
#box {
width: 1200px;
background-color: #ffffff;
margin: 40px auto 80px;
box-sizing: border-box;
padding: 21px 30px 100px 11px;
.news-box {
width: 1159px;
height: 255px;
padding: 14px 7px 40px 19px;
box-sizing: border-box;
border-bottom: 1px solid #e6e6e6;
margin-bottom: 26px;
img {
width: 290px;
height: 200px;
border-radius: 10px;
}
display: flex;
justify-content: space-between;
align-items: center;
section {
width: 813px;
height: 96%;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-start;
h3 {
font-family: "MicrosoftYaHei";
font-size: 22px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #333333;
}
aside {
width: 434px;
height: 17px;
font-family: "MicrosoftYaHei";
font-size: 16px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #999999;
}
p {
width: 813px;
height: 100px;
font-family: "MicrosoftYaHei";
font-size: 18px;
font-weight: normal;
font-stretch: normal;
line-height: 36px;
letter-spacing: 0px;
color: #666666;
overflow: hidden;
-o-text-overflow: clip;
text-overflow: clip;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
word-wrap: break-word;
white-space: normal;
}
}
}
.page {
margin-top: 60px;
height: 36px;
display: flex;
justify-content: flex-end;
align-items: center;
/deep/ .el-pagination.is-background .el-pager li {
color: #333 !important;
}
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #e60012;
color: #fff !important;
}
/deep/ .el-icon.el-icon-arrow-left::before {
content: "上一页";
font-family: "MicrosoftYaHei";
font-size: 12px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 1px;
color: #666;
}
/deep/ .el-pagination .btn-prev {
width: 80px;
}
/deep/ .el-pagination .btn-next {
width: 80px;
}
/deep/ .el-icon.el-icon-arrow-right::before {
content: "下一页";
font-family: "MicrosoftYaHei";
font-size: 12px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 1px;
color: #666;
}
}
}
}
</style>