<template>
	<view class="configPopup">
		<uv-popup ref="popup" :round="30" :customStyle="{height: '50vh'}">
			<view class="content">
				<uv-parse :content="content"></uv-parse>
			</view>
		</uv-popup>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	export default {
		name: 'configPoup',
		data() {
			return {
				content : ''
			}
		},
		onShow(){
		}, 
		methods: {
			//打开配置信息菜单
			open(key){
				this.$api('queryConfig', {
					paramCode : 'config_vip_service',
				})
				.then(res => {
					// this.content = this.configList[key]
					this.content = res.result.paramValueText
					this.$refs.popup.open('bottom');
				})
				this.$store.commit('initConfig')
			}
		},
		
		computed : {
			...mapState(['configList'])
		}
	}
</script>

<style lang="scss" scoped>
	.configPopup {
		.content{
			padding: 30rpx 20rpx;
			overflow: scroll;
			height: 100%;
			box-sizing: border-box;
		}
	}
</style>