errorAlert.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template name="alert">
  2. <view class="alert spec" :class="specClass">
  3. <!-- 运费弹窗说明 -->
  4. <view class="freight-alert" @tap="hideFreight">
  5. <view class="content">
  6. <view class="title">
  7. <text>提示</text>
  8. </view>
  9. <view class="text-content">
  10. <view class="text">
  11. <text>系统检测到您的微信已绑定供应商账户,不能继续登录</text>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default{
  20. name:'alert',
  21. props:{},
  22. data() {
  23. return{
  24. }
  25. },
  26. created() {
  27. },
  28. onLoad(){
  29. },
  30. methods:{
  31. hideFreight(){
  32. this.$parent.isErrorAlert = false
  33. },
  34. },
  35. onShow(){
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. /*弹窗*/
  41. .model-warp.none{
  42. display: none;
  43. }
  44. .model-warp.show{
  45. display: block;
  46. }
  47. .freight-alert{
  48. width: 100%;
  49. height: 100%;
  50. background: rgba(0,0,0,.5);
  51. position: fixed;
  52. top: 0;
  53. left: 0;
  54. z-index: 8888;
  55. transition: all 0.4s;
  56. &.none{
  57. display: none;
  58. }
  59. &.show{
  60. display: block;
  61. }
  62. .content{
  63. width: 530rpx;
  64. height: 300rpx;
  65. position: absolute;
  66. background: $bg-color;
  67. left: 0;
  68. right: 0;
  69. bottom: 0;
  70. top: 0;
  71. margin: auto;
  72. padding: 20rpx 25rpx;
  73. border-radius: 12rpx;
  74. .title{
  75. width: 100%;
  76. height: 68rpx;
  77. line-height: 68rpx;
  78. font-size: $font-size-28;
  79. color: $text-color;
  80. text-align: center;
  81. margin-bottom: 32rpx;
  82. position: relative;
  83. .icon-iconfontguanbi{
  84. width: 68rpx;
  85. height: 68rpx;
  86. text-align: center;
  87. line-height: 68rpx;
  88. position: absolute;
  89. right: 0;
  90. top: 0;
  91. font-size: $font-size-36;
  92. color: #999999;
  93. }
  94. }
  95. .text-content{
  96. width: 100%;
  97. height: auto;
  98. .text{
  99. padding: 40rpx 0;
  100. line-height: 44rpx;
  101. font-size: $font-size-26;
  102. color:#666666;
  103. text-align: justify;
  104. }
  105. .text-h1{
  106. line-height: 44rpx;
  107. font-size: $font-size-28;
  108. color: $text-color;
  109. text-align: justify;
  110. }
  111. }
  112. .btn{
  113. width: 100%;
  114. height: 88rpx;
  115. float: left;
  116. background: $btn-confirm;
  117. line-height: 88rpx;
  118. font-size: $font-size-28;
  119. text-align: center;
  120. color: #FFFFFF;
  121. border-radius: 0;
  122. padding: 0;
  123. margin-top: 2rpx;
  124. }
  125. }
  126. }
  127. </style>