<template>
	<view style="padding: 27rpx; 30rpx">
		<rich-text :nodes="companyInfo.com_buy_agreement"></rich-text>
	</view>
</template>

<script>
	import {getCompanyInfo} from '@/api/public.js'
	export default {
		data() {
			return {
				companyInfo: {
					com_service_phone: '',
					com_group_qrcode: '',
					com_slogan: '',
					com_logo: '',
					com_work_time: '',
					com_service_qrcode: '',
					com_buy_agreement: ''
				}
			};
		},
		onLoad() {
			getCompanyInfo().then(res =>{
				res.data.forEach(item => {
					console.log(item);
					this.companyInfo[item.menuName] = item.value
				})
			})
		},
		methods: {
			onCall() {
				uni.makePhoneCall({
					phoneNumber: this.companyInfo.com_service_phone
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
