homeHint.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <view>
  3. <u-overlay :show="ishow">
  4. <view class="dialog">
  5. <view class="dialog-top">
  6. <view class="sheild">
  7. <image class="sheild-img" src="../static/images/home/sheild.png" mode="widthFix"></image>
  8. </view>
  9. <view class="star">
  10. <image class="star-img" src="../static/images/home/stars.png" mode="widthFix"></image>
  11. </view>
  12. <view class="yellow-circle">
  13. </view>
  14. <view class="dialog-title">
  15. <text>账号正在审核</text>
  16. </view>
  17. </view>
  18. <view class="dialog-bottom">
  19. <text class="mt">待城管部门审核完毕</text>
  20. <text>即可正常使用企业功能</text>
  21. <u-button class="dialog-button" @click="ishow = false"
  22. color="linear-gradient(to top, #F59A02, #FFD334 )" shape="circle" type="warning" text="">
  23. 我知道了
  24. </u-button>
  25. </view>
  26. </view>
  27. </u-overlay>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. name: 'HomeHint',
  33. props: {
  34. show: {
  35. type: Boolean,
  36. default: "",
  37. }
  38. },
  39. data() {
  40. return {
  41. ishow: false
  42. }
  43. },
  44. watch: {
  45. show: {
  46. handler(value) {
  47. this.ishow = value;
  48. },
  49. immediate: true, //设置为 true 时,第一次进入页面时即监听
  50. deep: true, // 深度监听父组件传过来对象变化
  51. }
  52. },
  53. }
  54. </script>
  55. <style>
  56. .dialog {
  57. position: fixed;
  58. width: 80%;
  59. height: 462rpx;
  60. padding: 0 0 20rpx 0;
  61. background: rgba(185, 196, 201, 0.85);
  62. border: 2rpx solid #77A8FF;
  63. box-shadow: 0rpx 0rpx 24rpx 6rpx rgba(109, 160, 251, 0.6);
  64. border-radius: 28rpx;
  65. top: 50%;
  66. left: 50%;
  67. transform: translate(-50%, -50%);
  68. }
  69. .sheild {
  70. width: 197rpx;
  71. height: 197rpx;
  72. background: #FFFCF6;
  73. box-shadow: 0rpx 9rpx 7rpx 0rpx rgba(24, 51, 129, 0.14);
  74. border-radius: 50%;
  75. position: absolute;
  76. left: 50%;
  77. transform: translate(-50%, -50%);
  78. }
  79. .sheild-img {
  80. position: absolute;
  81. width: 120rpx;
  82. top: 50%;
  83. left: 50%;
  84. transform: translate(-50%, -50%);
  85. }
  86. .star {
  87. position: absolute;
  88. width: 450rpx;
  89. left: 50%;
  90. top: 15%;
  91. transform: translate(-50%, -50%);
  92. }
  93. .star-img {
  94. width: 450rpx;
  95. }
  96. .dialog-top {
  97. position: relative;
  98. height: 220rpx;
  99. width: 100%;
  100. border-bottom: 1rpx solid #77A8FF;
  101. border-top-left-radius: 28rpx;
  102. border-top-right-radius: 28rpx;
  103. border-bottom-left-radius: 48%;
  104. border-bottom-right-radius: 48%;
  105. background-color: #D3E0FF;
  106. }
  107. .yellow-circle {
  108. width: 31rpx;
  109. height: 31rpx;
  110. background: linear-gradient(0deg, #EFC20D 0%, #EBCC12 100%);
  111. border-radius: 50%;
  112. opacity: 0.6;
  113. position: absolute;
  114. top: 20%;
  115. left: 70%;
  116. }
  117. .dialog-title {
  118. text-align: center;
  119. position: absolute;
  120. bottom: 15%;
  121. left: 50%;
  122. transform: translate(-50%);
  123. font-weight: bold;
  124. color: #2F4173;
  125. font-size: 30rpx;
  126. }
  127. .mt {
  128. margin-top: 26rpx;
  129. }
  130. .dialog-bottom {
  131. /* width: 542rpx; */
  132. /* height: 200rpx; */
  133. /* position: absolute; */
  134. /* bottom: 15rpx; */
  135. display: flex;
  136. flex-direction: column;
  137. align-items: center;
  138. font-size: 28rpx;
  139. font-weight: bold;
  140. color: #485B93;
  141. line-height: 41rpx;
  142. }
  143. .dialog-button {
  144. width: 238rpx;
  145. height: 85rpx;
  146. margin-top: 35rpx;
  147. font-size: 28rpx;
  148. font-weight: bold;
  149. }
  150. </style>