普兆健康管家前端代码仓库
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.

87 lines
1.6 KiB

2 months ago
2 months ago
  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. this.content = this.configList.tips_cross_border
  30. this.$refs.popup.open()
  31. },
  32. onConfirm() {
  33. this.$refs.popup.close()
  34. this.$emit('confirm')
  35. },
  36. },
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .popup__view {
  41. width: 550rpx;
  42. display: flex;
  43. flex-direction: column;
  44. padding: 32rpx;
  45. box-sizing: border-box;
  46. background-image: linear-gradient(#F2EDFF, #FCFEFE);
  47. border-radius: 64rpx;
  48. }
  49. .header {
  50. text-align: center;
  51. font-family: PingFang SC;
  52. font-weight: 500;
  53. font-size: 40rpx;
  54. line-height: 1.4;
  55. color: #181818;
  56. }
  57. .content {
  58. padding: 40rpx 0;
  59. text-align: left;
  60. font-family: PingFang SC;
  61. font-weight: 400;
  62. font-size: 28rpx;
  63. line-height: 1.4;
  64. color: #5B5B5B;
  65. }
  66. .footer {
  67. .btn {
  68. width: 100%;
  69. padding: 16rpx 0;
  70. font-family: PingFang SC;
  71. font-weight: 500;
  72. font-size: 36rpx;
  73. line-height: 1.4;
  74. color: #FFFFFF;
  75. background-image: linear-gradient(to right, #4B348F, #845CFA);
  76. border-radius: 41rpx;
  77. }
  78. }
  79. </style>