LiveRedCardPanel.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <u-popup :show="show" round="20rpx" mode="center" bgColor="transparent" zIndex="10076" @close="$emit('close')">
  3. <view class="red-card-popup">
  4. <image class="red-card-image"
  5. src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/red_card.png" />
  6. <view class="red-card-content">
  7. <view class="red-card-message">{{ card && card.msg }}</view>
  8. <view class="red-card-tip">课程惊喜积分</view>
  9. <view class="red-card-confirm-button" @click="$emit('close')">确认</view>
  10. </view>
  11. </view>
  12. </u-popup>
  13. </template>
  14. <script>
  15. export default {
  16. name: 'LiveRedCardPanel',
  17. props: {
  18. show: { type: Boolean, default: false },
  19. card: { type: Object, default: null }
  20. }
  21. }
  22. </script>
  23. <style scoped lang="scss">
  24. .red-card-popup {
  25. width: 550rpx;
  26. height: 636rpx;
  27. position: relative;
  28. .red-card-image {
  29. position: absolute;
  30. width: 100%;
  31. height: 100%;
  32. }
  33. .red-card-content {
  34. position: relative;
  35. z-index: 5;
  36. display: flex;
  37. flex-direction: column;
  38. align-items: center;
  39. .red-card-message {
  40. font-size: 36rpx;
  41. color: #ff3a1e;
  42. margin: 180rpx 0 90rpx;
  43. }
  44. .red-card-tip {
  45. font-size: 28rpx;
  46. color: #ffecc3;
  47. margin: 80rpx 0 40rpx;
  48. }
  49. .red-card-confirm-button {
  50. width: 392rpx;
  51. height: 96rpx;
  52. line-height: 96rpx;
  53. background: linear-gradient(180deg, #fff4d5 0%, #ffe5b1 100%);
  54. border-radius: 48rpx;
  55. font-weight: 600;
  56. font-size: 36rpx;
  57. color: #c32008;
  58. text-align: center;
  59. }
  60. }
  61. }
  62. </style>