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