homePage.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="content">
  3. <view class="topSection">
  4. <image class="bg_top" src="https://dm.static.elab-plus.com/yezhu/h5/backgroundImg.png" mode=""></image>
  5. <view class="liveContent">
  6. <view class="backDiv"></view>
  7. <view class="title">分享好房 · 躺平赚钱</view>
  8. <view class="subTitle">新手赚钱帮助 ></view>
  9. <view class="levelDiv" style="background: url('https://dm.static.elab-plus.com/yezhu/h5/icon_line_back.png') center/100% 100% no-repeat;">
  10. <view class="level_top">
  11. <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode=""></image>
  12. <view class="level_text">Lv5</view>
  13. <view class="level_des">/达到 5000 收益可升级</view>
  14. <view class="level_update">
  15. <text>升级攻略</text>
  16. <image class="level_right_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
  17. </view>
  18. </view>
  19. <view class="level_bottom">
  20. <levelView currentLevel='3500' nextLevel='5000' currentLevelTxt='lv5' nextLevelTxt='lv6'></levelView>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="content_body" :style="{background:color4}">
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import levelView from '@/components/leve-view/leve-view.vue';
  31. let app = getApp();
  32. export default {
  33. data() {
  34. return{
  35. color4:'#F5F5F7'
  36. }
  37. },
  38. mounted() {
  39. this.color4 = app.globalData.color4;
  40. },
  41. methods: {
  42. },
  43. components:{
  44. levelView
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. page {
  50. width: 100vw;
  51. height: 100vh;
  52. }
  53. .content {
  54. width: 100%;
  55. height: 100%;
  56. position: relative;
  57. .topSection{
  58. position: relative;
  59. z-index: 100;
  60. }
  61. .bg_top{
  62. width: 100%;
  63. height: 470rpx;
  64. position: absolute;
  65. top:0;
  66. left:0;
  67. z-index: 100;
  68. }
  69. .liveContent {
  70. width: 100%;
  71. height: 470rpx;
  72. z-index: 100;
  73. display: flex;
  74. flex-direction: column;
  75. align-items: center;
  76. position: relative;
  77. .backDiv {
  78. top: 0;
  79. left: 0;
  80. position: absolute;
  81. width: 100%;
  82. height: 100%;
  83. background-color: rgba($color: #000000, $alpha: 0.1);
  84. z-index: 1;
  85. }
  86. .title {
  87. margin-top: 96rpx;
  88. font-size: 44rpx;
  89. font-weight: 700;
  90. text-align: center;
  91. color: #ffffff;
  92. z-index: 2;
  93. }
  94. .subTitle {
  95. font-size: 28rpx;
  96. font-family: Verdana, Verdana-Regular;
  97. font-weight: 400;
  98. text-align: left;
  99. color: #ffffff;
  100. margin-top: 20rpx;
  101. z-index: 2;
  102. }
  103. .levelDiv {
  104. margin-top: 82rpx;
  105. width: calc(100% - 60rpx);
  106. height: 152rpx;
  107. z-index: 2;
  108. display: flex;
  109. flex-direction: column;
  110. padding: 25rpx 30rpx;
  111. box-sizing: border-box;
  112. .level_top {
  113. width: 100%;
  114. display: flex;
  115. justify-content: space-between;
  116. flex-wrap: nowrap;
  117. align-items: center;
  118. margin-top: 5rpx;
  119. .level_icon {
  120. width: 37rpx;
  121. min-width: 37rpx;
  122. max-width: 37rpx;
  123. height: 35rpx;
  124. margin-right: 13rpx;
  125. margin-top: -5rpx;
  126. }
  127. .level_text {
  128. font-size: 48rpx;
  129. font-family: FontName, FontName-Regular;
  130. font-weight: 500;
  131. text-align: left;
  132. font-style: oblique;
  133. color: #f5c8a8;
  134. line-height: 40rpx;
  135. letter-spacing: 1.92rpx;
  136. margin-right: 8rpx;
  137. margin-top: -7rpx;
  138. }
  139. .level_des {
  140. font-size: 22rpx;
  141. font-family: Verdana, Verdana-Regular;
  142. font-weight: 400;
  143. text-align: left;
  144. color: #f5c8a8;
  145. white-space: nowrap;
  146. flex-grow: 1;
  147. }
  148. .level_update {
  149. font-size: 24rpx;
  150. font-family: Verdana, Verdana-Bold;
  151. font-weight: 700;
  152. text-align: right;
  153. color: #f5c8a8;
  154. letter-spacing: 0.96rpx;
  155. display: flex;
  156. align-items: center;
  157. .level_right_icon {
  158. margin-left: 8rpx;
  159. width: 6rpx;
  160. height: 7rpx;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. .content_body{
  167. border-radius: 20rpx 20rpx 0rpx 0rpx;
  168. height: calc(100% - 470rpx);
  169. margin-top: -24rpx;
  170. z-index: 102;
  171. position: relative;
  172. }
  173. }
  174. </style>