ct
This commit is contained in:
@@ -54,10 +54,10 @@
|
|||||||
<div class="header">{{ category.title }}</div>
|
<div class="header">{{ category.title }}</div>
|
||||||
<div class="content-wrap"
|
<div class="content-wrap"
|
||||||
v-if="category.contentType==0 && category.files && category.files.length<3&&category.files.length>0">
|
v-if="category.contentType==0 && category.files && category.files.length<3&&category.files.length>0">
|
||||||
<img class="img" :src="item.url" v-for="(item,index) in category.files.slice(0,1)" :key="index.id">
|
<img class="img" :src="item.url" v-for="item in category.files.slice(0,1)" :key="item.id">
|
||||||
</div>
|
</div>
|
||||||
<div class="content-wrap" v-if="category.contentType==0 && category.files && category.files.length >= 3">
|
<div class="content-wrap" v-if="category.contentType==0 && category.files && category.files.length >= 3">
|
||||||
<img class="min-img" :src="item.url" v-for="(item,index) in category.files.slice(0,3)" :key="index.id">
|
<img class="min-img" :src="item.url" v-for="item in category.files.slice(0,3)" :key="item.id">
|
||||||
</div>
|
</div>
|
||||||
<div class="content-wrap" v-if="category.contentType == 1">
|
<div class="content-wrap" v-if="category.contentType == 1">
|
||||||
<img class="img" :src="category.pictureUrl" alt=""/>
|
<img class="img" :src="category.pictureUrl" alt=""/>
|
||||||
@@ -127,7 +127,7 @@ export default {
|
|||||||
this.getName();
|
this.getName();
|
||||||
this.getGrids();
|
this.getGrids();
|
||||||
// this.getActive();
|
// this.getActive();
|
||||||
// this.getNotice();
|
this.getNotice();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -157,12 +157,12 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
// this.categoryList = res.data.records;
|
// this.categoryList = res.data.records;
|
||||||
this.categoryList = this.newCurrent==1? res.data.records: [...this.categoryList,...res.data.records]
|
this.categoryList = this.newCurrent == 1 ? res.data.records : [...this.categoryList, ...res.data.records]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
clickNotice(val) {
|
clickNotice(val) {
|
||||||
const id = this.notices[val]["id"];
|
const id = this.notices[val]?.["id"];
|
||||||
if (id) {
|
if (id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/mods/AppNotice/AppNotice?id=" + id
|
url: "/mods/AppNotice/AppNotice?id=" + id
|
||||||
@@ -172,8 +172,8 @@ export default {
|
|||||||
clickLaw(index) {
|
clickLaw(index) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/AppLegalLearning/AppLegalLearning',
|
url: '/pages/AppLegalLearning/AppLegalLearning',
|
||||||
success: ()=> {
|
success: () => {
|
||||||
uni.$emit('update',{inx: index})
|
uni.$emit('update', {inx: index})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -271,7 +271,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.newCurrent ++
|
this.newCurrent++
|
||||||
this.getCategoryList()
|
this.getCategoryList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -401,17 +401,19 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 112px;
|
height: 112px;
|
||||||
margin-bottom: 38px;
|
margin-bottom: 38px;
|
||||||
|
|
||||||
.pic-left,
|
.pic-left,
|
||||||
.pic-right {
|
.pic-right {
|
||||||
width: 46%;
|
width: 46%;
|
||||||
height: 112px;
|
height: 112px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-wrap {
|
.list-wrap {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppCircle" :style="{paddingTop: (statusBarHeight + 102) + 'px'}" :background="background">
|
<div class="AppCircle" :style="{paddingTop: (statusBarHeight + 102) + 'px'}" :background="background">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="status-bar" :style="{height: statusBarHeight + 'px'}"></div>
|
<div class="status-bar" :style="{height: statusBarHeight + 'px'}"></div>
|
||||||
<div class="nav-bar" :style="{
|
<div class="nav-bar" :style="{
|
||||||
height: '88rpx',
|
height: '88rpx',
|
||||||
@@ -85,9 +85,6 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'AppCircle',
|
name: 'AppCircle',
|
||||||
appName: '邻里互助',
|
appName: '邻里互助',
|
||||||
navigationBarBackgroundColor: '#ffffff',
|
|
||||||
navigationBarTextStyle: 'black',
|
|
||||||
customNavigation: true,
|
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -282,7 +279,7 @@
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.AppCircle {
|
.AppCircle {
|
||||||
padding-top: 120px;
|
padding-top: 100px;
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|||||||
Reference in New Issue
Block a user