<template>
	<view :style="'background-color: '+theme.bg+';color: '+theme.text" style="height: 100%;">
		<myNav :title="i18n.ico.three6"></myNav>
		<view class="padding-30" v-html="data.white_paper">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				theme: '',
				data:{}
			}
		},
		computed: {
			i18n() {
				return this.$t('message');
			}
		},
		onLoad(e) {
			this.ico = e.ico
			this.getDetails()
		},
		onShow() {
			if (uni.getStorageSync("theme") == "dark") {
				this.theme = this.$store.state.darkTheme
			} else {
				this.theme = this.$store.state.lightTheme
			}
		},
		methods: {
			// 获取私募内容
			getDetails() {
				this.post('/index/ico_content', {
					id: this.ico
				}).then(res => {
					console.log('私募内容', res)
					if (res.code == 1) {
						this.data = res.data
					}
				})
			},
		}
	}
</script>

<style lang="scss">
</style>
