普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.5 KiB

  1. <template>
  2. <view>
  3. <uv-popup ref="popup" mode="center" bgColor="none" >
  4. <view class="popup__view">
  5. <view class="header">温馨提示</view>
  6. <view class="content">
  7. <uv-parse :content="content"></uv-parse>
  8. </view>
  9. <view class="footer">
  10. <button class="flex btn" @click="onConfirm">我知道了</button>
  11. </view>
  12. </view>
  13. </uv-popup>
  14. </view>
  15. </template>
  16. <script>
  17. import { mapState } from 'vuex'
  18. export default {
  19. data() {
  20. return {
  21. content : '',
  22. }
  23. },
  24. computed : {
  25. ...mapState(['configList'])
  26. },
  27. methods: {
  28. open() {
  29. // todo
  30. // this.content = this.configList[key]
  31. this.content = `
  32. <p>
  33. 亲爱的用户欢迎选购我们的健康营养素包<br/>
  34. 在购买前请仔细阅读以下内容我们所提供的营养素包均严格遵循国际健康标准与规范进行研发和生产旨在根据您的问卷调查或个人体检情况精准匹配适合您的营养补充方案<br/>
  35. 在下单购买时请确保您所提供的身体信息真实准确以便我们为您推荐最合适的营养素组合同时由于海外运输及海关政策可能会影响包裹的送达时间我们会在发货后第一时间为您更新物流信息预计送达时间仅供参考请耐心等待<br/>
  36. 若您在购买过程中有任何疑问或是收到产品后遇到任何问题我们的客服团队将竭诚为您提供 24 小时服务祝您健康常伴
  37. </p>
  38. `
  39. this.$refs.popup.open()
  40. },
  41. onConfirm() {
  42. this.$refs.popup.close()
  43. this.$emit('confirm')
  44. },
  45. },
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .popup__view {
  50. width: 550rpx;
  51. display: flex;
  52. flex-direction: column;
  53. padding: 32rpx;
  54. box-sizing: border-box;
  55. background-image: linear-gradient(#F2EDFF, #FCFEFE);
  56. border-radius: 64rpx;
  57. }
  58. .header {
  59. text-align: center;
  60. font-family: PingFang SC;
  61. font-weight: 500;
  62. font-size: 40rpx;
  63. line-height: 1.4;
  64. color: #181818;
  65. }
  66. .content {
  67. padding: 40rpx 0;
  68. text-align: left;
  69. font-family: PingFang SC;
  70. font-weight: 400;
  71. font-size: 28rpx;
  72. line-height: 1.4;
  73. color: #5B5B5B;
  74. }
  75. .footer {
  76. .btn {
  77. width: 100%;
  78. padding: 16rpx 0;
  79. font-family: PingFang SC;
  80. font-weight: 500;
  81. font-size: 36rpx;
  82. line-height: 1.4;
  83. color: #FFFFFF;
  84. background-image: linear-gradient(to right, #4B348F, #845CFA);
  85. border-radius: 41rpx;
  86. }
  87. }
  88. </style>