upgradeAlert.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template name="alert">
  2. <view class="alert spec" :class="specClass">
  3. <!-- 运费弹窗说明 -->
  4. <view class="freight-alert" @click.stop="unBindUpgrade">
  5. <view class="content clearfix">
  6. <view class="title"><text class="iconfont icon-iconfontguanbi" @click.stop="unBindUpgrade"></text></view>
  7. <view class="text-content">
  8. <view class="text-h1">您目前为<text class="col">普通机构用户</text></view>
  9. <view class="text-h1">可以升级<text class="col">会员机构</text>享受更多更好的服务</view>
  10. </view>
  11. <view class="text-btn">
  12. <view class="btn" @click.stop="GoApply">去升级</view>
  13. <view class="btn-none" @click.stop="unBindUpgrade">暂不升级</view>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default{
  21. name:'alert',
  22. props:{
  23. clubStatus:{
  24. type:Number
  25. }
  26. },
  27. data() {
  28. return{
  29. status:""
  30. }
  31. },
  32. created() {
  33. this.status = this.clubStatus
  34. },
  35. onLoad(){
  36. },
  37. methods:{
  38. GoApply(){
  39. this.$emit('GoApply')
  40. },
  41. unBindUpgrade(){
  42. this.$emit('unBindUpgrade')
  43. }
  44. },
  45. onShow(){
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. /*弹窗*/
  51. .model-warp.none{
  52. display: none;
  53. }
  54. .model-warp.show{
  55. display: block;
  56. }
  57. .freight-alert{
  58. width: 100%;
  59. height: 100%;
  60. background: rgba(0,0,0,.5);
  61. position: fixed;
  62. top: 0;
  63. left: 0;
  64. z-index: 8888;
  65. transition: all 0.4s;
  66. &.none{
  67. display: none;
  68. }
  69. &.show{
  70. display: block;
  71. }
  72. .content{
  73. width: 492rpx;
  74. height: 710rpx;
  75. position: absolute;
  76. background: url(https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9BSAERyCAAG9lz_TNN0938.png) no-repeat;
  77. background-size: contain;
  78. left: 0;
  79. right: 0;
  80. bottom: 0;
  81. top: 0;
  82. margin: auto;
  83. padding:0 24rpx 20rpx 24rpx;
  84. border-radius: 12rpx;
  85. .title{
  86. width: 100%;
  87. height: 68rpx;
  88. line-height: 68rpx;
  89. text-align: center;
  90. position: relative;
  91. .icon-iconfontguanbi{
  92. width: 50rpx;
  93. height: 50rpx;
  94. text-align: center;
  95. line-height: 50rpx;
  96. border-radius: 50%;
  97. border: 1px solid #FFFFFF;
  98. position: absolute;
  99. right: -20rpx;
  100. top: 0;
  101. font-size: $font-size-32;
  102. color: #FFFFFF;
  103. }
  104. }
  105. .text-content{
  106. width: 100%;
  107. height: auto;
  108. margin-top: 280rpx;
  109. .text-h1{
  110. line-height: 60rpx;
  111. font-size: $font-size-28;
  112. color: $text-color;
  113. text-align: justify;
  114. .col{
  115. color: $color-system;
  116. margin: 0 6rpx;
  117. }
  118. }
  119. }
  120. .text-btn{
  121. width: 100%;
  122. height: auto;
  123. margin-top: 40rpx;
  124. .btn{
  125. width: 100%;
  126. height: 88rpx;
  127. float: left;
  128. background: $btn-confirm;
  129. line-height: 88rpx;
  130. font-size: $font-size-28;
  131. text-align: center;
  132. color: #FFFFFF;
  133. border-radius: 44rpx;
  134. padding: 0;
  135. }
  136. .btn-none{
  137. width: 100%;
  138. height: 88rpx;
  139. float: left;
  140. line-height: 88rpx;
  141. font-size: $font-size-28;
  142. text-align: center;
  143. color: #666666;
  144. padding: 0;
  145. margin-top: 20rpx;
  146. }
  147. }
  148. }
  149. }
  150. </style>