Files
xdd-uniapp-new/pkg_user/views/gift/components/giftTips.vue
T

71 lines
1.1 KiB
Vue

<template>
<view>
<!-- 弹窗组件 -->
<u-popup
:show="showTips"
mode="center"
closeable
round="16rpx"
@close="showTips = false"
>
<view class="popup-content">
<!-- 标题 -->
<view class="title">赠礼须知</view>
<!-- 富文本内容 -->
<view class="text-wrap">
<u-parse :content="richText" />
</view>
</view>
</u-popup>
</view>
</template>
<script>
export default {
props: {
// 接收传递的参数
richText: {
type: String,
default: ''
}
},
data() {
return {
showTips: false,
}
}
}
</script>
<style lang="scss" scoped>
.text-wrap{
height: 800rpx;
overflow: auto;
}
.popup-content {
width: 600rpx;
padding:0 40rpx 40rpx 40rpx;
box-sizing: border-box;
.title {
padding-top: 40rpx;
padding-bottom: 20rpx;
font-size: 36rpx;
font-weight: bold;
text-align: center;
top: 0;
background: #fff;
background-color: #fff;
z-index: 11;
}
.close-btn {
margin-top: 40rpx;
}
/deep/ .u-parse {
max-height: 800rpx;
overflow-y: auto;
}
}
</style>