48 lines
819 B
Vue
48 lines
819 B
Vue
<template>
|
|
<view>
|
|
<u-navbar :is-back="true" title='帮助中心详情' title-color="#000" :background="bgc" :border-bottom="false" id="navbar">
|
|
</u-navbar>
|
|
<view class="cont" v-html="list.content">
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
bgc: {
|
|
backgroundColor: " #fff",
|
|
},
|
|
articleId:'',
|
|
list:{}
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.articleId = option.articleId
|
|
this.getlist()
|
|
},
|
|
methods: {
|
|
getlist(){
|
|
this.$u.get(`/app/article/${this.articleId}`).then(res => {
|
|
if(res.code == 200){
|
|
this.list = res.data
|
|
}
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less">
|
|
.cont{
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: 100vh;
|
|
overflow: scroll;
|
|
}
|
|
|
|
</style> |