none-hd.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="model" v-if="show">
  3. <image
  4. :src="`${constant.imgUrl}/ghs/home/deserve.png`"
  5. class="noData_img"
  6. ></image>
  7. <view class="no_data_text">{{title}}</view>
  8. <view class="freeApply" @click="apply">{{btnText}}</view>
  9. <view class="experience" v-if="expreShow" @click="experienceClick">体验</view>
  10. <view class="experFrame">
  11. <view v-if="rightShow">
  12. <input
  13. v-model="experCode"
  14. class="experInput"
  15. placeholder="请输入体验码"
  16. />
  17. <!-- <input type="text" v-model="experCode" placeholder="请输入体验码" /> -->
  18. <text class="admin-button-com small blue" @click="rightClick">确定</text>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. props: {
  26. show: {
  27. type: Boolean,
  28. default: true,
  29. },
  30. btnText: {
  31. type: String,
  32. default: '',
  33. },
  34. title: {
  35. type: String,
  36. default: '',
  37. },
  38. authShow: {
  39. type: Boolean,
  40. default: false,
  41. }
  42. },
  43. watch: {
  44. authShow(val) {
  45. this.expreShow = val
  46. }
  47. },
  48. data() {
  49. return {
  50. constant: this.$constant,
  51. experCode: '',
  52. expreShow: false,
  53. rightShow: false
  54. };
  55. },
  56. methods: {
  57. apply() {
  58. this.$emit('bthClick')
  59. },
  60. experienceClick(){
  61. this.rightShow = true
  62. this.expreShow = false
  63. },
  64. rightClick() {
  65. this.$emit('comfirm', this.experCode)
  66. }
  67. },
  68. };
  69. </script>
  70. <style lang="scss" scoped>
  71. .model {
  72. position: fixed;
  73. z-index: 9999;
  74. top: 0;
  75. left: 0;
  76. width: 100vw;
  77. height: 100vh;
  78. background: rgba(0, 0, 0, 0.6);
  79. color: #fff;
  80. overflow: hidden;
  81. text-align: center;
  82. & > .noData_img {
  83. width: 318upx;
  84. height: 318upx;
  85. margin: 332upx auto 0;
  86. }
  87. & > .no_data_text {
  88. font-size: 32px;
  89. color: #ffffff;
  90. text-align: center;
  91. margin: 50upx 0;
  92. }
  93. & > .freeApply {
  94. width: 376px;
  95. height: 88px;
  96. line-height: 88upx;
  97. background: linear-gradient(90deg, #3385ff, #33b0ff);
  98. border-radius: 44px;
  99. margin: 0 auto;
  100. font-size: 32px;
  101. color: #ffffff;
  102. text-align: center;
  103. }
  104. &>.experience{
  105. margin-top: 40upx;
  106. color: #fff;
  107. font-size: 30upx;
  108. }
  109. &>.experFrame{
  110. margin-top: 50upx;
  111. height: 50upx;
  112. &>view{
  113. margin: 0 auto;
  114. &>.experInput{
  115. height: 70upx;
  116. width: 250upx;
  117. display: inline-block;
  118. vertical-align: middle;
  119. border-radius: 8upx;
  120. background-color: #fff;
  121. border: 1px solid #ccc;
  122. color: #666;
  123. padding-left: 20upx;
  124. box-sizing: border-box;
  125. text-align: left;
  126. }
  127. &>text{
  128. display: inline-block;
  129. line-height: 70upx;
  130. padding: 0 20upx;
  131. background-color: #3385FF;
  132. vertical-align: middle;
  133. font-size: 30upx;
  134. margin-left: 20upx;
  135. }
  136. }
  137. }
  138. }
  139. </style>