<template>
	<view :style="[mainStyle]">
		<view class="content"><rich-text :nodes="content"></rich-text></view>
	</view>
</template>

<script>
const app = getApp();
const req = require('../../utils/request.js');
const api = require('../../utils/api.js');
const utils = require('../../utils/util.js');
import mpHtml from '../../components/mp-html/components/mp-html/mp-html';
export default {
	components: {
		mpHtml
	},
	data() {
		return {
			mainStyle: app.globalData.mainStyle,
			content: ''
		};
	},
	components: {},
	props: {},
	onLoad: function(options) {
		this.getDetail();
	},
	onShow() {},
	methods: {
		jumpUrl(url) {
			app.globalData.redirectTab(url);
		},

		getDetail() {
			req.getRequest(
				'/api/category/detail',
				{
					code: 'jyzn'
				},
				data => {
					this.content = data;
				},
				true
			);
		}
	},
	mounted() {}
};
</script>

<style>
@import './index.css';
</style>
