|
@@ -52,7 +52,7 @@
|
|
|
<view class="statistics">
|
|
<view class="statistics">
|
|
|
<uni-tabs :list="teamOverview" :is-scroll="true" name="gradeName" active-color="#333"
|
|
<uni-tabs :list="teamOverview" :is-scroll="true" name="gradeName" active-color="#333"
|
|
|
inactive-color="#999" :current="current" @change="change"
|
|
inactive-color="#999" :current="current" @change="change"
|
|
|
- style="background: transparent;border-bottom: 1rpx solid #EEEEEE;"></uni-tabs>
|
|
|
|
|
|
|
+ style="background: transparent;border-bottom: 1rpx solid #EEEEEE;padding: 0 10rpx;"></uni-tabs>
|
|
|
<view class="count">
|
|
<view class="count">
|
|
|
<template v-if="teamOverviewInfo.grade==1">
|
|
<template v-if="teamOverviewInfo.grade==1">
|
|
|
<image src="/static/home/icon4.png" class="mb-2" mode=""
|
|
<image src="/static/home/icon4.png" class="mb-2" mode=""
|
|
@@ -61,20 +61,20 @@
|
|
|
<view class="data dis f-wrap j-s ">
|
|
<view class="data dis f-wrap j-s ">
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="closePartner">
|
|
@click="closePartner">
|
|
|
- <text>{{teamOverviewInfo.vo1.v1 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo1 && teamOverviewInfo.vo1.v1?teamOverviewInfo.vo1.v1:0}}</text>
|
|
|
<text>我的管理人</text>
|
|
<text>我的管理人</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo1.v2 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo1 && teamOverviewInfo.vo1.v2?teamOverviewInfo.vo1.v2:0}}</text>
|
|
|
<text>管理人的合伙人</text>
|
|
<text>管理人的合伙人</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="todayclosePartner">
|
|
@click="todayclosePartner">
|
|
|
- <text>{{teamOverviewInfo.vo1.v3 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo1 && teamOverviewInfo.vo1.v3?teamOverviewInfo.vo1.v3:0}}</text>
|
|
|
<text>我今日新增管理人</text>
|
|
<text>我今日新增管理人</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo1.v4 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo1 && teamOverviewInfo.vo1.v4?teamOverviewInfo.vo1.v4:0}}</text>
|
|
|
<text>今日管理人邀请的合伙人</text>
|
|
<text>今日管理人邀请的合伙人</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -87,7 +87,8 @@
|
|
|
<text>{{userWalletInfo.extractFee || 0}}</text>
|
|
<text>{{userWalletInfo.extractFee || 0}}</text>
|
|
|
<text>佣金</text>
|
|
<text>佣金</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
|
|
+ @click="incomingTransferLog">
|
|
|
<text>{{userWalletInfo.historyFee || 0}}</text>
|
|
<text>{{userWalletInfo.historyFee || 0}}</text>
|
|
|
<text>佣金已转入</text>
|
|
<text>佣金已转入</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -115,28 +116,28 @@
|
|
|
<!-- 权限锁定组件 -->
|
|
<!-- 权限锁定组件 -->
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="closePartner">
|
|
@click="closePartner">
|
|
|
- <text>{{teamOverviewInfo.vo2.v1 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo2 && teamOverviewInfo.vo2.v1?teamOverviewInfo.vo2.v1:0}}</text>
|
|
|
<text>我的合伙人</text>
|
|
<text>我的合伙人</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo2.v2 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo2 && teamOverviewInfo.vo2.v2?teamOverviewInfo.vo2.v2:0}}</text>
|
|
|
<text>合伙人的工作室</text>
|
|
<text>合伙人的工作室</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="todayclosePartner">
|
|
@click="todayclosePartner">
|
|
|
- <text>{{teamOverviewInfo.vo2.v3 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo2 && teamOverviewInfo.vo2.v3?teamOverviewInfo.vo2.v3:0}}</text>
|
|
|
<text>我今日新增合伙人</text>
|
|
<text>我今日新增合伙人</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo2.v4 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo2 && teamOverviewInfo.vo2.v4?teamOverviewInfo.vo2.v4:0}}</text>
|
|
|
<text>今日合伙人邀请的工作室</text>
|
|
<text>今日合伙人邀请的工作室</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
|
- <text>{{teamOverviewInfo.vo2.v5 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo2 && teamOverviewInfo.vo2.v5?teamOverviewInfo.vo2.v5:0}}</text>
|
|
|
<text>今日保费</text>
|
|
<text>今日保费</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo2.v6 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo2 && teamOverviewInfo.vo2.v6?teamOverviewInfo.vo2.v6:0}}</text>
|
|
|
<text>今日佣金</text>
|
|
<text>今日佣金</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -149,11 +150,12 @@
|
|
|
<text>{{userWalletInfo.extractFee ||0}}</text>
|
|
<text>{{userWalletInfo.extractFee ||0}}</text>
|
|
|
<text>佣金</text>
|
|
<text>佣金</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
|
|
+ @click="incomingTransferLog">
|
|
|
<text>{{userWalletInfo.historyFee ||0 }}</text>
|
|
<text>{{userWalletInfo.historyFee ||0 }}</text>
|
|
|
<text>佣金已转入</text>
|
|
<text>佣金已转入</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" @click="accountExpireRecord">
|
|
|
<text>{{userWalletInfo.expired||0 }}</text>
|
|
<text>{{userWalletInfo.expired||0 }}</text>
|
|
|
<text>佣金已过期</text>
|
|
<text>佣金已过期</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -165,7 +167,7 @@
|
|
|
<u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
|
|
<u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" @click="accountFreezeRecord">
|
|
|
<text
|
|
<text
|
|
|
:style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
|
|
:style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
|
|
|
<text>佣金已冻结</text>
|
|
<text>佣金已冻结</text>
|
|
@@ -190,28 +192,28 @@
|
|
|
<!-- 权限锁定组件 -->
|
|
<!-- 权限锁定组件 -->
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="closePartner">
|
|
@click="closePartner">
|
|
|
- <text>{{teamOverviewInfo.vo3.v1 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo3 && teamOverviewInfo.vo3.v1?teamOverviewInfo.vo3.v1:0}}</text>
|
|
|
<text>我的工作室</text>
|
|
<text>我的工作室</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo3.v2 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo3 && teamOverviewInfo.vo3.v2?teamOverviewInfo.vo3.v2:0}}</text>
|
|
|
<text>工作室下的业务团队</text>
|
|
<text>工作室下的业务团队</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="todayclosePartner">
|
|
@click="todayclosePartner">
|
|
|
- <text>{{teamOverviewInfo.vo3.v3 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo3 && teamOverviewInfo.vo3.v3?teamOverviewInfo.vo3.v3:0}}</text>
|
|
|
<text>我今日新增工作室</text>
|
|
<text>我今日新增工作室</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo3.v4 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo3 && teamOverviewInfo.vo3.v4?teamOverviewInfo.vo3.v4:0}}</text>
|
|
|
<text>今日工作室邀请的团队</text>
|
|
<text>今日工作室邀请的团队</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
|
- <text>{{teamOverviewInfo.vo3.v5 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo3 && teamOverviewInfo.vo3.v5?teamOverviewInfo.vo3.v5:0}}</text>
|
|
|
<text>今日保费</text>
|
|
<text>今日保费</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo3.v6 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo3 && teamOverviewInfo.vo3.v6?teamOverviewInfo.vo3.v6:0}}</text>
|
|
|
<text>今日佣金</text>
|
|
<text>今日佣金</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -224,11 +226,12 @@
|
|
|
<text>{{userWalletInfo.extractFee ||0}}</text>
|
|
<text>{{userWalletInfo.extractFee ||0}}</text>
|
|
|
<text>佣金</text>
|
|
<text>佣金</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
|
|
+ @click="incomingTransferLog">
|
|
|
<text>{{userWalletInfo.historyFee ||0 }}</text>
|
|
<text>{{userWalletInfo.historyFee ||0 }}</text>
|
|
|
<text>佣金已转入</text>
|
|
<text>佣金已转入</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" @click="accountExpireRecord">
|
|
|
<text>{{userWalletInfo.expired||0 }}</text>
|
|
<text>{{userWalletInfo.expired||0 }}</text>
|
|
|
<text>佣金已过期</text>
|
|
<text>佣金已过期</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -240,7 +243,7 @@
|
|
|
<u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
|
|
<u-icon name="arrow-rightward" color="#2D6DFF" size="20"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis f-c a-c view">
|
|
|
|
|
|
|
+ <view class="dis f-c a-c view" @click="accountFreezeRecord">
|
|
|
<text
|
|
<text
|
|
|
:style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
|
|
:style="{color:userWalletInfo.freeze>0?'#999':'#333'}">{{userWalletInfo.freeze ||0}}</text>
|
|
|
<text>佣金已冻结</text>
|
|
<text>佣金已冻结</text>
|
|
@@ -264,28 +267,28 @@
|
|
|
<!-- 权限锁定组件 -->
|
|
<!-- 权限锁定组件 -->
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="closePartner">
|
|
@click="closePartner">
|
|
|
- <text>{{teamOverviewInfo.vo4.v1 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo4 && teamOverviewInfo.vo4.v1?teamOverviewInfo.vo4.v1:0}}</text>
|
|
|
<text>我的团队</text>
|
|
<text>我的团队</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo4.v2 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo4 && teamOverviewInfo.vo4.v2?teamOverviewInfo.vo4.v2:0}}</text>
|
|
|
<text>代理人人数</text>
|
|
<text>代理人人数</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;"
|
|
|
@click="todayclosePartner">
|
|
@click="todayclosePartner">
|
|
|
- <text>{{teamOverviewInfo.vo4.v3 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo4 && teamOverviewInfo.vo4.v3?teamOverviewInfo.vo4.v3:0}}</text>
|
|
|
<text>我今日新增团队</text>
|
|
<text>我今日新增团队</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo4.v4 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo4 && teamOverviewInfo.vo4.v4?teamOverviewInfo.vo4.v4:0}}</text>
|
|
|
<text>今日新增代理人</text>
|
|
<text>今日新增代理人</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
<view class="dis f-c a-c view" style="border-right: 1rpx solid #EEEEEE;">
|
|
|
- <text>{{teamOverviewInfo.vo4.v5 || 0}}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo4 && teamOverviewInfo.vo4.v5?teamOverviewInfo.vo4.v5:0}}</text>
|
|
|
<text>今日保费</text>
|
|
<text>今日保费</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c a-c view">
|
|
<view class="dis f-c a-c view">
|
|
|
- <text>{{teamOverviewInfo.vo4.v6 || 0 }}</text>
|
|
|
|
|
|
|
+ <text>{{teamOverviewInfo.vo4 && teamOverviewInfo.vo4.v6?teamOverviewInfo.vo4.v6:0}}</text>
|
|
|
<text>今日佣金</text>
|
|
<text>今日佣金</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -422,7 +425,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view :class="index==1?'task-btn1':'task-btn'"
|
|
<view :class="index==1?'task-btn1':'task-btn'"
|
|
|
- v-if="Number(item.achieve)>=Number(item.min)">
|
|
|
|
|
|
|
+ v-if="Number(item.achieve)>=Number(item.min)" @click="requestUnlock">
|
|
|
已完成
|
|
已完成
|
|
|
</view>
|
|
</view>
|
|
|
<view :class="index==1?'task-btn1':'task-btn'" v-else @click="requestUnlock">
|
|
<view :class="index==1?'task-btn1':'task-btn'" v-else @click="requestUnlock">
|
|
@@ -475,7 +478,7 @@
|
|
|
<text>您的每一个等级收益需要手动转入钱包中,才可以将收益提现</text>
|
|
<text>您的每一个等级收益需要手动转入钱包中,才可以将收益提现</text>
|
|
|
<view class="mt-1 ">
|
|
<view class="mt-1 ">
|
|
|
<text>{{userWalletInfo.cashFee}}元</text>
|
|
<text>{{userWalletInfo.cashFee}}元</text>
|
|
|
- <text class="ml-2" style="color: #2D6DFF;">全部转入</text>
|
|
|
|
|
|
|
+ <text class="ml-2" style="color: #2D6DFF;" @click="transferAll">全部转入</text>
|
|
|
</view>
|
|
</view>
|
|
|
<u-input v-model="amount" class="mt-1" type="digit" :border="true" placeholder="输入转入金额" focus />
|
|
<u-input v-model="amount" class="mt-1" type="digit" :border="true" placeholder="输入转入金额" focus />
|
|
|
</view>
|
|
</view>
|
|
@@ -522,6 +525,8 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ showBackground: false,
|
|
|
|
|
+ prevScrollTop: 0,
|
|
|
startTime: null,
|
|
startTime: null,
|
|
|
endTime: null,
|
|
endTime: null,
|
|
|
swiperKey: 0, // 用于强制更新 swiper
|
|
swiperKey: 0, // 用于强制更新 swiper
|
|
@@ -566,18 +571,75 @@
|
|
|
grade: 0,
|
|
grade: 0,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ //下拉刷新
|
|
|
|
|
+ async onPullDownRefresh() {
|
|
|
|
|
+ await this.getList();
|
|
|
|
|
+ await this.getAmountList(this.teamOverviewInfo.grade)
|
|
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
|
|
+ },
|
|
|
|
|
+ onPageScroll(e) {
|
|
|
|
|
+ this.handleScroll(e);
|
|
|
|
|
+ },
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ uni.pageScrollTo({
|
|
|
|
|
+ scrollTop: 0,
|
|
|
|
|
+ duration: 0
|
|
|
|
|
+ });
|
|
|
|
|
+ uni.$on('scroll', this.handleScroll);
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ destroyed() {
|
|
|
|
|
+ uni.$off('scroll', this.handleScroll);
|
|
|
|
|
+ },
|
|
|
onShow() {},
|
|
onShow() {},
|
|
|
async onLoad() {
|
|
async onLoad() {
|
|
|
-
|
|
|
|
|
|
|
+ this.startTime = this.today();
|
|
|
|
|
+ this.endTime = this.today();
|
|
|
this.type = uni.getStorageSync('type')
|
|
this.type = uni.getStorageSync('type')
|
|
|
this.showData = '全部数据';
|
|
this.showData = '全部数据';
|
|
|
await this.getList() //人员统计
|
|
await this.getList() //人员统计
|
|
|
- this.getAmountList(this.userInfo.sysUser.grade); //角色佣金
|
|
|
|
|
|
|
+ this.getAmountList(this.teamOverviewInfo.grade); //角色佣金
|
|
|
if (this.userInfo.sysUser.grade > 1) this.getUpgradeTask(this.userInfo.sysUser.grade); //角色升级任务
|
|
if (this.userInfo.sysUser.grade > 1) this.getUpgradeTask(this.userInfo.sysUser.grade); //角色升级任务
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ today() {
|
|
|
|
|
+ const today = new Date();
|
|
|
|
|
+ const year = today.getFullYear();
|
|
|
|
|
+ let month = today.getMonth() + 1;
|
|
|
|
|
+ let day = today.getDate();
|
|
|
|
|
+ if (day < 10) {
|
|
|
|
|
+ day = "0" + day;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (month < 10) {
|
|
|
|
|
+ month = "0" + month;
|
|
|
|
|
+ }
|
|
|
|
|
+ return `${year}-${month}-${day}`
|
|
|
|
|
+ },
|
|
|
|
|
+ handleScroll(e) {
|
|
|
|
|
+ const scrollTop = e.scrollTop;
|
|
|
|
|
+ if (scrollTop > this.prevScrollTop) {
|
|
|
|
|
+ // 向下滚动
|
|
|
|
|
+ this.showBackground = true; // 显示背景图
|
|
|
|
|
+ } else if (scrollTop < 50) {
|
|
|
|
|
+ // 在顶部附近,隐藏背景图
|
|
|
|
|
+ this.showBackground = false;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 向上滚动
|
|
|
|
|
+ this.showBackground = true; // 显示背景图
|
|
|
|
|
+ }
|
|
|
|
|
+ this.headerStyle.backgroundColor = this.showBackground ? '#fff' : 'transparent';
|
|
|
|
|
+ this.headerStyle.backgroundImage = this.showBackground ?
|
|
|
|
|
+ `url("/static/home/back.png")` : '';
|
|
|
|
|
+ this.headerStyle.backgroundSize = this.showBackground ? 'cover' : '';
|
|
|
|
|
+ // this.headerStyle.backgroundPosition = this.showBackground ? 'center' : '';
|
|
|
|
|
+ this.prevScrollTop = scrollTop;
|
|
|
|
|
+ },
|
|
|
|
|
+ transferAll() {
|
|
|
|
|
+ this.amount = this.userWalletInfo.cashFee;
|
|
|
|
|
+ },
|
|
|
|
|
+ //转入记录
|
|
|
incomingTransferLog() {
|
|
incomingTransferLog() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: '/pages/institutional/incomingTransferLog?grade=' + this.teamOverviewInfo.grade
|
|
url: '/pages/institutional/incomingTransferLog?grade=' + this.teamOverviewInfo.grade
|
|
@@ -585,12 +647,14 @@
|
|
|
},
|
|
},
|
|
|
accountExpireRecord() {
|
|
accountExpireRecord() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: '/pages/institutional/accountFreezeRecord?type=1&&grade=' + this.teamOverviewInfo.grade
|
|
|
|
|
|
|
+ url: '/pages/institutional/accountFreezeRecord?appStatus=2&grade=' + this.teamOverviewInfo
|
|
|
|
|
+ .grade
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
accountFreezeRecord() {
|
|
accountFreezeRecord() {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: '/pages/institutional/accountFreezeRecord?type=2&&grade=' + this.teamOverviewInfo.grade
|
|
|
|
|
|
|
+ url: '/pages/institutional/accountFreezeRecord?appStatus=1&grade=' + this.teamOverviewInfo
|
|
|
|
|
+ .grade
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
//日期选择回调
|
|
//日期选择回调
|
|
@@ -598,7 +662,7 @@
|
|
|
console.log(startdate, enddate);
|
|
console.log(startdate, enddate);
|
|
|
this.startTime = startdate;
|
|
this.startTime = startdate;
|
|
|
this.endTime = enddate;
|
|
this.endTime = enddate;
|
|
|
- this.getList(startdate, enddate) //人员统计
|
|
|
|
|
|
|
+ this.getList() //人员统计
|
|
|
},
|
|
},
|
|
|
//激活时间选择组件
|
|
//激活时间选择组件
|
|
|
searchPopup() {
|
|
searchPopup() {
|
|
@@ -612,7 +676,7 @@
|
|
|
3: '合伙人',
|
|
3: '合伙人',
|
|
|
4: '工作室'
|
|
4: '工作室'
|
|
|
}
|
|
}
|
|
|
- return gradeMap[Number(grade) - 1] || ''
|
|
|
|
|
|
|
+ return gradeMap[Number(grade)] || ''
|
|
|
},
|
|
},
|
|
|
//获取升级任务
|
|
//获取升级任务
|
|
|
async getUpgradeTask(grade) {
|
|
async getUpgradeTask(grade) {
|
|
@@ -648,11 +712,14 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
let res = await this.$http.post('/partnerExtractHistory/extractRecords', {
|
|
let res = await this.$http.post('/partnerExtractHistory/extractRecords', {
|
|
|
- grade: this.userWalletInfo.grade,
|
|
|
|
|
|
|
+ "startTime": this.startTime + ' 00:00:00' || '',
|
|
|
|
|
+ "endTime": this.endTime + ' 23:59:59' || '',
|
|
|
|
|
+ grade: this.teamOverviewInfo.grade,
|
|
|
amount: this.amount,
|
|
amount: this.amount,
|
|
|
});
|
|
});
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- this.roleCommInShow = true;
|
|
|
|
|
|
|
+ this.roleCommInShow = false;
|
|
|
|
|
+ this.getAmountList(this.teamOverviewInfo.grade)
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
title: res.msg,
|
|
@@ -663,46 +730,28 @@
|
|
|
},
|
|
},
|
|
|
//锁定视图点击事件
|
|
//锁定视图点击事件
|
|
|
async requestUnlock() {
|
|
async requestUnlock() {
|
|
|
- if (this.teamOverviewInfo.parentStatus == '2' && this.teamOverviewInfo.unlockedStatus) {
|
|
|
|
|
- switch (this.teamOverviewInfo.upgradeStatus) {
|
|
|
|
|
- case 0:
|
|
|
|
|
- let params = {
|
|
|
|
|
- grade: Number(this.teamOverviewInfo.grade),
|
|
|
|
|
- lockingState: this.teamOverviewInfo.parentStatus,
|
|
|
|
|
- lockCommission: this.teamOverviewInfo.lockCommission,
|
|
|
|
|
- zeroDays: this.teamOverviewInfo.zeroDays,
|
|
|
|
|
- fallAmount: this.teamOverviewInfo.fallAmount,
|
|
|
|
|
- }
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: "/pages/my/upgradeTask?info=" + JSON.stringify(params),
|
|
|
|
|
- })
|
|
|
|
|
- break;
|
|
|
|
|
- case 1:
|
|
|
|
|
- let res = await this.$http.post('/partner/submitLiftingRecord', {
|
|
|
|
|
- grade: this.teamOverviewInfo.grade,
|
|
|
|
|
- upgradeType: '1'
|
|
|
|
|
- });
|
|
|
|
|
- if (res.code == '200') {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: res.msg,
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- });
|
|
|
|
|
- this.getList()
|
|
|
|
|
- } else {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: res.msg,
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- break;
|
|
|
|
|
- case 2:
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '申请中',
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- });
|
|
|
|
|
- break;
|
|
|
|
|
- default:
|
|
|
|
|
|
|
+ // let params = {
|
|
|
|
|
+ // grade: Number(this.teamOverviewInfo.grade),
|
|
|
|
|
+ // lockingState: this.teamOverviewInfo.parentStatus,
|
|
|
|
|
+ // lockCommission: this.teamOverviewInfo.lockCommission,
|
|
|
|
|
+ // zeroDays: this.teamOverviewInfo.zeroDays,
|
|
|
|
|
+ // fallAmount: this.teamOverviewInfo.fallAmount,
|
|
|
|
|
+ // }
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: "/pages/my/upgradeTask?info=" + JSON.stringify(params),
|
|
|
|
|
+ // })
|
|
|
|
|
+ if (this.teamOverviewInfo.unlockedStatus) {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ grade: Number(this.teamOverviewInfo.grade),
|
|
|
|
|
+ lockingState: this.teamOverviewInfo.parentStatus,
|
|
|
|
|
+ lockCommission: this.teamOverviewInfo.lockCommission,
|
|
|
|
|
+ zeroDays: this.teamOverviewInfo.zeroDays,
|
|
|
|
|
+ fallAmount: this.teamOverviewInfo.fallAmount,
|
|
|
}
|
|
}
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: "/pages/my/upgradeTask?info=" + JSON.stringify(params),
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '先解锁上一级',
|
|
title: '先解锁上一级',
|
|
@@ -710,6 +759,7 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
//业务来源确定事件
|
|
//业务来源确定事件
|
|
|
promptshowconfirm() {
|
|
promptshowconfirm() {
|
|
|
this.promptshow = false;
|
|
this.promptshow = false;
|
|
@@ -743,11 +793,11 @@
|
|
|
this.getUpgradeTask(info.grade); //角色升级任务
|
|
this.getUpgradeTask(info.grade); //角色升级任务
|
|
|
},
|
|
},
|
|
|
//获取人员数据
|
|
//获取人员数据
|
|
|
- async getList(startTime, endTime) {
|
|
|
|
|
|
|
+ async getList() {
|
|
|
let params = {
|
|
let params = {
|
|
|
type: this.type,
|
|
type: this.type,
|
|
|
- "startTime": startTime + '00:00:00' || '',
|
|
|
|
|
- "endTime": endTime + '23:59:59' || '',
|
|
|
|
|
|
|
+ "startTime": this.startTime ? this.startTime + ' 00:00:00' : '',
|
|
|
|
|
+ "endTime": this.endTime ? this.endTime + ' 23:59:59' : '',
|
|
|
}
|
|
}
|
|
|
let res = await this.$http.post('/newAppPartner/getHomePage', params); //统计数据
|
|
let res = await this.$http.post('/newAppPartner/getHomePage', params); //统计数据
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
@@ -757,7 +807,7 @@
|
|
|
return val;
|
|
return val;
|
|
|
})
|
|
})
|
|
|
res.data.teamOverview.map(val => {
|
|
res.data.teamOverview.map(val => {
|
|
|
- if (val.parentStatus == '2') {
|
|
|
|
|
|
|
+ if (val.parentStatus == '2' || val.lock) {
|
|
|
val.imageSel = '/static/home/imageSel.png'
|
|
val.imageSel = '/static/home/imageSel.png'
|
|
|
val.imageUnSel = '/static/home/imageUnSel.png'
|
|
val.imageUnSel = '/static/home/imageUnSel.png'
|
|
|
}
|
|
}
|
|
@@ -767,14 +817,15 @@
|
|
|
console.log(this.teamOverview);
|
|
console.log(this.teamOverview);
|
|
|
this.current = 0;
|
|
this.current = 0;
|
|
|
this.teamOverviewInfo = res.data.teamOverview[0]; //页面赋值第一条数据
|
|
this.teamOverviewInfo = res.data.teamOverview[0]; //页面赋值第一条数据
|
|
|
|
|
+ console.log(this.teamOverviewInfo);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//钱包
|
|
//钱包
|
|
|
async getAmountList(grade) {
|
|
async getAmountList(grade) {
|
|
|
let params = {
|
|
let params = {
|
|
|
grade: grade,
|
|
grade: grade,
|
|
|
- "startTime": '',
|
|
|
|
|
- "endTime": '',
|
|
|
|
|
|
|
+ "startTime": this.startTime + ' 00:00:00' || '',
|
|
|
|
|
+ "endTime": this.endTime + ' 23:59:59' || '',
|
|
|
}
|
|
}
|
|
|
let res = await this.$http.post('/newAppPartner/getHomeWallet', params); //佣金
|
|
let res = await this.$http.post('/newAppPartner/getHomeWallet', params); //佣金
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|