<template>
	<view >
		<view :style="'background-color: '+theme.bg" style="padding: 10rpx 0;">
			<myNav :title="titleFilter"></myNav>
			<view class="width-100b padding-30" v-html="content">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'tuikuan',
				content:'',
				theme:'',
			}
		},
		computed: {
			i18n() {
				return this.$t('message');
			},
			titleFilter(){
				if(this.title=='tuikuan'){
					return this.i18n.recharge.text18
				}
			}
		},
		onLoad(option) {
			this.title = option.title
			this.getInfo()
		},
		onShow() {
			if (uni.getStorageSync("theme") == "dark") {
				this.theme = this.$store.state.darkTheme
			}else{
				this.theme = this.$store.state.lightTheme
			}
		},
		methods: {
			getInfo(){
				this.post('/publics/new_common_data').then(res => {
					console.log(res)
					if(res.code == 1){
						if(this.title == 'tuikuan'){
							this.content = res.data.refund_text
						}
					}
				})
			}
		}
	}
</script>

<style>
</style>
