This commit is contained in:
clay
2022-01-28 16:36:09 +08:00
parent 6b2d1034c2
commit 8c0a3480de
9 changed files with 110 additions and 32 deletions

View File

@@ -17,9 +17,8 @@
</el-row>
</div>
<div>
<el-row>
<!--正文内容-->
<el-col class="context">
<div class="context">
<div v-for="(item,index) in value.data" class="tw">
<el-row>
<el-col :xs="6" :sm="6" :md="5" :lg="4" :xl="4">
@@ -48,8 +47,7 @@
</el-row>
<hr v-if="index != value.data.length-1" style="border: 0.1rem solid #E6E6E6;" class="hr">
</div>
</el-col>
</el-row>
</div>
<el-row>
<el-col class="pagination_p">
@@ -98,14 +96,14 @@ export default {
let type = this.$route.query && this.$route.query.type
let router = ''
if (type!=null){
router = "?id="+context.id+'&type='+type
router = "?id="+context.id+'&type='+type+"&lang="+sessionStorage.getItem("lang")
}else {
router="/" +this.value.navId+"?id="+context.id
router="/" +this.value.navId+"?id="+context.id+"&lang="+sessionStorage.getItem("lang")
}
if (this.width <=992){
this.$router.push("/mobile/" + this.value.secondId +router+"?lang="+sessionStorage.getItem("lang"));
this.$router.push("/mobile/" + this.value.secondId +router);
}else {
this.$router.push("/pc/" + this.value.secondId +router+"?lang="+sessionStorage.getItem("lang"));
this.$router.push("/pc/" + this.value.secondId +router);
}
},
handleSizeChange(val) {
@@ -121,7 +119,7 @@ export default {
title:this.query,
id: this.value.navId,
pageNum: this.value.pageNum,
pageSize: 4
pageSize: 5
}
this.type = this.$route.query && this.$route.query.type
if (this.type != null&&this.type!=0){
@@ -171,6 +169,7 @@ export default {
.context {
margin: 3rem 2rem;
padding-bottom: 3rem;
padding-top: 2rem;
//width: 84.3rem;
background: #FFFFFF;
@@ -278,7 +277,11 @@ export default {
}
@media screen and (max-width: 1100px){
.query {
margin-top: 3rem;
width: 80% !important;
}
.context{
margin-top: 6rem;
}
}
</style>