service-charge.vue 724 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <text class="service-charge"
  3. v-show="give_away_handling_fee_ratio">({{title}}{{ give_away_handling_fee_ratio }}%)</text>
  4. </template>
  5. <script>
  6. import {
  7. pointconfigInfo
  8. } from "@/api/personal-center.js"
  9. export default {
  10. name: "service-charge",
  11. props: {
  12. title: String
  13. },
  14. data() {
  15. return {
  16. give_away_handling_fee_ratio: 0
  17. };
  18. },
  19. created() {
  20. this.getPointconfigInfo()
  21. },
  22. methods: {
  23. // 查询手续费比例
  24. getPointconfigInfo() {
  25. this.$http.get(pointconfigInfo).then(res => {
  26. this.give_away_handling_fee_ratio = res.data.give_away_handling_fee_ratio
  27. })
  28. },
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .service-charge {
  34. font-weight: 400;
  35. }
  36. </style>