Commit 0b3d54f0 authored by shangbj's avatar shangbj

update

parent 98788de6
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<div class="currently-wrap"> <div class="currently-wrap">
<div class="currently-node">饮用水消毒</div> <div class="currently-node">饮用水消毒</div>
<div class="currently-list"> <div class="currently-list">
<ul> <!-- <ul>
<li class="listItem" v-for="(item, index) in newData" :key="index"> <li class="listItem" v-for="(item, index) in newData" :key="index">
<nuxt-link :to="'/news/' + item.id" class="itemTitle">{{item.title}}</nuxt-link> <nuxt-link :to="'/news/' + item.id" class="itemTitle">{{item.title}}</nuxt-link>
<span class="contentTime">&nbsp;&nbsp;{{item.time}}</span> <span class="contentTime">&nbsp;&nbsp;{{item.time}}</span>
</li> </li>
</ul> </ul> -->
<el-pagination <!-- <el-pagination
class="elPage" class="elPage"
background background
layout="prev, pager, next" layout="prev, pager, next"
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
next-text="下一页" next-text="下一页"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:total="newData.length"> :total="newData.length">
</el-pagination> </el-pagination> -->
</div> </div>
</div> </div>
</template> </template>
...@@ -38,4 +38,3 @@ export default { ...@@ -38,4 +38,3 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>
\ No newline at end of file
<template> <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> </div>
</template> </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> <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> </div>
</template> </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