JDcool.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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/anchor8.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. methods:{
  64. toBack() {
  65. uni.switchTab({
  66. url: '/pages/user/user'
  67. });
  68. }
  69. }
  70. };
  71. </script>
  72. <style lang="scss">
  73. page {
  74. background: #ffffff;
  75. height: 100%;
  76. }
  77. .content-money {
  78. background: $page-color-base;
  79. // border: 2px solid #ffffff;
  80. // padding-top: var(--status-bar-height);
  81. .moneyTx {
  82. position: absolute;
  83. top: 120rpx;
  84. right: 0rpx;
  85. // width: 150rpx;
  86. padding: 10rpx 10rpx;
  87. border: 2px solid #ffffff;
  88. border-top-left-radius: 15rpx;
  89. border-bottom-left-radius: 15rpx;
  90. line-height: 1;
  91. font-size: $font-base;
  92. background: #ffffff;
  93. }
  94. .buttom-box {
  95. background-color: #ffffff;
  96. text-align: center;
  97. margin: 0 30rpx;
  98. padding: 20rpx 0;
  99. border-radius: $border-radius-sm;
  100. margin-top: -60rpx;
  101. .buttom {
  102. font-size: $font-lg;
  103. flex-grow: 1;
  104. }
  105. .interval {
  106. width: 2px;
  107. height: 60rpx;
  108. background-color: #eeeeee;
  109. }
  110. .icon {
  111. height: 36rpx;
  112. width: 36rpx;
  113. margin: 0 auto;
  114. .icon-img {
  115. width: 100%;
  116. height: 100%;
  117. }
  118. }
  119. }
  120. }
  121. .money-box {
  122. height: 430rpx;
  123. color: #ffffff;
  124. text-align: center;
  125. position: relative;
  126. background-color: pink;
  127. .header {
  128. position: absolute;
  129. left: 0;
  130. top: 0;
  131. width: 100%;
  132. height: 80rpx;
  133. font-size: 32rpx;
  134. font-weight: 700;
  135. z-index: 99;
  136. display: flex;
  137. justify-content: center;
  138. align-items: center;
  139. }
  140. .goback-box {
  141. position: absolute;
  142. left: 18rpx;
  143. top: 0;
  144. height: 80rpx;
  145. display: flex;
  146. align-items: center;
  147. }
  148. .goback {
  149. z-index: 100;
  150. width: 34rpx;
  151. height: 34rpx;
  152. }
  153. .money_bg {
  154. width: 100%;
  155. height: 430rpx;
  156. display: block;
  157. }
  158. .text {
  159. padding-top: 80rpx;
  160. font-size: $font-lg;
  161. }
  162. .money {
  163. position: absolute;
  164. top: 0;
  165. width: 100%;
  166. padding-top: 186rpx;
  167. font-size: 84rpx;
  168. font-weight: bold;
  169. }
  170. .tip {
  171. position: absolute;
  172. top: 0;
  173. width: 100%;
  174. text-align: center;
  175. padding-top: 304rpx;
  176. font-size: 26rpx;
  177. font-family: PingFang SC;
  178. font-weight: 500;
  179. color: #FFFFFF;
  180. }
  181. }
  182. .title {
  183. height: 82rpx;
  184. line-height: 82rpx;
  185. text-align: center;
  186. font-size: 30rpx;
  187. font-family: PingFang SC;
  188. font-weight: 500;
  189. color: #333333;
  190. border-bottom: 1px solid #f0f0f0;
  191. }
  192. // 列表
  193. .swiper-box {
  194. .order-item {
  195. padding: 18rpx 24rpx 14rpx;
  196. border-bottom: 1px solid #f0f0f0;
  197. .left {
  198. justify-content: flex-start;
  199. .avator {
  200. width: 70rpx;
  201. height: 70rpx;
  202. border-radius: 50rpx;
  203. background: #03A9F4;
  204. image {
  205. width: 70rpx;
  206. height: 70rpx;
  207. border-radius: 50rpx;
  208. }
  209. }
  210. .order-font {
  211. margin-left: 10rpx;
  212. font-size: 30rpx;
  213. font-family: PingFang SC;
  214. font-weight: 500;
  215. color: #3F454B;
  216. text {
  217. color: #FF4D4C;
  218. }
  219. }
  220. }
  221. .time {
  222. font-size: 22rpx;
  223. font-family: PingFang SC;
  224. font-weight: 400;
  225. color: #999999;
  226. }
  227. }
  228. }
  229. .content {
  230. height: 100%;
  231. .empty-content {
  232. background-color: #ffffff;
  233. }
  234. }
  235. </style>