修改活动背景高度
This commit is contained in:
parent
e51675d2e7
commit
9d8d54cf02
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user