JDcool.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view class="content">
  3. <view class="content-money">
  4. <view class="money-box">
  5. <view class="goback-box" @click="toBack"><image class="goback" src="../../static/img/fanhui.png" mode=""></image></view>
  6. <view class="header">金豆池</view>
  7. <image class="money_bg" src="../../static/img/anchor12.png"></image>
  8. <view class="money">100</view>
  9. <view class="tip">
  10. 金豆数量
  11. </view>
  12. </view>
  13. </view>
  14. <view class="title">
  15. - 实时瓜分 -
  16. </view>
  17. <scroll-view class="swiper-box" scroll-y>
  18. <!-- 空白页 -->
  19. <!-- <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty> -->
  20. <!-- 订单列表 -->
  21. <template>
  22. <view v-for="(item, i) in 10" class="order-item flex">
  23. <view class="left flex">
  24. <view class="avator">
  25. <image src="" mode=""></image>
  26. </view>
  27. <view class="order-font">
  28. 御风获得<text>20</text>个金豆
  29. </view>
  30. </view>
  31. <view class="time">
  32. 2019-12-02 12:00:00
  33. </view>
  34. </view>
  35. </template>
  36. <!-- <uni-load-more :status="tabItem.loadingType"></uni-load-more> -->
  37. </scroll-view>
  38. </view>
  39. </template>
  40. <script>
  41. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  42. import empty from '@/components/empty';
  43. export default {
  44. components: {
  45. empty,
  46. uniLoadMore
  47. },
  48. onReady(res) {
  49. // 初始化获取页面宽度
  50. var _this = this;
  51. uni.getSystemInfo({
  52. success: resu => {
  53. const query = uni.createSelectorQuery();
  54. query.select('.swiper-box').boundingClientRect();
  55. query.exec(function(res) {
  56. _this.maxheight = resu.windowHeight - res[0].top + 'px';
  57. console.log('打印页面的剩余高度', _this.height);
  58. });
  59. },
  60. fail: res => {}
  61. });
  62. }
  63. };
  64. </script>
  65. <style lang="scss">
  66. page {
  67. background: #ffffff;
  68. height: 100%;
  69. }
  70. .content-money {
  71. background: $page-color-base;
  72. // border: 2px solid #ffffff;
  73. // padding-top: var(--status-bar-height);
  74. .moneyTx {
  75. position: absolute;
  76. top: 120rpx;
  77. right: 0rpx;
  78. // width: 150rpx;
  79. padding: 10rpx 10rpx;
  80. border: 2px solid #ffffff;
  81. border-top-left-radius: 15rpx;
  82. border-bottom-left-radius: 15rpx;
  83. line-height: 1;
  84. font-size: $font-base;
  85. background: #ffffff;
  86. }
  87. .buttom-box {
  88. background-color: #ffffff;
  89. text-align: center;
  90. margin: 0 30rpx;
  91. padding: 20rpx 0;
  92. border-radius: $border-radius-sm;
  93. margin-top: -60rpx;
  94. .buttom {
  95. font-size: $font-lg;
  96. flex-grow: 1;
  97. }
  98. .interval {
  99. width: 2px;
  100. height: 60rpx;
  101. background-color: #eeeeee;
  102. }
  103. .icon {
  104. height: 36rpx;
  105. width: 36rpx;
  106. margin: 0 auto;
  107. .icon-img {
  108. width: 100%;
  109. height: 100%;
  110. }
  111. }
  112. }
  113. }
  114. .money-box {
  115. height: 430rpx;
  116. color: #ffffff;
  117. text-align: center;
  118. position: relative;
  119. background-color: pink;
  120. .header {
  121. position: absolute;
  122. left: 0;
  123. top: 0;
  124. width: 100%;
  125. height: 80rpx;
  126. font-size: 32rpx;
  127. font-weight: 700;
  128. z-index: 99;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. }
  133. .goback-box {
  134. position: absolute;
  135. left: 18rpx;
  136. top: 0;
  137. height: 80rpx;
  138. display: flex;
  139. align-items: center;
  140. }
  141. .goback {
  142. z-index: 100;
  143. width: 34rpx;
  144. height: 34rpx;
  145. }
  146. .money_bg {
  147. width: 100%;
  148. height: 430rpx;
  149. display: block;
  150. }
  151. .text {
  152. padding-top: 80rpx;
  153. font-size: $font-lg;
  154. }
  155. .money {
  156. position: absolute;
  157. top: 0;
  158. width: 100%;
  159. padding-top: 186rpx;
  160. font-size: 84rpx;
  161. font-weight: bold;
  162. }
  163. .tip {
  164. position: absolute;
  165. top: 0;
  166. width: 100%;
  167. text-align: center;
  168. padding-top: 304rpx;
  169. font-size: 26rpx;
  170. font-family: PingFang SC;
  171. font-weight: 500;
  172. color: #FFFFFF;
  173. }
  174. }
  175. .title {
  176. height: 82rpx;
  177. line-height: 82rpx;
  178. text-align: center;
  179. font-size: 30rpx;
  180. font-family: PingFang SC;
  181. font-weight: 500;
  182. color: #333333;
  183. border-bottom: 1px solid #f0f0f0;
  184. }
  185. // 列表
  186. .swiper-box {
  187. .order-item {
  188. padding: 18rpx 24rpx 14rpx;
  189. border-bottom: 1px solid #f0f0f0;
  190. .left {
  191. justify-content: flex-start;
  192. .avator {
  193. width: 70rpx;
  194. height: 70rpx;
  195. border-radius: 50rpx;
  196. background: #03A9F4;
  197. image {
  198. width: 70rpx;
  199. height: 70rpx;
  200. border-radius: 50rpx;
  201. }
  202. }
  203. .order-font {
  204. margin-left: 10rpx;
  205. font-size: 30rpx;
  206. font-family: PingFang SC;
  207. font-weight: 500;
  208. color: #3F454B;
  209. text {
  210. color: #FF4D4C;
  211. }
  212. }
  213. }
  214. .time {
  215. font-size: 22rpx;
  216. font-family: PingFang SC;
  217. font-weight: 400;
  218. color: #999999;
  219. }
  220. }
  221. }
  222. .content {
  223. height: 100%;
  224. .empty-content {
  225. background-color: #ffffff;
  226. }
  227. }
  228. </style>