|
@@ -6,35 +6,87 @@
|
|
|
<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="zongbox flex">
|
|
|
+ <view class="zongbox-left">昨日</view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="num">30</view>
|
|
|
+ <view class="info-font">昨日门票分红</view>
|
|
|
+ </view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="num">20</view>
|
|
|
+ <view class="info-font">手续费分红</view>
|
|
|
+ </view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="num">50</view>
|
|
|
+ <view class="info-font">其他分红</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="zongbox flex">
|
|
|
+ <view class="zongbox-left">历史</view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="num">30</view>
|
|
|
+ <view class="info-font">历史门票分红</view>
|
|
|
+ </view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="num">20</view>
|
|
|
+ <view class="info-font">手续费分红</view>
|
|
|
+ </view>
|
|
|
+ <view class="info">
|
|
|
+ <view class="num">50</view>
|
|
|
+ <view class="info-font">其他分红</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="join">
|
|
|
+ <view class="xian"></view>
|
|
|
+ <view class="join-font">我的节点</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 class="item-main">
|
|
|
+ <view class="main-top flex">
|
|
|
+ <view class="top-left">认购份数:{{ ls.buy_num * 1 }}</view>
|
|
|
+ <view class="top-right">累计释放:20</view>
|
|
|
+ </view>
|
|
|
+ <view class="main-top flex">
|
|
|
+ <view class="top-left">释放天数:{{ ls.release_time_now }}</view>
|
|
|
+ <view class="top-right">累计分红:20</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-loadmore :status="loding"></u-loadmore>
|
|
|
+ <!-- <u-loadmore :status="loding"></u-loadmore> -->
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <view class="join">
|
|
|
+ <view class="xian"></view>
|
|
|
+ <view class="join-font">其他节点</view>
|
|
|
+ </view>
|
|
|
+ <view class="box">
|
|
|
+ <view class="boxItem flex" style=" flex-wrap: wrap; width: 50%;">
|
|
|
+ <view class="item1" v-for="ls in pointList">
|
|
|
+ <view class="ls1">
|
|
|
+ <view class="name1">{{ ls.plan_name }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="item-main">
|
|
|
+ <view class="main-top">合伙人数:{{ls.request_num}}</view>
|
|
|
+ <view class="main-top">累计分红:{{ls.release_money*1}}</view>
|
|
|
+ <view class="main-top">时间:2021年9月2日</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<!-- </swiper-item>
|
|
|
</swiper> -->
|
|
|
<u-popup v-model="show" mode="center" width="548rpx" border-radius="14">
|
|
@@ -51,6 +103,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { myPiont } from '@/api/user.js';
|
|
|
+import { getPoint } from '@/api/set.js';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -58,9 +111,10 @@ export default {
|
|
|
password: '',
|
|
|
current: 0, //当前选中的标签
|
|
|
tabList: [],
|
|
|
+ pointList: [],
|
|
|
loding: 'more',
|
|
|
- all:'',
|
|
|
- yesterday:''
|
|
|
+ all: '',
|
|
|
+ yesterday: ''
|
|
|
};
|
|
|
},
|
|
|
//页面加载即刻发生
|
|
@@ -73,12 +127,14 @@ export default {
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
|
});
|
|
|
- myPiont().then(({ data }) => {
|
|
|
+ myPiont({ page: 1, limit: 10000 }).then(({ data }) => {
|
|
|
this.yesterday = data.yesterday * 1;
|
|
|
this.all = data.all * 1;
|
|
|
this.tabList = data.list;
|
|
|
- console.log(data);
|
|
|
- uni.hideLoading();
|
|
|
+ getPoint().then(({ data }) => {
|
|
|
+ this.pointList = data;
|
|
|
+ uni.hideLoading();
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
// 下拉到底部加载事件
|
|
@@ -115,22 +171,47 @@ page {
|
|
|
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;
|
|
|
- }
|
|
|
+}
|
|
|
+.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;
|
|
|
+ }
|
|
|
+}
|
|
|
+.zongbox {
|
|
|
+ width: 690rpx;
|
|
|
+ height: auto;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: 0px 0px 17rpx 0px rgba(0, 0, 0, 0.05);
|
|
|
+ border-radius: 20rpx;
|
|
|
+ margin: 10rpx auto 0;
|
|
|
+ justify-content: space-around;
|
|
|
+ padding: 36rpx 10rpx 36rpx 60rpx;
|
|
|
+ position: relative;
|
|
|
+ .zongbox-left {
|
|
|
+ padding-top: 30rpx;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 50rpx;
|
|
|
+ text-align: center;
|
|
|
+ height: 100%;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 1.5;
|
|
|
+ background: linear-gradient(90deg, #60bab0, #60bab0, #45969b);
|
|
|
+ border-top-left-radius: 20rpx;
|
|
|
+ border-bottom-left-radius: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
.tab {
|
|
@@ -145,87 +226,97 @@ page {
|
|
|
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;
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+}
|
|
|
+.box {
|
|
|
+ width: 100%;
|
|
|
+ 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;
|
|
|
}
|
|
|
- .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;
|
|
|
+ .text {
|
|
|
+ color: $font-color-dark;
|
|
|
}
|
|
|
}
|
|
|
- // .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;
|
|
|
- width: 100%;
|
|
|
- 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;
|
|
|
- }
|
|
|
+ }
|
|
|
+ .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;
|
|
|
+ width: 100%;
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .item-main {
|
|
|
+ padding-top: 10rpx;
|
|
|
+ .main-top {
|
|
|
+ margin-top: 10rpx;
|
|
|
+ font-size: 22rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #6d7c88;
|
|
|
+ .top-left {
|
|
|
+ flex: 1;
|
|
|
}
|
|
|
- .rightTip {
|
|
|
- color: $uni-color-primary;
|
|
|
- text-align: right;
|
|
|
- font-size: 24rpx;
|
|
|
+ .top-right {
|
|
|
+ flex: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -262,4 +353,24 @@ page {
|
|
|
color: #45969b;
|
|
|
}
|
|
|
}
|
|
|
+.join {
|
|
|
+ margin-top: 44rpx;
|
|
|
+ padding-left: 30rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ align-items: center;
|
|
|
+ .xian {
|
|
|
+ width: 6rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ background: #0f253a;
|
|
|
+ border-radius: 4rpx;
|
|
|
+ }
|
|
|
+ .join-font {
|
|
|
+ padding-left: 16rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #0f253a;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|