| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <template>
- <view class="center">
- <view class="bg"></view>
- <view class="zong flex">
- <view class="info">
- <view class="info-num">{{ yesterday || '0.00' }}</view>
- <view class="info-font">昨天释放</view>
- </view>
- <!-- <view class="info" v-for="ls in listType">
- <view class="info-num">{{ all || '0.00' }}</view>
- <view class="info-font">总释放数量</view>
- </view> -->
- <view class="info">
- <view class="info-num">{{ all || '0.00' }}</view>
- <view class="info-font">累计释放</view>
- </view>
- </view>
- <view class="tabSwiper">
- <view class="swiper-item">
- <scroll-view scroll-y @scrolltolower="onreachBottom">
- <view class="boxItem flex" style=" flex-wrap: wrap;">
- <view class="item1" v-for="ls in tabList">
- <!-- <view class="rightTip">进行中</view> -->
- <view class="ls1">
- <view class="name1">{{ ls.plan.plan_name }}</view>
- <!-- <view class="title1">{{ ls.mask }}</view> -->
- <view class="title1">认购份额:{{ ls.buy_num * 1 }}</view>
- <view class="title1">总天数:{{ ls.release_time_all * 1 }}</view>
- <view class="title1">当前释放天数:{{ ls.release_time_now * 1 }}</view>
- </view>
- </view>
- </view>
- <u-loadmore :status="loding"></u-loadmore>
- </scroll-view>
- </view>
- </view>
- <!-- </swiper-item>
- </swiper> -->
- <u-popup v-model="show" mode="center" width="548rpx" border-radius="14">
- <view class="psw-wrapper">
- <view class="psw-title">请输入支付密码</view>
- <input type="password" v-model="password" class="psw-ipt" />
- <view class="psw-btn">
- <text @click="cancel">取消</text>
- <text class="psw-qd" @click="pswQd">确定</text>
- </view>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- import { myPiont } from '@/api/user.js';
- export default {
- data() {
- return {
- show: false,
- password: '',
- current: 0, //当前选中的标签
- tabList: [],
- loding: 'more',
- all:'',
- yesterday:''
- };
- },
- //页面加载即刻发生
- onShow() {
- this.loadData();
- },
- methods: {
- async loadData() {
- uni.showLoading({
- title: '加载中'
- });
- myPiont().then(({ data }) => {
- this.yesterday = data.yesterday * 1;
- this.all = data.all * 1;
- this.tabList = data.list;
- console.log(data);
- uni.hideLoading();
- });
- },
- // 下拉到底部加载事件
- onreachBottom(e) {
- console.log(e);
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- height: 100%;
- }
- .tabBox {
- flex-grow: 1;
- }
- .center {
- height: 0;
- min-height: 100%;
- }
- .bg {
- width: 750rpx;
- height: 248rpx;
- background: linear-gradient(90deg, #60bab0, #60bab0, #45969b);
- border-bottom-left-radius: 150rpx;
- border-bottom-right-radius: 150rpx;
- }
- .zong {
- width: 690rpx;
- height: 181rpx;
- background: #ffffff;
- box-shadow: 0px 0px 17rpx 0px rgba(0, 0, 0, 0.05);
- border-radius: 20rpx;
- margin: -150rpx auto 0;
- justify-content: space-around;
- padding: 0rpx 36rpx;
- .info {
- display: flex;
- flex-direction: column;
- align-items: center;
- .info-num {
- font-size: 50rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #0f253a;
- }
- .info-font {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #6d7c88;
- }
- }
- }
- .tab {
- background-color: #ffffff;
- align-items: stretch;
- .left {
- padding-left: 10rpx;
- padding-right: 20rpx;
- }
- }
- .tabSwiper {
- height: calc(100% - 70rpx);
- .swiper-item {
- padding: 30rpx;
- .boxItem {
- .item {
- background-color: #ffffff;
- line-height: 1;
- padding: 30rpx;
- margin-bottom: 30rpx;
- .title {
- justify-content: flex-start;
- padding-bottom: 30rpx;
- align-items: stretch;
- .tip {
- width: 7rpx;
- border-radius: 99rpx;
- background-color: $base-color;
- }
- .name {
- margin-left: 20rpx;
- font-size: 30rpx;
- font-weight: bold;
- color: $font-color-dark;
- }
- }
- .itemConetnt {
- padding: 20rpx 0;
- font-weight: bold;
- font-size: 28rpx;
- border-bottom: 1px solid $border-color-light;
- border-top: 1px solid $border-color-light;
- .ls {
- padding: 10rpx 0;
- color: $font-color-light;
- .textInterval {
- width: 0.5em;
- }
- .text {
- color: $font-color-dark;
- }
- }
- }
- .lsButtom {
- font-size: 30rpx;
- background-image: $bg-green-gradual;
- text-align: center;
- color: $font-color-white;
- padding: 30rpx 0;
- border-radius: 99rpx;
- margin: 20rpx 30rpx 0rpx 30rpx;
- }
- }
- // .item1:nth-child(odd) {
- // margin-right: 30rpx;
- // }
- .item1 {
- line-height: 1;
- background: url(../../static/img/rengouBg.png) no-repeat;
- background-position: right bottom;
- background-size: 140rpx 115rpx;
- flex-grow: 1;
- min-width: 40%;
- margin-bottom: 30rpx;
- border-radius: 15rpx;
- background-color: #ffffff;
- border: 1px solid $uni-color-primary;
- padding: 15rpx 10rpx 35rpx 30rpx;
- .ls1 {
- font-weight: bold;
- .name1 {
- color: $font-color-dark;
- font-size: $font-base + 2rpx;
- margin-top: 10rpx;
- }
- .title1 {
- margin-top: 15rpx;
- color: $font-color-light;
- font-size: 22rpx;
- }
- }
- .rightTip {
- color: $uni-color-primary;
- text-align: right;
- font-size: 24rpx;
- }
- }
- }
- }
- }
- .psw-wrapper {
- width: 548rpx;
- height: 344rpx;
- background-color: #ffffff;
- .psw-title {
- width: 100%;
- font-size: 35rpx;
- padding: 43rpx 0 49rpx;
- text-align: center;
- font-weight: 800;
- }
- .psw-ipt {
- display: block;
- background-color: #dce3ed;
- height: 90rpx;
- width: 464rpx;
- padding-left: 30rpx;
- margin: 0 auto;
- font-size: 80rpx;
- }
- .psw-btn text {
- display: inline-block;
- text-align: center;
- width: 50%;
- padding-top: 29rpx;
- font-size: 35rpx;
- }
- .psw-qd {
- color: #45969b;
- }
- }
- </style>
|