index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <view class="gallery" :style="{background:'url('+ bannerImage +')#ffffff'}">
  3. <view><nav-bar title="none" icon="none" background="transparent" border-color="transparent" noPlaceholder></nav-bar></view>
  4. <view class="logo"><re-image imgSrc="/retail/main/img_logo.png" width="300" height="56"></re-image></view>
  5. <view class="content">
  6. <view class="news">
  7. <view class="info flex">
  8. <re-image imgSrc="/" width="104" height="104"></re-image>
  9. <view class="info-text flex-column jcsa">
  10. <view class="info-top flex">
  11. <view class="name">王安安</view>
  12. <view class="level flex aic">
  13. <re-image imgSrc="/retail/main/ic_chuji.png" width="40" height="44"></re-image>
  14. <view class="level-text">初级</view>
  15. </view>
  16. </view>
  17. <view class="phone">13630639549</view>
  18. </view>
  19. </view>
  20. <view class="news-total flex jcsa">
  21. <view class="total-item">
  22. <view class="item-num">156</view>
  23. <view class="item-text">总销订单</view>
  24. </view>
  25. <view class="total-item">
  26. <view class="item-num">156</view>
  27. <view class="item-text">总销游戏币</view>
  28. </view>
  29. <view class="total-item">
  30. <view class="item-num orange">¥156</view>
  31. <view class="item-text">预估总收益</view>
  32. </view>
  33. </view>
  34. </view>
  35. <div class="list-title-wrapper flex jcsb aic">
  36. <div class="list-title flex aic">
  37. <span class="title-line"></span>
  38. 套餐充值
  39. </div>
  40. <div class="timer">
  41. 赠送游戏币倒计时
  42. <span>
  43. <span class="lb" id="day">2</span>
  44. <span class="lb" id="hours">17</span>
  45. <span class="lb" id="mins">56</span>
  46. </span>
  47. </div>
  48. </div>
  49. <div class="list-wrapper"></div>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import {
  55. toRpx
  56. } from '@/utils/calculate.js'
  57. import defaultConfig from '@/config/default.js'
  58. export default {
  59. components: {},
  60. computed: {
  61. statusBarHeight() {
  62. return this.$store.state.info.systemInfo?.statusBarHeight
  63. },
  64. },
  65. data() {
  66. return {
  67. bannerImage: defaultConfig.ossImgUrl + '/retail/main/img_bgtop.png',
  68. title: 'Hello',
  69. navBarHeight:uni.getStorageSync('navBarHeight')
  70. }
  71. },
  72. onLoad() {
  73. },
  74. methods: {
  75. },
  76. mounted() {
  77. },
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .gallery {
  82. background-repeat: no-repeat !important;
  83. background-size: contain !important;
  84. // background-position: top;
  85. width: 100%;
  86. position: absolute;
  87. top: 0;
  88. bottom: 0;
  89. .logo {
  90. margin-top: 16rpx;
  91. margin-left: 24rpx;
  92. }
  93. .content {
  94. padding: 32rpx;
  95. .news {
  96. background: #FFFFFF;
  97. box-shadow: 0rpx 6rpx 16rpx 0rpx #E3E6F2;
  98. border-radius: 24rpx;
  99. margin-top: 48rpx;
  100. padding: 40rpx;
  101. .info {
  102. .info-text {
  103. .info-top {
  104. .name {
  105. font-weight: 500;
  106. font-size: 32rpx;
  107. color: #363531;
  108. }
  109. .level {
  110. margin-left: 12rpx;
  111. .level-text {
  112. width: 80rpx;
  113. height: 36rpx;
  114. padding: 6rpx 12rpx 6rpx 20rpx;
  115. background: linear-gradient(130deg, #FFB873 0%, #FEC287 0%, #E69349 100%);
  116. border-radius: 0rpx 18rpx 18rpx 0rpx;
  117. font-weight: 500;
  118. font-size: 24rpx;
  119. color: #FFFFFF;
  120. line-height: 24rpx;
  121. margin-left: -12rpx;
  122. // text-align: left;
  123. }
  124. }
  125. }
  126. }
  127. .phone {
  128. font-weight: 400;
  129. font-size: 28rpx;
  130. color: #989897;
  131. }
  132. }
  133. .news-total {
  134. margin-top: 44rpx;
  135. .item-num {
  136. font-weight: bold;
  137. font-size: 40rpx;
  138. color: #363531;
  139. }
  140. .orange {
  141. color: #FF6400;
  142. }
  143. .item-text {
  144. font-weight: 400;
  145. font-size: 28rpx;
  146. color: #9598A6;
  147. }
  148. }
  149. }
  150. .list-title-wrapper {
  151. margin-top: 48rpx;
  152. .list-title {
  153. color: #363531;
  154. font-weight: bold;
  155. font-size: 36rpx;
  156. line-height: 36rpx;
  157. .title-line {
  158. width: 8rpx;
  159. height: 32rpx;
  160. background-color: #FF8800;
  161. margin-right: 20rpx;
  162. }
  163. }
  164. .timer{
  165. font-size: 24rpx;
  166. .lb{
  167. display: inline-block;
  168. vertical-align: top;
  169. width: 32rpx;
  170. height: 32rpx;
  171. background-color: #FFE4DA;
  172. color: #FF4300;
  173. text-align: center;
  174. line-height: 32rpx;
  175. border-radius: 6rpx;
  176. margin: 0 2rpx;
  177. }
  178. }
  179. }
  180. }
  181. }
  182. </style>