app_tree_planting/pages/news/giftpage.vue
2023-03-03 19:29:04 +08:00

57 lines
833 B
Vue

<template>
<view class="page">
<view class="content">
<rich-text :nodes="desc" class="desc"></rich-text>
<image src="/static/images/ic_gift_1.png" mode="widthFix"></image>
<image src="/static/images/ic_gift_2.png" mode="widthFix"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
desc: ''
};
},
onLoad(res) {
this.desc = res.desc
},
methods: {
}
}
</script>
<style lang="scss">
page {
height: 100%;
}
.page {
display: flex;
flex: 1;
flex-direction: column;
overflow: auto;
height: 100%;
}
.content {
flex: 1;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.desc {
font-size: 32rpx;
padding: 20rpx;
}
image {
width: 100%;
}
</style>