Merge pull request 'zmr' (#247) from zmr into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/247
This commit is contained in:
zhaomingrui 2020-08-18 21:10:19 +08:00
commit fb16e774b8

View File

@ -1,5 +1,5 @@
<template>
<view id="actives">
<view id="actives" :style="{height : height + 'px'}">
<!-- 活动消息推送 -->
<block v-for="(item, index) in actives" :key="index">
<view class="time">{{ item.addtime }}</view>
@ -22,13 +22,21 @@
export default {
data() {
return {
height:'600',
actives: [
]
};
},
onLoad(){
this.messageactivityList()
var _that = this
_that.messageactivityList();
uni.getSystemInfo({
success: function (res) {
console.log(res.windowHeight);
_that.height = res.windowHeight
}
});
},
methods: {
titletext(){
@ -55,7 +63,6 @@
height: 100%;
}
#actives{
height: 100%;
background: #ECECEC;
.time {
padding: 30rpx 0;