roamfuding-xcx/page_user/caozuo/wentixq.vue

47 lines
986 B
Vue
Raw Permalink Normal View History

2025-11-08 11:21:57 +08:00
<template>
<view class="page">
<u-navbar title="详情" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
title-size='36' height='46' id="navbar">
</u-navbar>
<u-parse v-if="objxq.content" :html="objxq.content" style="width: 660rpx;margin: auto;padding: 20rpx;background-color: #fff;border-radius: 14rpx;"></u-parse>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
id:'',
objxq:{}
}
},
onLoad(option) {
this.id = option.id
this.getxq()
},
methods: {
// 获取问题详情
getxq(){
this.$u.get(`/app/article/detail/${this.id}`).then(res =>{
if(res.code == 200){
this.objxq = res.data
}
})
},
}
}
</script>
<style lang="scss">
::v-deep .u-icon__icon,
::v-deep .u-title{
padding-bottom: 22rpx !important;
}
page {
background: #fff;
}
</style>