upgradeAlert.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template name="alert">
  2. <view class="alert spec" :class="specClass">
  3. <!-- 运费弹窗说明 -->
  4. <view class="freight-alert" @click.stop="hideFpgradeAlert">
  5. <view class="content clearfix">
  6. <view class="title"><text class="iconfont icon-iconfontguanbi" @click.stop="hideFpgradeAlert"></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 "@/api/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. hideFpgradeAlert(){
  40. this.$parent.isUpgradeAlert = false
  41. },
  42. GoApply(){
  43. this.$api.navigateTo(`/pages/login/apply?clubStatus=${this.status}`);
  44. },
  45. unBindUpgrade(){
  46. this.$emit('unBindUpgrade')
  47. }
  48. },
  49. onShow(){
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. /*弹窗*/
  55. .model-warp.none{
  56. display: none;
  57. }
  58. .model-warp.show{
  59. display: block;
  60. }
  61. .freight-alert{
  62. width: 100%;
  63. height: 100%;
  64. background: rgba(0,0,0,.5);
  65. position: fixed;
  66. top: 0;
  67. left: 0;
  68. z-index: 8888;
  69. transition: all 0.4s;
  70. &.none{
  71. display: none;
  72. }
  73. &.show{
  74. display: block;
  75. }
  76. .content{
  77. width: 492rpx;
  78. height: 710rpx;
  79. position: absolute;
  80. background: url(https://admin-b.caimei365.com/userfiles/1/images/photo/2020/05/%E7%BB%84%201422%402x.png) no-repeat;
  81. background-size: contain;
  82. left: 0;
  83. right: 0;
  84. bottom: 0;
  85. top: 0;
  86. margin: auto;
  87. padding:0 24rpx 20rpx 24rpx;
  88. border-radius: 12rpx;
  89. .title{
  90. width: 100%;
  91. height: 68rpx;
  92. line-height: 68rpx;
  93. text-align: center;
  94. position: relative;
  95. .icon-iconfontguanbi{
  96. width: 50rpx;
  97. height: 50rpx;
  98. text-align: center;
  99. line-height: 50rpx;
  100. border-radius: 50%;
  101. border: 1px solid #FFFFFF;
  102. position: absolute;
  103. right: -20rpx;
  104. top: 0;
  105. font-size: $font-size-32;
  106. color: #FFFFFF;
  107. }
  108. }
  109. .text-content{
  110. width: 100%;
  111. height: auto;
  112. margin-top: 280rpx;
  113. .text-h1{
  114. line-height: 60rpx;
  115. font-size: $font-size-28;
  116. color: $text-color;
  117. text-align: justify;
  118. .col{
  119. color: $color-system;
  120. margin: 0 6rpx;
  121. }
  122. }
  123. }
  124. .text-btn{
  125. width: 100%;
  126. height: auto;
  127. margin-top: 40rpx;
  128. .btn{
  129. width: 100%;
  130. height: 88rpx;
  131. float: left;
  132. background: $btn-confirm;
  133. line-height: 88rpx;
  134. font-size: $font-size-28;
  135. text-align: center;
  136. color: #FFFFFF;
  137. border-radius: 14rpx;
  138. padding: 0;
  139. }
  140. .btn-none{
  141. width: 100%;
  142. height: 88rpx;
  143. float: left;
  144. line-height: 88rpx;
  145. font-size: $font-size-28;
  146. text-align: center;
  147. color: #666666;
  148. padding: 0;
  149. margin-top: 20rpx;
  150. }
  151. }
  152. }
  153. }
  154. </style>