球星卡微信小程序
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.
 
 
 
 

36 lines
529 B

<template>
<view>
<u-parse :content="content"></u-parse>
</view>
</template>
<script>
export default {
data(){
return {
id: '',
title: '',
article: ''
}
},
onLoad(options){
this.id = options.id || '';
this.title = options.title || '';
// todo 此处根据文章id获取
this.id && this.getDetail();
},
onReady(){
uni.setNavigationBarTitle({
title: this.title
})
},
methods: {
getDetail(){
console.log("this.id", this.id);
}
}
}
</script>
<style>
</style>