6.4
This commit is contained in:
31
pageE/mine/ArticleDetails.vue
Normal file
31
pageE/mine/ArticleDetails.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<view class="article-details">
|
||||
<rich-text :nodes="nodes"></rich-text>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
nodes: `<p>13268748568645634nfdhf dfvjdfjgdfl vdufhnh1</p>123346<h1>das</h1><h1>das</h1><h1>das1</h1><h2>das2</h2><h3>das3</h3>`
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.setTitle(option.title);
|
||||
},
|
||||
methods: {
|
||||
setTitle(title){
|
||||
uni.setNavigationBarTitle({
|
||||
title: title + "详情"
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.article-details {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background: #ECECEC;
|
||||
padding: 20rpx 35rpx 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user