58 lines
1.1 KiB
Vue
58 lines
1.1 KiB
Vue
<template>
|
|
<div class="PersonalAnswer" @click="tab">
|
|
<div class="title">
|
|
<p>{{operation}}</p>
|
|
<p>{{day}}</p>
|
|
</div>
|
|
<div class="center">
|
|
{{title}}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<style lang="scss" scoped>
|
|
.PersonalAnswer {
|
|
padding: 0 0 39px 0;
|
|
border-bottom: 1px solid #dfdfdf;
|
|
.title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 26px;
|
|
color: #95998f;
|
|
margin-bottom: 28px;
|
|
}
|
|
.center {
|
|
font-size: 30px;
|
|
color: #000;
|
|
line-height: 46px;
|
|
}
|
|
}
|
|
</style>
|
|
<script>
|
|
export default {
|
|
name: "PersonalAnswer",
|
|
data() {
|
|
return {};
|
|
},
|
|
props:['operation','day','title',"types","sid","type"],
|
|
methods:{
|
|
tab(){
|
|
// window.console.log(this.types,"llk")
|
|
// this.$emit("wz",this.types,this.id)
|
|
// window.console.log( this.$router)
|
|
// }
|
|
// alert(this.type)
|
|
|
|
if(this.type == 1){
|
|
this.$router.push({
|
|
path:"/articledetail?id=" + this.sid
|
|
})
|
|
}else{
|
|
this.$router.push({
|
|
path:"/IndexArticleDetaill?id=" + this.sid
|
|
})
|
|
}
|
|
}
|
|
}
|
|
|
|
};
|
|
</script> |