upgradeAlert.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. import { cancelPrompt } from "@/services/use.js"
  21. export default{
  22. name:'alert',
  23. props:{
  24. clubStatus:{
  25. type:Number
  26. }
  27. },
  28. data() {
  29. return{
  30. status:""
  31. }
  32. },
  33. created() {
  34. this.status = this.clubStatus
  35. },
  36. onLoad(){
  37. },
  38. methods:{
  39. GoApply(){
  40. this.$emit('GoApply')
  41. },
  42. unBindUpgrade(){
  43. this.$emit('unBindUpgrade')
  44. }
  45. },
  46. onShow(){
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. /*弹窗*/
  52. .model-warp.none{
  53. display: none;
  54. }
  55. .model-warp.show{
  56. display: block;
  57. }
  58. .freight-alert{
  59. width: 100%;
  60. height: 100%;
  61. background: rgba(0,0,0,.5);
  62. position: fixed;
  63. top: 0;
  64. left: 0;
  65. z-index: 8888;
  66. transition: all 0.4s;
  67. &.none{
  68. display: none;
  69. }
  70. &.show{
  71. display: block;
  72. }
  73. .content{
  74. width: 492rpx;
  75. height: 710rpx;
  76. position: absolute;
  77. background: url(https://img.caimei365.com/group1/M00/03/B0/Cmis217Z9BSAERyCAAG9lz_TNN0938.png) no-repeat;
  78. background-size: contain;
  79. left: 0;
  80. right: 0;
  81. bottom: 0;
  82. top: 0;
  83. margin: auto;
  84. padding:0 24rpx 20rpx 24rpx;
  85. border-radius: 12rpx;
  86. .title{
  87. width: 100%;
  88. height: 68rpx;
  89. line-height: 68rpx;
  90. text-align: center;
  91. position: relative;
  92. .icon-iconfontguanbi{
  93. width: 50rpx;
  94. height: 50rpx;
  95. text-align: center;
  96. line-height: 50rpx;
  97. border-radius: 50%;
  98. border: 1px solid #FFFFFF;
  99. position: absolute;
  100. right: -20rpx;
  101. top: 0;
  102. font-size: $font-size-32;
  103. color: #FFFFFF;
  104. }
  105. }
  106. .text-content{
  107. width: 100%;
  108. height: auto;
  109. margin-top: 280rpx;
  110. .text-h1{
  111. line-height: 60rpx;
  112. font-size: $font-size-28;
  113. color: $text-color;
  114. text-align: justify;
  115. .col{
  116. color: $color-system;
  117. margin: 0 6rpx;
  118. }
  119. }
  120. }
  121. .text-btn{
  122. width: 100%;
  123. height: auto;
  124. margin-top: 40rpx;
  125. .btn{
  126. width: 100%;
  127. height: 88rpx;
  128. float: left;
  129. background: $btn-confirm;
  130. line-height: 88rpx;
  131. font-size: $font-size-28;
  132. text-align: center;
  133. color: #FFFFFF;
  134. border-radius: 44rpx;
  135. padding: 0;
  136. }
  137. .btn-none{
  138. width: 100%;
  139. height: 88rpx;
  140. float: left;
  141. line-height: 88rpx;
  142. font-size: $font-size-28;
  143. text-align: center;
  144. color: #666666;
  145. padding: 0;
  146. margin-top: 20rpx;
  147. }
  148. }
  149. }
  150. }
  151. </style>