demingshangjia/pages/login/agreements.vue

31 lines
558 B
Vue

<template>
<view class="agreements">
<rich-text :nodes="nodes"></rich-text>
</view>
</template>
<script>
export default {
data() {
return {
nodes: '<div style="margin-bottom: 1000px;">测试</div><p>789</p>',
}
},
onLoad(option) {
this.setTitle(option.title);
},
methods: {
setTitle(title){
uni.setNavigationBarTitle({
title: title
});
},
}
};
</script>
<style lang="scss" scoped>
.agreements {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
padding: 20rpx 35rpx;
}
</style>