smartswrtch-app/pages/daili/bangzhuxq.vue

48 lines
819 B
Vue
Raw Permalink Normal View History

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