BaseInfo.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div>
  3. <el-descriptions class="margin-top" title="基础信息" :column="1" :size="size" border>
  4. <el-descriptions-item>
  5. <template slot="label">联盟卡名称</template>
  6. {{ card.name }}
  7. </el-descriptions-item>
  8. <el-descriptions-item>
  9. <template slot="label">联盟卡封面</template>
  10. <el-image :preview-src-list="[card.coverUrl]" v-if="card.coverUrl" :src="card.coverUrl" fit="fill" style="width: 127px; height: 73px"></el-image>
  11. <span v-else>--</span>
  12. </el-descriptions-item>
  13. </el-descriptions>
  14. <el-descriptions class="margin-top" title="联盟卡信息" :column="2" :size="size" border>
  15. <el-descriptions-item>
  16. <template slot="label">联盟卡ID</template>
  17. {{ card.id }}
  18. </el-descriptions-item>
  19. <el-descriptions-item>
  20. <template slot="label">到期时间</template>
  21. {{ card.expirationTime }}
  22. </el-descriptions-item>
  23. <el-descriptions-item>
  24. <template slot="label">发售价格</template>
  25. <span style="color: #f40">¥{{ card.purchasePrice }}</span>
  26. </el-descriptions-item>
  27. <el-descriptions-item>
  28. <template slot="label">抵扣价格</template>
  29. <span style="color: #f40">¥{{ card.deductionPrice }}</span>
  30. </el-descriptions-item>
  31. <el-descriptions-item>
  32. <template slot="label">团长佣金</template>
  33. <span style="color: #f40">¥{{ card.headOfCommission || '--' }}</span>
  34. </el-descriptions-item>
  35. <el-descriptions-item>
  36. <template slot="label">合伙人佣金</template>
  37. <span style="color: #f40">¥{{ card.partnerCommission || '--' }}</span>
  38. </el-descriptions-item>
  39. <el-descriptions-item>
  40. <template slot="label">发行张数</template>
  41. <el-tag>{{ card.receiptCount }}张</el-tag>
  42. </el-descriptions-item>
  43. <el-descriptions-item>
  44. <template slot="label">状态</template>
  45. <el-tag type="info" v-if="card.state === 1" size="mini">审核中</el-tag>
  46. <el-tag type="success" v-if="card.state === 2" size="mini">通过</el-tag>
  47. <el-tag type="danger" v-if="card.state === 3" size="mini">不通过</el-tag>
  48. </el-descriptions-item>
  49. <el-descriptions-item>
  50. <template slot="label">是否发行</template>
  51. <el-tag type="success" v-if="card.isIssuance === 1" size="mini">发行</el-tag>
  52. <el-tag type="danger" v-if="card.isIssuance === 0" size="mini">停售</el-tag>
  53. </el-descriptions-item>
  54. <el-descriptions-item>
  55. <template slot="label">创建时间</template>
  56. {{ card.createTime }}
  57. </el-descriptions-item>
  58. </el-descriptions>
  59. <el-descriptions class="margin-top" title="权益信息" :column="1" :size="size" border>
  60. <el-descriptions-item>
  61. <template slot="label">权益信息</template>
  62. {{ card.statement }}
  63. </el-descriptions-item>
  64. <el-descriptions-item>
  65. <template slot="label">使用说明</template>
  66. {{ card.useInstructions }}
  67. </el-descriptions-item>
  68. </el-descriptions>
  69. </div>
  70. </template>
  71. <script>
  72. export default {
  73. props: {
  74. card: { type: Object, required: true }
  75. },
  76. data() {
  77. return {
  78. size: "mini"
  79. }
  80. },
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. ::v-deep .el-descriptions-item__label {
  85. width: 168px;
  86. }
  87. .margin-top {
  88. margin-top: 24px;
  89. }
  90. </style>