|
@@ -1,33 +1,148 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="content">
|
|
<view class="content">
|
|
|
-
|
|
|
|
|
|
|
+ <view class="bg">
|
|
|
|
|
+ <image src="../../static/img/jiedianBg.png" mode=""></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="box">
|
|
|
|
|
+ <view class="box-left">
|
|
|
|
|
+ <view class="top">
|
|
|
|
|
+ {{childrenNum}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom">
|
|
|
|
|
+ 总人数
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="box-left">
|
|
|
|
|
+ <view class="top">
|
|
|
|
|
+ {{money}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom">
|
|
|
|
|
+ 收益
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="box-1">
|
|
|
|
|
+ <view class="tuandui-box" v-for="item in childrenList">
|
|
|
|
|
+ <view class="box-img">
|
|
|
|
|
+ <image :src="item.user.avatar" mode=""></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="box-content">
|
|
|
|
|
+ <view class="content-top">
|
|
|
|
|
+ <view class="content-top-left">
|
|
|
|
|
+ <view class="name">
|
|
|
|
|
+ {{item.user.nickname}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="time">
|
|
|
|
|
+ {{item.add_time | getTime}}加入
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="content-top-right">
|
|
|
|
|
+ 收益:{{item.get}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="content-bottom">
|
|
|
|
|
+ <view class="xianlu">
|
|
|
|
|
+ 线路:{{item.way}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- <view class="number">
|
|
|
|
|
+ 团队共{{item.parent_id}}人
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <uni-load-more :status="loadingType"></uni-load-more>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import {lookSubpoints, lookOneself } from '../../api/user.js'
|
|
|
|
|
|
|
+ import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
|
|
|
|
|
+ import {
|
|
|
|
|
+ lookSubpoints,
|
|
|
|
|
+ lookOneself
|
|
|
|
|
+ } from '../../api/user.js'
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ uniLoadMore
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- dtailId:'',
|
|
|
|
|
- childrenList:[]
|
|
|
|
|
|
|
+ dtailId: '',
|
|
|
|
|
+ childrenList: [],
|
|
|
|
|
+ jieList: [],
|
|
|
|
|
+ childrenNum: '',
|
|
|
|
|
+ limit:10,
|
|
|
|
|
+ page:1,
|
|
|
|
|
+ loadingType:'more',
|
|
|
|
|
+ money: '',
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ filters: {
|
|
|
|
|
+ getTime(val) {
|
|
|
|
|
+ let str = ''
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ const date = new Date(val * 1000);
|
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
|
+ const mon = date.getMonth() + 1;
|
|
|
|
|
+ const day = date.getDate();
|
|
|
|
|
+ const hours = date.getHours();
|
|
|
|
|
+ const minu = date.getMinutes();
|
|
|
|
|
+ const sec = date.getSeconds();
|
|
|
|
|
+ str = year + '-' + mon + '-' + day + ' ' + hours + ':' + minu + ':' + sec;
|
|
|
|
|
+ }
|
|
|
|
|
+ return str
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
this.detailId = option.id
|
|
this.detailId = option.id
|
|
|
- console.log(this.detailId,'上一个页面');
|
|
|
|
|
|
|
+ console.log(this.detailId, '上一个页面');
|
|
|
|
|
+ console.log(option, '22223333');
|
|
|
this.lookDetail()
|
|
this.lookDetail()
|
|
|
-
|
|
|
|
|
|
|
+ this.lookMyjiedian()
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
- methods:{
|
|
|
|
|
- lookDetail(){
|
|
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ lookMyjiedian() {
|
|
|
let obj = this
|
|
let obj = this
|
|
|
- lookSubpoints(
|
|
|
|
|
- {},obj.detailId
|
|
|
|
|
- ).then(res=>{
|
|
|
|
|
- console.log(res,'详细数据');
|
|
|
|
|
- obj.childrenList = res.data.children
|
|
|
|
|
- console.log(obj.childrenList,'详细数据');
|
|
|
|
|
|
|
+ lookOneself().then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ obj.jieList = res.data.points.map(e => {
|
|
|
|
|
+ return e
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(obj.jieList, '11');
|
|
|
|
|
+ obj.childrenNum = obj.jieList[0].children_num
|
|
|
|
|
+ obj.money = obj.jieList[0].get
|
|
|
|
|
+ console.log(obj.childrenNum, obj.money);
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ lookDetail() {
|
|
|
|
|
+ let obj = this
|
|
|
|
|
+ if(obj.loadingType=='loading' || obj.loadingType=='noMore'){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ obj.loadingType = 'loading'
|
|
|
|
|
+ lookSubpoints({
|
|
|
|
|
+ page:obj.page,
|
|
|
|
|
+ limit:obj.limit
|
|
|
|
|
+ }, obj.detailId).then(res => {
|
|
|
|
|
+ obj.childrenList =obj.childrenList.concat(res.data.children)
|
|
|
|
|
+ console.log(res,'xuhaolam');
|
|
|
|
|
+ if(res.data.children.length!=obj.limit){
|
|
|
|
|
+ console.log(res, '详细数据123');
|
|
|
|
|
+
|
|
|
|
|
+ obj.loadingType='noMore'
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ obj.loadingType='more'
|
|
|
|
|
+ obj.page++
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ console.log(obj.childrenList, '详细数据1');
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -35,5 +150,138 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
|
|
+ page,
|
|
|
|
|
+ .content {
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ background: #F3F3F3;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .box-1 {
|
|
|
|
|
+ // margin: 0 auto;
|
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
|
+ margin-top: 40rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .bg {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ width: 750rpx;
|
|
|
|
|
+ height: 360rpx;
|
|
|
|
|
+
|
|
|
|
|
+ image {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .box {
|
|
|
|
|
+
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-around;
|
|
|
|
|
+ margin-top: -180rpx;
|
|
|
|
|
+
|
|
|
|
|
+ .box-left {
|
|
|
|
|
+ z-index: 99;
|
|
|
|
|
+ width: 280rpx;
|
|
|
|
|
+ height: 160rpx;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ background-color: #FFFFFF;
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .top {
|
|
|
|
|
+ font-size: 36rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .bottom {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: #999999;
|
|
|
|
|
+ margin-top: 10rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .tuandui-box {
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ width: 690rpx;
|
|
|
|
|
+
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+
|
|
|
|
|
+ padding: 20rpx;
|
|
|
|
|
+ border-bottom: 2rpx solid #F3F3F3;
|
|
|
|
|
+ ;
|
|
|
|
|
+
|
|
|
|
|
+ .box-img {
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ width: 80rpx;
|
|
|
|
|
+ height: 80rpx;
|
|
|
|
|
+
|
|
|
|
|
+ image {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .box-content {
|
|
|
|
|
+ margin-left: 15rpx;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ .content-top {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+
|
|
|
|
|
+ .content-top-left {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ line-height: 40rpx;
|
|
|
|
|
+
|
|
|
|
|
+ .name {
|
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .time {
|
|
|
|
|
+ color: #999999;
|
|
|
|
|
+ margin-left: 15rpx;
|
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content-top-right {
|
|
|
|
|
+ color: #303133;
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content-bottom {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+
|
|
|
|
|
+ .xianlu {
|
|
|
|
|
+ color: #999999;
|
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .number {
|
|
|
|
|
+ color: #303133;
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|