app_tree_planting/pages/news/giftpage.vue
2023-03-08 15:00:33 +08:00

85 lines
1.3 KiB
Vue

<template>
<view class="page">
<view class="content">
<view class="state-bar">
<image src="/static/images/ic_arrow_left.png" mode="aspectFill" @click="closePage()"></image>
<text></text>
</view>
<image src="/static/images/ic_gift_1.png" style="width: 100%;height:100%;" mode="widthFix"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
desc: ''
};
},
onLoad(res) {
this.desc = res.desc
},
methods: {
closePage() {
uni.navigateBack()
}
}
}
</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;
}
.state-bar {
position: fixed;
top: 0%;
left: 0%;
width: 100%;
margin: 45rpx 0rpx;
height: 100rpx;
display: flex;
flex-direction: row;
align-items: center;
color: black;
z-index: 2;
image {
width: 50rpx;
height: 50rpx;
margin-left: 20rpx;
}
text {
font-size: 40rpx;
align-self: center;
text-align: center;
width: 100%;
margin-left: -70rpx;
}
}
</style>