Sprinkler-app/page_user/yinsixq.vue

68 lines
1.2 KiB
Vue
Raw Normal View History

2024-10-09 16:52:44 +08:00
<template>
<view>
<u-navbar :is-back="true" :title='tit' title-color="#000" :border-bottom="false" :background="bgc"
id="navbar">
</u-navbar>
2025-04-17 10:20:41 +08:00
<view class="" v-html="cont"></view>
2024-10-09 16:52:44 +08:00
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
2024-10-22 18:01:20 +08:00
tit:'',
id:'',
cont:''
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-09 16:52:44 +08:00
onLoad(option) {
this.tit = option.tit
2024-10-22 18:01:20 +08:00
this.id = option.id
this.getxq()
2024-10-09 16:52:44 +08:00
},
methods:{
2024-11-02 17:59:26 +08:00
// 请求文章详情
2024-10-22 18:01:20 +08:00
getxq() {
this.$u.get(`/app/article/${this.id}`).then((res) => {
if (res.code == 200) {
this.cont = res.data.content
}
})
},
2024-10-09 16:52:44 +08:00
}
}
</script>
2025-04-17 10:20:41 +08:00
2024-10-09 16:52:44 +08:00
<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>