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