<template>
|
|
<view>
|
|
<uv-popup ref="popup" mode="center" bgColor="none" >
|
|
<view class="popup__view">
|
|
<view class="header">温馨提示</view>
|
|
<view class="content">
|
|
<uv-parse :content="content"></uv-parse>
|
|
</view>
|
|
<view class="footer">
|
|
<button class="flex btn" @click="onConfirm">我知道了</button>
|
|
</view>
|
|
</view>
|
|
</uv-popup>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
content : '',
|
|
}
|
|
},
|
|
computed : {
|
|
...mapState(['configList'])
|
|
},
|
|
methods: {
|
|
open() {
|
|
// todo
|
|
// this.content = this.configList[key]
|
|
|
|
this.content = `
|
|
<p>
|
|
亲爱的用户,欢迎选购我们的健康营养素包。<br/>
|
|
在购买前请仔细阅读以下内容:我们所提供的营养素包,均严格遵循国际健康标准与规范进行研发和生产,旨在根据您的问卷调查或个人体检情况,精准匹配适合您的营养补充方案。<br/>
|
|
在下单购买时,请确保您所提供的身体信息真实准确,以便我们为您推荐最合适的营养素组合。同时,由于海外运输及海关政策可能会影响包裹的送达时间,我们会在发货后第一时间为您更新物流信息,预计送达时间仅供参考,请耐心等待。<br/>
|
|
若您在购买过程中有任何疑问,或是收到产品后遇到任何问题,我们的客服团队将竭诚为您提供 24 小时服务,祝您健康常伴!
|
|
</p>
|
|
`
|
|
|
|
this.$refs.popup.open()
|
|
},
|
|
onConfirm() {
|
|
this.$refs.popup.close()
|
|
|
|
this.$emit('confirm')
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.popup__view {
|
|
width: 550rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 32rpx;
|
|
box-sizing: border-box;
|
|
background-image: linear-gradient(#F2EDFF, #FCFEFE);
|
|
border-radius: 64rpx;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
font-family: PingFang SC;
|
|
font-weight: 500;
|
|
font-size: 40rpx;
|
|
line-height: 1.4;
|
|
color: #181818;
|
|
}
|
|
|
|
.content {
|
|
padding: 40rpx 0;
|
|
text-align: left;
|
|
font-family: PingFang SC;
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
line-height: 1.4;
|
|
color: #5B5B5B;
|
|
}
|
|
|
|
.footer {
|
|
.btn {
|
|
width: 100%;
|
|
padding: 16rpx 0;
|
|
font-family: PingFang SC;
|
|
font-weight: 500;
|
|
font-size: 36rpx;
|
|
line-height: 1.4;
|
|
color: #FFFFFF;
|
|
background-image: linear-gradient(to right, #4B348F, #845CFA);
|
|
border-radius: 41rpx;
|
|
}
|
|
}
|
|
</style>
|