Browse Source

党建声音组件

dev
jiangyy 4 years ago
parent
commit
c564fe5b55
  1. 32
      epmet-oper-web/src/assets/scss/modules/wx-mini/voice.scss
  2. 3
      epmet-oper-web/src/components/wx-index/cpt-item.vue
  3. 35
      epmet-oper-web/src/components/wx-index/voice.vue

32
epmet-oper-web/src/assets/scss/modules/wx-mini/voice.scss

@ -66,6 +66,38 @@
overflow: hidden; overflow: hidden;
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
.tag{
height: 40px;
display: flex;
justify-content: flex-start;
.tab_item{
margin:10px;
.tab_item_name{
padding:0 10px;
height: 25px;
background: #CCCCCC;
opacity: 0.8;
border-radius: 6px;
text-align: center;
font-size: 13px;
font-family: PingFang SC;
font-weight: 500;
color: #999999;
line-height: 25px;
}
.tab_item_focus{
background: #D32104;
font-size: 13px;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
line-height: 25px;
opacity: 1;
}
}
}
.d-cpt-title { .d-cpt-title {
position: relative; position: relative;
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;

3
epmet-oper-web/src/components/wx-index/cpt-item.vue

@ -27,10 +27,11 @@
:item=item :item=item
:isFocused=isFocused></heart> :isFocused=isFocused></heart>
<!-- 党建声音最新发布特色文章轮播图新闻 --> <!-- 党建声音最新发布特色文章轮播图新闻最新发布带标签专题文章 -->
<div v-else-if="item.componentFrontId==='resi-functionList-voice-newsList' <div v-else-if="item.componentFrontId==='resi-functionList-voice-newsList'
||item.componentFrontId==='resi-functionList-voice-newsList2' ||item.componentFrontId==='resi-functionList-voice-newsList2'
||item.componentFrontId==='resi-topList-voice-hotNewsSwiper' ||item.componentFrontId==='resi-topList-voice-hotNewsSwiper'
||item.componentFrontId==='resi-functionList-voice-listwithtag'
||item.componentFrontId==='resi-functionList-voice-speciallist'"> ||item.componentFrontId==='resi-functionList-voice-speciallist'">
<voice :item=item <voice :item=item
:isFocused=isFocused></voice> :isFocused=isFocused></voice>

35
epmet-oper-web/src/components/wx-index/voice.vue

@ -49,6 +49,38 @@
</div> </div>
</div> </div>
<!-- 党建声音-最新发布带标签 -->
<div class="voice_news"
v-else-if="item.componentFrontId==='resi-functionList-voice-listwithtag'">
<div class="content">
<div class="d-cpt-title">党建声音</div>
<div class="tag">
<div class="tab_item"
:key="subindex"
v-for="(subitem, subindex) in item.configuration.tagList">
<div :class="['tab_item_name',{'tab_item_focus':subindex==0}]">{{subitem}}</div>
</div>
</div>
<div class="list">
<div class="item"
:key="subindex"
v-for="(subitem, subindex) in item.demoData.list">
<div class="news_title">{{ subitem.title }}</div>
<img v-if="subitem.pic"
:src="subitem.pic">
<img v-else
src="@/assets/img/modules/wx-mini/index-set/page/news-pic2.png">
<div class="news_grid">
<img src="@/assets/img/modules/wx-mini/index-set/pavilion.png">
<span>来源{{ subitem.author }}</span>
<span class="f-fr">{{ subitem.date }}</span>
</div>
</div>
</div>
</div>
</div>
<!-- 党建声音-专题文章 --> <!-- 党建声音-专题文章 -->
<div class="voice_news" <div class="voice_news"
v-else-if="item.componentFrontId==='resi-functionList-voice-speciallist'"> v-else-if="item.componentFrontId==='resi-functionList-voice-speciallist'">
@ -126,6 +158,9 @@ export default {
props: { props: {
isFocused: Boolean, isFocused: Boolean,
item: Object item: Object
},
mounted () {
}, },
methods: { methods: {

Loading…
Cancel
Save