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.

143 lines
2.6 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
9 months ago
5 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. <!-- 弹窗组件 -->
  2. <template>
  3. <view v-if="show" class="popup-windown bx popup-bx">
  4. <div class="popup-content">
  5. <uni-icons @click="close" class="popup-close" type="closeempty" size="20" color="#000"></uni-icons>
  6. <view class="popup-main">
  7. <div class="bg">
  8. <image src="../../static/popUpWindow/bg.png" mode="widthFix"></image>
  9. </div>
  10. <view class="popup-desc">
  11. <!-- {{ tip.details }} -->
  12. <u-parse :content="tip.details"></u-parse>
  13. </view>
  14. <view class="popup-btn">
  15. <view @click="close" class="">ok</view>
  16. </view>
  17. </view>
  18. </div>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. tip: {}, //弹窗提示内容
  26. type: {
  27. en: 'keyEnglish',
  28. es: "keySpanish",
  29. zh: "keyChinese",
  30. ar : "keyA",
  31. fr : "keyF",
  32. ru : "keyE"
  33. },
  34. }
  35. },
  36. created() {
  37. this.getIndexTip()
  38. },
  39. props: {
  40. show: {
  41. type: Boolean,
  42. default: false
  43. }
  44. },
  45. methods: {
  46. //关闭
  47. close() {
  48. uni.setStorageSync('clickPopUp', 'true'); //用户是否点击过关闭弹框
  49. this.$emit('close')
  50. },
  51. //获取首页提示
  52. getIndexTip() {
  53. // this.request('getIndexTip').then(res => {
  54. // if (res.code == 200) {
  55. // this.tip = res.result
  56. // }
  57. // })
  58. this.request('getPromptNotice', {}, {
  59. us : this.$i18n.locale
  60. }).then(res => {
  61. if (res.code == 200) {
  62. this.tip = res.result
  63. }
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .popup-windown {
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. position: fixed;
  75. height: 100vh;
  76. width: 750rpx;
  77. background: rgba(0, 0, 0, 0.3);
  78. left: 0;
  79. top: 0;
  80. z-index: 1000;
  81. margin: 0rpx auto;
  82. .popup-content {
  83. position: relative;
  84. width: 90%;
  85. margin: 0rpx auto;
  86. background: white;
  87. border-radius: 15rpx;
  88. .popup-close {
  89. position: absolute;
  90. right: -20rpx;
  91. top: -20rpx;
  92. z-index: 200;
  93. background: white;
  94. border-radius: 50%;
  95. }
  96. .popup-main {
  97. border-radius: 15rpx;
  98. overflow: hidden;
  99. .bg {
  100. height: 200rpx;
  101. overflow: hidden;
  102. image {
  103. width: 100%;
  104. }
  105. }
  106. .popup-desc {
  107. box-sizing: border-box;
  108. padding: 20rpx;
  109. }
  110. .popup-btn {
  111. display: flex;
  112. align-items: center;
  113. justify-content: center;
  114. height: 140rpx;
  115. box-shadow: 0rpx 10rpx 20rpx rgba(0, 0, 0, .1);
  116. view {
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. width: 96%;
  121. margin: 0rpx auto;
  122. height: 80rpx;
  123. background: $uni-bg-color-app;
  124. border-radius: 40rpx;
  125. color: $uni-bg-color;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. </style>