myNote.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <view class="center">
  3. <view class="bg"></view>
  4. <view class="zong flex">
  5. <view class="info">
  6. <view class="info-num">{{ yesterday || '0.00' }}</view>
  7. <view class="info-font">昨天释放</view>
  8. </view>
  9. <!-- <view class="info" v-for="ls in listType">
  10. <view class="info-num">{{ all || '0.00' }}</view>
  11. <view class="info-font">总释放数量</view>
  12. </view> -->
  13. <view class="info">
  14. <view class="info-num">{{ all || '0.00' }}</view>
  15. <view class="info-font">累计释放</view>
  16. </view>
  17. </view>
  18. <view class="tabSwiper">
  19. <view class="swiper-item">
  20. <scroll-view scroll-y @scrolltolower="onreachBottom">
  21. <view class="boxItem flex" style=" flex-wrap: wrap;">
  22. <view class="item1" v-for="ls in tabList">
  23. <!-- <view class="rightTip">进行中</view> -->
  24. <view class="ls1">
  25. <view class="name1">{{ ls.plan.plan_name }}</view>
  26. <!-- <view class="title1">{{ ls.mask }}</view> -->
  27. <view class="title1">认购份额:{{ ls.buy_num * 1 }}</view>
  28. <view class="title1">总天数:{{ ls.release_time_all * 1 }}</view>
  29. <view class="title1">当前释放天数:{{ ls.release_time_now * 1 }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <u-loadmore :status="loding"></u-loadmore>
  34. </scroll-view>
  35. </view>
  36. </view>
  37. <!-- </swiper-item>
  38. </swiper> -->
  39. <u-popup v-model="show" mode="center" width="548rpx" border-radius="14">
  40. <view class="psw-wrapper">
  41. <view class="psw-title">请输入支付密码</view>
  42. <input type="password" v-model="password" class="psw-ipt" />
  43. <view class="psw-btn">
  44. <text @click="cancel">取消</text>
  45. <text class="psw-qd" @click="pswQd">确定</text>
  46. </view>
  47. </view>
  48. </u-popup>
  49. </view>
  50. </template>
  51. <script>
  52. import { myPiont } from '@/api/user.js';
  53. export default {
  54. data() {
  55. return {
  56. show: false,
  57. password: '',
  58. current: 0, //当前选中的标签
  59. tabList: [],
  60. loding: 'more',
  61. all:'',
  62. yesterday:''
  63. };
  64. },
  65. //页面加载即刻发生
  66. onShow() {
  67. this.loadData();
  68. },
  69. methods: {
  70. async loadData() {
  71. uni.showLoading({
  72. title: '加载中'
  73. });
  74. myPiont().then(({ data }) => {
  75. this.yesterday = data.yesterday * 1;
  76. this.all = data.all * 1;
  77. this.tabList = data.list;
  78. console.log(data);
  79. uni.hideLoading();
  80. });
  81. },
  82. // 下拉到底部加载事件
  83. onreachBottom(e) {
  84. console.log(e);
  85. }
  86. }
  87. };
  88. </script>
  89. <style lang="scss">
  90. page {
  91. height: 100%;
  92. }
  93. .tabBox {
  94. flex-grow: 1;
  95. }
  96. .center {
  97. height: 0;
  98. min-height: 100%;
  99. }
  100. .bg {
  101. width: 750rpx;
  102. height: 248rpx;
  103. background: linear-gradient(90deg, #60bab0, #60bab0, #45969b);
  104. border-bottom-left-radius: 150rpx;
  105. border-bottom-right-radius: 150rpx;
  106. }
  107. .zong {
  108. width: 690rpx;
  109. height: 181rpx;
  110. background: #ffffff;
  111. box-shadow: 0px 0px 17rpx 0px rgba(0, 0, 0, 0.05);
  112. border-radius: 20rpx;
  113. margin: -150rpx auto 0;
  114. justify-content: space-around;
  115. padding: 0rpx 36rpx;
  116. .info {
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. .info-num {
  121. font-size: 50rpx;
  122. font-family: PingFang SC;
  123. font-weight: bold;
  124. color: #0f253a;
  125. }
  126. .info-font {
  127. font-size: 28rpx;
  128. font-family: PingFang SC;
  129. font-weight: bold;
  130. color: #6d7c88;
  131. }
  132. }
  133. }
  134. .tab {
  135. background-color: #ffffff;
  136. align-items: stretch;
  137. .left {
  138. padding-left: 10rpx;
  139. padding-right: 20rpx;
  140. }
  141. }
  142. .tabSwiper {
  143. height: calc(100% - 70rpx);
  144. .swiper-item {
  145. padding: 30rpx;
  146. .boxItem {
  147. .item {
  148. background-color: #ffffff;
  149. line-height: 1;
  150. padding: 30rpx;
  151. margin-bottom: 30rpx;
  152. .title {
  153. justify-content: flex-start;
  154. padding-bottom: 30rpx;
  155. align-items: stretch;
  156. .tip {
  157. width: 7rpx;
  158. border-radius: 99rpx;
  159. background-color: $base-color;
  160. }
  161. .name {
  162. margin-left: 20rpx;
  163. font-size: 30rpx;
  164. font-weight: bold;
  165. color: $font-color-dark;
  166. }
  167. }
  168. .itemConetnt {
  169. padding: 20rpx 0;
  170. font-weight: bold;
  171. font-size: 28rpx;
  172. border-bottom: 1px solid $border-color-light;
  173. border-top: 1px solid $border-color-light;
  174. .ls {
  175. padding: 10rpx 0;
  176. color: $font-color-light;
  177. .textInterval {
  178. width: 0.5em;
  179. }
  180. .text {
  181. color: $font-color-dark;
  182. }
  183. }
  184. }
  185. .lsButtom {
  186. font-size: 30rpx;
  187. background-image: $bg-green-gradual;
  188. text-align: center;
  189. color: $font-color-white;
  190. padding: 30rpx 0;
  191. border-radius: 99rpx;
  192. margin: 20rpx 30rpx 0rpx 30rpx;
  193. }
  194. }
  195. // .item1:nth-child(odd) {
  196. // margin-right: 30rpx;
  197. // }
  198. .item1 {
  199. line-height: 1;
  200. background: url(../../static/img/rengouBg.png) no-repeat;
  201. background-position: right bottom;
  202. background-size: 140rpx 115rpx;
  203. flex-grow: 1;
  204. min-width: 40%;
  205. margin-bottom: 30rpx;
  206. border-radius: 15rpx;
  207. background-color: #ffffff;
  208. border: 1px solid $uni-color-primary;
  209. padding: 15rpx 10rpx 35rpx 30rpx;
  210. .ls1 {
  211. font-weight: bold;
  212. .name1 {
  213. color: $font-color-dark;
  214. font-size: $font-base + 2rpx;
  215. margin-top: 10rpx;
  216. }
  217. .title1 {
  218. margin-top: 15rpx;
  219. color: $font-color-light;
  220. font-size: 22rpx;
  221. }
  222. }
  223. .rightTip {
  224. color: $uni-color-primary;
  225. text-align: right;
  226. font-size: 24rpx;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. .psw-wrapper {
  233. width: 548rpx;
  234. height: 344rpx;
  235. background-color: #ffffff;
  236. .psw-title {
  237. width: 100%;
  238. font-size: 35rpx;
  239. padding: 43rpx 0 49rpx;
  240. text-align: center;
  241. font-weight: 800;
  242. }
  243. .psw-ipt {
  244. display: block;
  245. background-color: #dce3ed;
  246. height: 90rpx;
  247. width: 464rpx;
  248. padding-left: 30rpx;
  249. margin: 0 auto;
  250. font-size: 80rpx;
  251. }
  252. .psw-btn text {
  253. display: inline-block;
  254. text-align: center;
  255. width: 50%;
  256. padding-top: 29rpx;
  257. font-size: 35rpx;
  258. }
  259. .psw-qd {
  260. color: #45969b;
  261. }
  262. }
  263. </style>