member.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div
  3. v-if="toolsPackage.length > 0"
  4. key="toolsPackage"
  5. class="courseModel"
  6. style="margin-top: 12px;"
  7. >
  8. <!-- <template>
  9. <div class="yunTrain">
  10. <img :src="trainBg" />
  11. <div class="toolText">
  12. <p class="toolTitle">
  13. 学练宝标准版
  14. <span @click="videoStatus = true"
  15. >查看视频<i class="icon_video"
  16. /></span>
  17. </p>
  18. <p class="toolDate">
  19. 购买后根据教学情况激活使用,详细请咨询机构老师
  20. </p>
  21. </div>
  22. </div>
  23. </template> -->
  24. <slot />
  25. </div>
  26. </template>
  27. <script>
  28. import videoTcplayer from "@/components/video-tcplayer";
  29. export default {
  30. name: "MemberModal",
  31. components: { videoTcplayer },
  32. filters: {
  33. unitFormat(val) {
  34. let template = {
  35. YEAR: "年",
  36. MONTH: "月",
  37. QUARTERLY: "季度",
  38. YEAR_HALF: "半年"
  39. };
  40. return template[val];
  41. }
  42. },
  43. props: {
  44. courseViewType: [Number, String],
  45. toolsPackage: Array,
  46. trainSmallBg: String,
  47. isGiveAccessories: Boolean,
  48. accessStatus: Boolean,
  49. isShowSalePrice: Boolean
  50. },
  51. data() {
  52. return {
  53. trainBg: require("../../../assets/images/musicGroup/yunTrain_bg.png"),
  54. videoStatus: false
  55. };
  56. },
  57. watch: {
  58. toolsPackage: {
  59. handler(newValue) {
  60. console.log(newValue, "heandler");
  61. },
  62. immediate: true,
  63. deep: true
  64. }
  65. },
  66. methods: {
  67. onTrainChange(item) {
  68. // 云练习点击时
  69. this.$emit("onCheckItem", item, "train");
  70. },
  71. onQuestions(item) {
  72. this.$emit("onQuestions", item);
  73. }
  74. }
  75. };
  76. </script>
  77. <style lang="less" scoped>
  78. .giveTitle {
  79. margin-top: 16px;
  80. padding-top: 8px;
  81. color: #1a1a1a;
  82. font-size: 14;
  83. padding-left: 24;
  84. }
  85. .small_point {
  86. position: absolute;
  87. left: 8px;
  88. top: 7px;
  89. width: 6px;
  90. height: 6px;
  91. background: #01c1b5;
  92. border-radius: 50%;
  93. }
  94. @import url("./signUpPayment.less");
  95. </style>