deming/pageD/notice/notice.vue

58 lines
1.1 KiB
Vue
Raw Normal View History

2020-06-11 00:43:51 +00:00
<template>
2020-08-20 06:23:21 +00:00
<view id="viewes" :style="{height : height + 'px'}">
2020-06-11 00:43:51 +00:00
<!-- 公告咨询 -->
2020-08-06 12:42:03 +00:00
<notice :list="list"></notice>
2020-08-24 07:13:38 +00:00
<u-loadmore :status="loadStatus" bg-color="#ECECEC" margin-top="20" v-if="loadStatus=='nomore'" />
2020-06-11 00:43:51 +00:00
</view>
</template>
<script>
2020-08-18 03:06:28 +00:00
import notice from "@/components/informations/notice/notice"
2020-06-11 00:43:51 +00:00
export default {
data() {
return {
2020-08-18 04:02:30 +00:00
list: [],
2020-08-24 07:13:38 +00:00
loadStatus: 'loadmore'
2020-06-11 00:43:51 +00:00
};
},
2020-08-18 03:06:28 +00:00
onLoad() {
2020-08-06 12:42:03 +00:00
this.informationList();
2020-08-20 06:23:21 +00:00
var _that = this
uni.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
_that.height = res.windowHeight
}
});
2020-07-09 08:35:23 +00:00
},
2020-06-11 00:43:51 +00:00
methods: {
2020-08-18 03:06:28 +00:00
titletext() {},
informationList() {
this.$u.api.informationList({}).then((res) => {
if (res.errCode == 0) {
2020-08-18 04:02:30 +00:00
this.list = res.data;
2020-08-24 07:13:38 +00:00
// 目前没有分页,只无数据提示用
if(!this.list.length) this.loadStatus = 'nomore';
2020-08-18 03:06:28 +00:00
}
2020-07-09 08:35:23 +00:00
})
2020-06-11 00:43:51 +00:00
}
},
2020-08-18 03:06:28 +00:00
components: {
2020-06-11 00:43:51 +00:00
notice,
}
};
</script>
2020-08-22 01:00:00 +00:00
<style lang="scss">
2020-08-18 03:06:28 +00:00
page {
background-color: #ECECEC;
}
2020-08-20 06:23:21 +00:00
#viewes{
background: #ECECEC;
}
2020-06-11 00:43:51 +00:00
.sousuo {
height: 113rpx;
border: 1px #f00 solid;
}
</style>