<template>
  <page-meta :page-font-size="fontValue+'px'" :root-font-size="fontValue+'px'"></page-meta>
  <view class="page">
    <rich-text :nodes="detailData.articleContent || ''"></rich-text>
  </view>
</template>

<script>
export default {
	data() {
		return {
			fontValue: uni.getStorageSync('fontSize') || 16,
			detailData: {}
		}
	},
	onLoad(options) {
		this.detailData = JSON.parse(options.params)
	}
}
</script>

<style lang="scss" scoped>
.page {
  background: #f9fbff;
  padding: 16px;
  min-height: 95vh;
  color: #0f274b;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

rich-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

rich-text strong,
rich-text b {
  font-weight: bold;
  color: #0f274b;
}

rich-text p {
  margin: 0 0 12px;
}

rich-text img {
  max-width: 100%;
  display: block;
  margin: 12px auto;
  border-radius: 4px;
}
</style>
