OrderFeesInfo.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="info-card">
  3. <view class="card-body">
  4. <view class="info-row" v-for="(item,index) in orderDetail" :key="index">
  5. <text class="info-label">{{ item.feeName }}:</text>
  6. <text class="info-value price">¥{{item.rateAmount}}</text>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script setup>
  12. import {
  13. ref,
  14. computed,
  15. defineProps
  16. } from 'vue'
  17. import { onShow } from '@dcloudio/uni-app'
  18. const props = defineProps({
  19. isGrab: {
  20. type: Boolean,
  21. default: false
  22. },
  23. orderDetail: {
  24. type: Object,
  25. default: () => ([])
  26. }
  27. })
  28. // 计算属性 - 佣金单位
  29. const commissionUnit = ref('元')
  30. const percent = ref('5')
  31. // formData.commissionType === '0' ? '%' : '元'
  32. const commission = computed(() => {
  33. return ''
  34. })
  35. // onShow(()=>{
  36. // platformPercent()
  37. // })
  38. const platformPercent = ()=>{
  39. getPlatformPerentApi().then(res=>{
  40. if(res.code == 200){
  41. percent.value = res.data.platformShopCommissionPercent
  42. }
  43. })
  44. }
  45. </script>
  46. <style scoped lang="scss">
  47. .info-card {
  48. background-color: #ffffff;
  49. border-radius: 16rpx;
  50. overflow: hidden;
  51. padding: 20rpx;
  52. margin-bottom: 20rpx;
  53. }
  54. .info-row {
  55. height: 44rpx;
  56. line-height: 44rpx;
  57. display: flex;
  58. justify-content: space-between;
  59. align-items: center;
  60. margin-top: 16rpx;
  61. &:last-child {
  62. border-bottom: none;
  63. }
  64. .info-label {
  65. font-size: 28rpx;
  66. color: #666666;
  67. }
  68. .info-value {
  69. font-size: 28rpx;
  70. color: #333;
  71. &.price {
  72. color: #FD5F3C;
  73. font-weight: bold;
  74. }
  75. }
  76. }
  77. </style>