<template>
	<view :style="'background-color: '+theme.bg+';color: '+theme.text">
		<myNav :title="i18n.mine.bangzhu.details"></myNav>
		<view class="listBox" :style="'background-color: '+theme.fu_bg+';color: '+theme.fu_text">
			<p class="font-38 bold-font weight-bold">{{info.title}}</p>
			<p class="font-24 nummedium-font margin-t-20">{{info.createtime}}</p>
		</view>
		<view class="width-100b padding-30" v-html="info.content">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{},
				theme: '',
			}
		},
		computed: {
			i18n() {
				return this.$t('message');
			},
		},
		onLoad(e) {
			this.help_con(e.id)
		},
		onShow() {
			if (uni.getStorageSync("theme") == "dark") {
				this.theme = this.$store.state.darkTheme
			} else {
				this.theme = this.$store.state.lightTheme
			}
		},
		methods: {
			help_con(id){
				this.post('/my/help_con',{id:id}).then(res => {
					console.log('帮助详情',res)
					if(res.code == 1){
						this.info = res.data
					}
				})
			}
		}
	}
</script>

<style>
	.listBox{
		width: 100%;
		/* background: #FFFFFF; */
		padding: 20rpx 30rpx;
		margin: 0 auto;
	}
</style>
