driverDialog.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view>
  3. <u-overlay :show="ishow">
  4. <view class="dialog">
  5. <view class="dialog-top tooltip1">
  6. <view class="dialog-title">
  7. <text>登录提醒</text>
  8. </view>
  9. </view>
  10. <view class="dialog-bottom">
  11. <view class="textBox">
  12. <text>您所登录的账号</text>
  13. <text style="color: #FC5536;">{{$store.state.user.loginName}}</text>
  14. <!-- <text style="color: #FC5536;">填写不正确,法人联系方式</text>
  15. <text style="color: #FC5536;">不正确</text> -->
  16. <text>已重复登录</text>
  17. <text>是否继续登录</text>
  18. </view>
  19. <view class="btn-box">
  20. <u-button class="dialog-button" @tap="confirm"
  21. color="linear-gradient(to top, #F59A02, #FFD334 )" shape="circle" type="warning" text="">
  22. 确定
  23. </u-button>
  24. <u-button class="dialog-button" @tap="close(true)" color="#ffffff" shape="circle" type="warning"
  25. text="">
  26. 取消
  27. </u-button>
  28. </view>
  29. </view>
  30. <view class="update-close" @tap="close(true)">
  31. <u-icon size="66" color="#ffffff" name="close-circle"></u-icon>
  32. </view>
  33. </view>
  34. </u-overlay>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. name: 'HomeHint',
  40. props: {
  41. show: {
  42. type: Boolean,
  43. default: "",
  44. }
  45. },
  46. data() {
  47. return {
  48. ishow: false
  49. }
  50. },
  51. methods: {
  52. confirm() {
  53. this.$emit('confirm')
  54. },
  55. close(is) {
  56. if (is) {
  57. this.$emit('close', true)
  58. } else {
  59. this.$emit('close')
  60. }
  61. }
  62. },
  63. watch: {
  64. show: {
  65. handler(value) {
  66. this.ishow = value;
  67. },
  68. immediate: true, //设置为 true 时,第一次进入页面时即监听
  69. deep: true, // 深度监听父组件传过来对象变化
  70. }
  71. },
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .btn-box {
  76. display: flex;
  77. }
  78. .dialog {
  79. position: fixed;
  80. width: 80%;
  81. /* height: 462rpx; */
  82. padding: 0 0 20rpx 0;
  83. background: rgba(255, 255, 255, 0.75);
  84. border: 2rpx solid #77A8FF;
  85. box-shadow: 0rpx 0rpx 24rpx 6rpx rgba(109, 160, 251, 0.6);
  86. border-radius: 28rpx;
  87. top: 50%;
  88. left: 50%;
  89. transform: translate(-50%, -50%);
  90. }
  91. .dialog-top {
  92. position: relative;
  93. height: 299rpx;
  94. top: -86rpx;
  95. width: 100%;
  96. }
  97. .tooltip1 {
  98. background: url('@/static/images/tooltip1.png');
  99. background-size: 100% 100%;
  100. }
  101. .dialog-title {
  102. text-align: center;
  103. position: absolute;
  104. bottom: 31rpx;
  105. left: 50%;
  106. transform: translate(-50%);
  107. font-weight: bold;
  108. color: #2F4173;
  109. font-size: 34rpx;
  110. }
  111. .dialog-bottom {
  112. /* width: 542rpx; */
  113. /* height: 200rpx; */
  114. /* position: absolute; */
  115. /* bottom: 15rpx; */
  116. display: flex;
  117. flex-direction: column;
  118. align-items: center;
  119. margin-top: -70rpx;
  120. }
  121. .textBox {
  122. font-size: 30rpx;
  123. font-weight: bold;
  124. color: #485B93;
  125. line-height: 60rpx;
  126. text-align: center;
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. }
  131. .dialog-button {
  132. width: 238rpx;
  133. height: 75rpx;
  134. margin-top: 42rpx;
  135. margin-bottom: 42rpx;
  136. font-size: 28rpx;
  137. font-weight: bold;
  138. &:nth-child(2) {
  139. margin-left: 20rpx;
  140. color: #2F4173 !important;
  141. }
  142. }
  143. .update-close {
  144. position: absolute;
  145. text-align: center;
  146. left: 50%;
  147. transform: translate(-50%);
  148. bottom: -100rpx;
  149. }
  150. </style>