Commit 257fbba1 by 林家欣

首页修改其静态文章列表文案

parent b9f718d5
<template> <template>
<div class="list"> <div class="list">
<div v-for="(tmp, i) in 10" :key="i" class="row"> <div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div class="col-lg-8 list-left"> <div class="col-lg-8 list-left">
<span></span> <span></span>
<span>墨玉树上老菌菌业有限公司墨玉树上老菌菌业有限公司</span> <span>{{tmp.name}}</span>
</div> </div>
<div class="col-lg-4 list-right">2020-10-20</div> <div class="col-lg-4 list-right">{{tmp.time}}</div>
</div> </div>
<div class="row"> <div class="row">
<div class="col more" @click="handelMore"><span>更多></span></div> <div class="col more" @click="handelMore"><span>更多></span></div>
...@@ -14,7 +14,13 @@ ...@@ -14,7 +14,13 @@
</template> </template>
<script> <script>
export default { export default {
props: ['list'],
methods: { methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
},
handelMore() { handelMore() {
this.$router.push({ this.$router.push({
path: '/News/index' path: '/News/index'
...@@ -32,6 +38,7 @@ export default { ...@@ -32,6 +38,7 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 8px 0; padding: 8px 0;
margin: 0; margin: 0;
cursor: pointer;
.list-left { .list-left {
flex: 1; flex: 1;
display: flex; display: flex;
......
<template> <template>
<div class="list"> <div class="list">
<div v-for="(tmp, i) in list" :key="i" class="row"> <div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div class="col li"> <div class="col li">
<span></span> <span></span>
<span>墨玉树上老菌菌业有限公司墨玉树上老菌菌业有限公司</span> <span>{{tmp.name}}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
<script> <script>
export default { export default {
props: ['list'], props: ['list'],
methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
},
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -22,6 +29,7 @@ export default { ...@@ -22,6 +29,7 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 10px 0; padding: 10px 0;
margin: 0; margin: 0;
cursor: pointer;
.li { .li {
flex: 1; flex: 1;
display: flex; display: flex;
......
<template> <template>
<div class="list"> <div class="list">
<div v-for="(tmp, i) in list" :key="i" class="row"> <div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div class="col li"> <div class="col li">
<span></span> <span></span>
<span>墨玉树上老菌菌业有限公司墨玉树上老菌菌业有限公司</span> <span>{{tmp.name}}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
<script> <script>
export default { export default {
props: ['list'], props: ['list'],
methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
},
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -22,6 +29,7 @@ export default { ...@@ -22,6 +29,7 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 2.8px 0; padding: 2.8px 0;
margin: 0; margin: 0;
cursor: pointer;
.li { .li {
flex: 1; flex: 1;
display: flex; display: flex;
......
<template> <template>
<div class="list"> <div class="list">
<div v-for="(tmp, i) in list" :key="i" class="row"> <div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div class="col li"> <div class="col li">
<span></span> <span></span>
<span>墨玉树上老菌菌业有限公司墨玉树上老菌菌业有限公司</span> <span>{{tmp.name}}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
<script> <script>
export default { export default {
props: ['list'], props: ['list'],
methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
},
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -26,6 +33,7 @@ export default { ...@@ -26,6 +33,7 @@ export default {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer;
@include ellipsis; @include ellipsis;
span { span {
display: inline-block; display: inline-block;
......
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