ct
This commit is contained in:
@@ -54,10 +54,10 @@
|
||||
<div class="header">{{ category.title }}</div>
|
||||
<div class="content-wrap"
|
||||
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 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 class="content-wrap" v-if="category.contentType == 1">
|
||||
<img class="img" :src="category.pictureUrl" alt=""/>
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
this.getName();
|
||||
this.getGrids();
|
||||
// this.getActive();
|
||||
// this.getNotice();
|
||||
this.getNotice();
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -162,7 +162,7 @@ export default {
|
||||
})
|
||||
},
|
||||
clickNotice(val) {
|
||||
const id = this.notices[val]["id"];
|
||||
const id = this.notices[val]?.["id"];
|
||||
if (id) {
|
||||
uni.navigateTo({
|
||||
url: "/mods/AppNotice/AppNotice?id=" + id
|
||||
@@ -401,10 +401,12 @@ export default {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
margin-bottom: 38px;
|
||||
|
||||
.pic-left,
|
||||
.pic-right {
|
||||
width: 46%;
|
||||
height: 112px;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
||||
@@ -85,9 +85,6 @@
|
||||
export default {
|
||||
name: 'AppCircle',
|
||||
appName: '邻里互助',
|
||||
navigationBarBackgroundColor: '#ffffff',
|
||||
navigationBarTextStyle: 'black',
|
||||
customNavigation: true,
|
||||
|
||||
data() {
|
||||
return {
|
||||
@@ -282,7 +279,7 @@
|
||||
|
||||
<style scoped lang="scss">
|
||||
.AppCircle {
|
||||
padding-top: 120px;
|
||||
padding-top: 100px;
|
||||
padding-bottom: 40px;
|
||||
|
||||
.header {
|
||||
|
||||
Reference in New Issue
Block a user