修改活动背景高度
This commit is contained in:
parent
e51675d2e7
commit
9d8d54cf02
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view id="actives">
|
<view id="actives" :style="{height : height + 'px'}">
|
||||||
<!-- 活动消息推送 -->
|
<!-- 活动消息推送 -->
|
||||||
<block v-for="(item, index) in actives" :key="index">
|
<block v-for="(item, index) in actives" :key="index">
|
||||||
<view class="time">{{ item.addtime }}</view>
|
<view class="time">{{ item.addtime }}</view>
|
||||||
@ -22,13 +22,21 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
height:'600',
|
||||||
actives: [
|
actives: [
|
||||||
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
this.messageactivityList()
|
var _that = this
|
||||||
|
_that.messageactivityList();
|
||||||
|
uni.getSystemInfo({
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res.windowHeight);
|
||||||
|
_that.height = res.windowHeight
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
titletext(){
|
titletext(){
|
||||||
@ -55,7 +63,6 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
#actives{
|
#actives{
|
||||||
height: 100%;
|
|
||||||
background: #ECECEC;
|
background: #ECECEC;
|
||||||
.time {
|
.time {
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user