Task:送礼相关接口
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user