chuangte_bike_newxcx/page_fenbao/bangzhu/xq.vue

44 lines
785 B
Vue

<template>
<view class="page">
<u-navbar title=" " :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
title-size='36' height='36' id="navbar">
</u-navbar>
<view class="" style="padding: 20rpx;" v-html="content">
</view>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
content:''
}
},
onLoad(option) {
this.getxq(option.id)
},
methods: {
getxq(id){
this.$u.get(`/app/article/detail?id=${id}`).then(res =>{
if(res.code == 200){
this.content = res.data.content
}
})
}
}
}
</script>
<style lang="scss">
page {
background: #fff;
}
</style>