| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <u-popup :show="show" round="20rpx" mode="center" bgColor="transparent" zIndex="10076" @close="$emit('close')">
- <view class="red-card-popup">
- <image class="red-card-image"
- src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/red_card.png" />
- <view class="red-card-content">
- <view class="red-card-message">{{ card && card.msg }}</view>
- <view class="red-card-tip">课程惊喜积分</view>
- <view class="red-card-confirm-button" @click="$emit('close')">确认</view>
- </view>
- </view>
- </u-popup>
- </template>
- <script>
- export default {
- name: 'LiveRedCardPanel',
- props: {
- show: { type: Boolean, default: false },
- card: { type: Object, default: null }
- }
- }
- </script>
- <style scoped lang="scss">
- .red-card-popup {
- width: 550rpx;
- height: 636rpx;
- position: relative;
- .red-card-image {
- position: absolute;
- width: 100%;
- height: 100%;
- }
- .red-card-content {
- position: relative;
- z-index: 5;
- display: flex;
- flex-direction: column;
- align-items: center;
- .red-card-message {
- font-size: 36rpx;
- color: #ff3a1e;
- margin: 180rpx 0 90rpx;
- }
- .red-card-tip {
- font-size: 28rpx;
- color: #ffecc3;
- margin: 80rpx 0 40rpx;
- }
- .red-card-confirm-button {
- width: 392rpx;
- height: 96rpx;
- line-height: 96rpx;
- background: linear-gradient(180deg, #fff4d5 0%, #ffe5b1 100%);
- border-radius: 48rpx;
- font-weight: 600;
- font-size: 36rpx;
- color: #c32008;
- text-align: center;
- }
- }
- }
- </style>
|