Sprinkler-app/page_user/kefuxq.vue

70 lines
1.2 KiB
Vue
Raw Permalink Normal View History

2024-10-09 16:52:44 +08:00
<template>
<view>
2024-10-21 18:03:03 +08:00
<u-navbar :is-back="true" :title='obj.title' title-color="#000" :border-bottom="false" :background="bgc"
2024-10-09 16:52:44 +08:00
id="navbar">
</u-navbar>
2024-10-21 18:03:03 +08:00
<view class="" v-html="obj.content">
</view>
2024-10-09 16:52:44 +08:00
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
active:1,
2024-10-21 18:03:03 +08:00
flag:false,
obj:{}
2024-10-09 16:52:44 +08:00
}
},
2024-10-18 17:59:38 +08:00
// 分享到好友(会话)
onShareAppMessage: function() {
return {
title: '绿小能',
path: '/pages/index/index'
}
},
// 分享到朋友圈
onShareTimeline: function() {
return {
title: '绿小能',
query: '',
path: '/pages/index/index'
}
},
2024-10-21 18:03:03 +08:00
onLoad(option) {
this.classifyId = option.classifyId
this.$u.get(`app/article/${this.classifyId}`).then(res => {
if(res.code == 200){
this.obj = res.data
}
})
2024-10-09 16:52:44 +08:00
},
methods:{
}
}
</script>
<style lang="less">
/deep/ .u-title{
margin-bottom: 22rpx;
}
/deep/ .uicon-nav-back{
margin-bottom: 22rpx;
}
page{
width: 100%;
padding: 20rpx 30rpx;
box-sizing: border-box;
background-color: #fff;
}
</style>