暖心人
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
973 B

<template>
<u-navbar
:title="title"
:auto-back="true"
left-icon-size="40rpx"
:safe-area-inset-top="true"
:placeholder="true"
bgColor="#fff"
fixed
></u-navbar>
<view style="padding-bottom:16rpx;">
<u-parse :content="content"></u-parse>
</view>
</template>
<script>
import {bannerDetail} from "../../api/other";
export default {
data() {
return {
content:'',
pageParam:'',
title:'',
}
},
onLoad(option) {
this.pageParam = option.id || '';
this.getArticle();
},
computed: {},
methods: {
getArticle(){
bannerDetail({id:this.pageParam}).then(response => {
this.title = response.data.title;
this.content = response.data.content;
})
}
},
onPageScroll(res) {
if (res.scrollTop <= 20) {
uni.$emit('isTop', true);
} else {
uni.$emit('isTop', false);
}
},
created() {
}
}
</script>
<style lang="scss"></style>