Commit 0b3d54f0 authored by shangbj's avatar shangbj

update

parent 98788de6
......@@ -2,13 +2,13 @@
<div class="currently-wrap">
<div class="currently-node">饮用水消毒</div>
<div class="currently-list">
<ul>
<!-- <ul>
<li class="listItem" v-for="(item, index) in newData" :key="index">
<nuxt-link :to="'/news/' + item.id" class="itemTitle">{{item.title}}</nuxt-link>
<span class="contentTime">&nbsp;&nbsp;{{item.time}}</span>
</li>
</ul>
<el-pagination
</ul> -->
<!-- <el-pagination
class="elPage"
background
layout="prev, pager, next"
......@@ -16,7 +16,7 @@
next-text="下一页"
@current-change="handleCurrentChange"
:total="newData.length">
</el-pagination>
</el-pagination> -->
</div>
</div>
</template>
......@@ -37,5 +37,4 @@ export default {
</script>
<style lang="scss" scoped>
</style>
</style>
\ No newline at end of file
<template>
<div>
医院污水
<div class="clearfix content">
<div class="left-con-wrap">
<ProductImgList />
<ContactUs />
</div>
<div class="right-con-wrap">
<nuxt-child :key="$route.params.id"/>
</div>
</div>
</template>
<script>
import ProductImgList from '~/components/ProductImgList.vue'
import ContactUs from '~/components/ContactUs.vue'
export default {
components:{
ProductImgList,
ContactUs,
}
}
</script>
<style lang="scss">
</style>
<template>
<div class="currently-wrap">
<div class="currently-node">医院污水消毒</div>
<div class="currently-list">
<!-- <ul>
<li class="listItem" v-for="(item, index) in newData" :key="index">
<nuxt-link :to="'/news/' + item.id" class="itemTitle">{{item.title}}</nuxt-link>
<span class="contentTime">&nbsp;&nbsp;{{item.time}}</span>
</li>
</ul> -->
<!-- <el-pagination
class="elPage"
background
layout="prev, pager, next"
prev-text="上一页"
next-text="下一页"
@current-change="handleCurrentChange"
:total="newData.length">
</el-pagination> -->
</div>
</div>
</template>
<script>
export default {
data(){
return{
newData:this.$store.state.news.newsData,
currentPage:1
}
},
methods:{
handleCurrentChange(val){
console.log(`当前页:${val}`)
}
}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
<template>
<div>
中水
<div class="clearfix content">
<div class="left-con-wrap">
<ProductImgList />
<ContactUs />
</div>
<div class="right-con-wrap">
<nuxt-child :key="$route.params.id"/>
</div>
</div>
</template>
<script>
import ProductImgList from '~/components/ProductImgList.vue'
import ContactUs from '~/components/ContactUs.vue'
export default {
components:{
ProductImgList,
ContactUs,
}
}
</script>
<style lang="scss">
</style>
<template>
<div class="currently-wrap">
<div class="currently-node">中水消毒</div>
<div class="currently-list">
<!-- <ul>
<li class="listItem" v-for="(item, index) in newData" :key="index">
<nuxt-link :to="'/news/' + item.id" class="itemTitle">{{item.title}}</nuxt-link>
<span class="contentTime">&nbsp;&nbsp;{{item.time}}</span>
</li>
</ul> -->
<!-- <el-pagination
class="elPage"
background
layout="prev, pager, next"
prev-text="上一页"
next-text="下一页"
@current-change="handleCurrentChange"
:total="newData.length">
</el-pagination> -->
</div>
</div>
</template>
<script>
export default {
data(){
return{
newData:this.$store.state.news.newsData,
currentPage:1
}
},
methods:{
handleCurrentChange(val){
console.log(`当前页:${val}`)
}
}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment