packagesDetail.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!-- 套餐详情 -->
  2. <template>
  3. <div v-if="info" class="packagesDetail mt-5">
  4. <div v-if="info.headers" class="detailItem headers">
  5. <template
  6. v-for="item in info.headers"
  7. :key="item.key"
  8. >
  9. <div v-if="item.key == 'VIP套餐'">{{ item.label }}</div>
  10. <div v-else>{{ item.label }}</div>
  11. </template>
  12. </div>
  13. <template v-if="info.contrastList">
  14. <div
  15. v-for="item in info.contrastList"
  16. :key="item.key"
  17. class="detailItem"
  18. >
  19. <div style="font-size: 14px; font-weight: bold;">{{ item.label }}</div>
  20. <div style="font-size: 14px; font-weight: normal;">
  21. <span v-if="info?.returnData?.ordinary[item.key] === true"><v-icon size="24" icon="mdi-check"></v-icon></span>
  22. <span v-else-if="info?.returnData?.ordinary[item.key] === false">x</span>
  23. <span v-else>{{ info?.returnData?.ordinary[item.key] }}</span>
  24. </div>
  25. <div style="font-size: 14px; font-weight: bold; color: #d8a41a;">
  26. <span v-if="info?.returnData?.vip[item.key] === true"><v-icon size="24" icon="mdi-check"></v-icon></span>
  27. <span v-else-if="info?.returnData?.vip[item.key] === false">x</span>
  28. <span v-else>{{ info?.returnData?.vip[item.key] }}</span>
  29. </div>
  30. </div>
  31. </template>
  32. </div>
  33. </template>
  34. <script setup>
  35. defineOptions({name: 'personal-purchasePackage-packagesDetail'})
  36. defineProps({
  37. info: {
  38. type: Object,
  39. default: () => {}
  40. }
  41. })
  42. </script>
  43. <style lang="scss" scoped>
  44. .packagesDetail { // 套餐详情
  45. width: 710px;
  46. margin: 0 auto;
  47. border: 1px solid #f3f3f3;
  48. // border-radius: 12px;
  49. background-color: var(--default-bgc);
  50. background-color: #f2f4f742;
  51. .detailItem {
  52. display: flex;
  53. div {
  54. height: 46px;
  55. line-height: 46px;
  56. width: 33%;
  57. text-align: center;
  58. font-size: 14px;
  59. }
  60. }
  61. .headers {
  62. background-color: var(--default-bgc);
  63. div {
  64. color: #666 !important;
  65. font-size: 16px !important;
  66. font-weight: bold !important;
  67. text-align: center;
  68. }
  69. }
  70. }
  71. </style>