<template>
	<text class="service-charge"
		v-show="give_away_handling_fee_ratio">（{{title}}{{ give_away_handling_fee_ratio }}%）</text>
</template>

<script>
	import {
		pointconfigInfo
	} from "@/api/personal-center.js"
	export default {
		name: "service-charge",
		props: {
			title: String
		},
		data() {
			return {
				give_away_handling_fee_ratio: 0
			};
		},
		created() {
			this.getPointconfigInfo()
		},
		methods: {
			// 查询手续费比例
			getPointconfigInfo() {
				this.$http.get(pointconfigInfo).then(res => {
					this.give_away_handling_fee_ratio = res.data.give_away_handling_fee_ratio
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.service-charge {
		font-weight: 400;
	}
</style>
