errorAlert.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 class="exit-btn">
  14. <navigator open-type="exit" target="miniProgram" class="btn">退出</navigator>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default{
  23. name:'alert',
  24. props:{},
  25. data() {
  26. return{
  27. }
  28. },
  29. created() {
  30. },
  31. onLoad(){
  32. },
  33. methods:{
  34. hideFreight(){
  35. this.$parent.isErrorAlert = false
  36. },
  37. },
  38. onShow(){
  39. }
  40. }
  41. </script>
  42. <style lang="scss">
  43. /*弹窗*/
  44. .model-warp.none{
  45. display: none;
  46. }
  47. .model-warp.show{
  48. display: block;
  49. }
  50. .freight-alert{
  51. width: 100%;
  52. height: 100%;
  53. background: rgba(0,0,0,.5);
  54. position: fixed;
  55. top: 0;
  56. left: 0;
  57. z-index: 8888;
  58. transition: all 0.4s;
  59. &.none{
  60. display: none;
  61. }
  62. &.show{
  63. display: block;
  64. }
  65. .content{
  66. width: 530rpx;
  67. height: 300rpx;
  68. position: absolute;
  69. background: $bg-color;
  70. left: 0;
  71. right: 0;
  72. bottom: 0;
  73. top: 0;
  74. margin: auto;
  75. padding: 20rpx 25rpx;
  76. border-radius: 12rpx;
  77. .title{
  78. width: 100%;
  79. height: 68rpx;
  80. line-height: 68rpx;
  81. font-size: $font-size-30;
  82. color: $text-color;
  83. text-align: center;
  84. margin-bottom: 20rpx;
  85. position: relative;
  86. }
  87. .text-content{
  88. width: 70%;
  89. height: auto;
  90. margin: 0 auto;
  91. .text{
  92. line-height: 44rpx;
  93. font-size: $font-size-28;
  94. color:#666666;
  95. text-align: center;
  96. }
  97. .exit-btn{
  98. width: 100%;
  99. height: 70rpx;
  100. display: flex;
  101. align-items: center;
  102. flex-direction:column;
  103. margin-top: 30rpx;
  104. .btn{
  105. width: 200rpx;
  106. line-height: 70rpx;
  107. font-size: $font-size-28;
  108. text-align: center;
  109. color: #FFFFFF;
  110. border-radius: 35rpx;
  111. padding: 0;
  112. background: $btn-confirm;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. </style>