|
@@ -18,6 +18,16 @@
|
|
|
<view>我的推广人数</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="flex buttom-box">
|
|
|
+ <view class="buttom" @click="tabClick(0)">
|
|
|
+ <view class="money">{{all || 0}}</view>
|
|
|
+ <text class="text" :class="{ current: tabCurrentIndex === 0 }">一级推广</text>
|
|
|
+ </view>
|
|
|
+ <view class="buttom" @click="tabClick(1)">
|
|
|
+ <view class="money">{{totalLevel || 0}}</view>
|
|
|
+ <text class="text" :class="{ current: tabCurrentIndex === 1 }">二级推广</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<swiper :current="tabCurrentIndex" :style="{ height: maxheight }" class="swiper-box" duration="300"
|
|
|
@change="changeTab">
|
|
|
<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
|
|
@@ -90,9 +100,18 @@
|
|
|
orderList: [],
|
|
|
page: 1, //当前页数
|
|
|
limit: 10 //每次信息条数
|
|
|
+ },
|
|
|
+ {
|
|
|
+ state: 1,
|
|
|
+ text: '间接推荐',
|
|
|
+ loadingType: 'more',
|
|
|
+ orderList: [],
|
|
|
+ page: 1, //当前页数
|
|
|
+ limit: 10 //每次信息条数
|
|
|
}],
|
|
|
all: '',
|
|
|
- list: ''
|
|
|
+ list: '',
|
|
|
+ totalLevel: ''
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -132,13 +151,15 @@
|
|
|
navItem.loadingType = 'loading';
|
|
|
myspread({
|
|
|
page: navItem.page,
|
|
|
- limit: navItem.limit
|
|
|
+ limit: navItem.limit,
|
|
|
+ grade:state
|
|
|
})
|
|
|
.then(({
|
|
|
data
|
|
|
}) => {
|
|
|
console.log(data);
|
|
|
this.all = data.total;
|
|
|
+ this.totalLevel = data.totalLevel
|
|
|
if (data.list.length > 0) {
|
|
|
this.list = data.list;
|
|
|
navItem.orderList = navItem.orderList.concat(data.list);
|
|
@@ -389,4 +410,73 @@
|
|
|
background: #dddddd;
|
|
|
}
|
|
|
}
|
|
|
+ .navbar {
|
|
|
+ margin-top: 20rpx;
|
|
|
+ display: flex;
|
|
|
+ height: 88rpx;
|
|
|
+ padding: 0 5px;
|
|
|
+ background: #fff;
|
|
|
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
|
|
|
+ position: relative;
|
|
|
+ z-index: 10;
|
|
|
+
|
|
|
+ .nav-item {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ height: 100%;
|
|
|
+ font-size: 15px;
|
|
|
+ color: #999999;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ &.current {
|
|
|
+ color: #000;
|
|
|
+
|
|
|
+ &:after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ bottom: 0;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ width: 44px;
|
|
|
+ height: 0;
|
|
|
+ border-bottom: 2px solid #fe5b38;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .buttom-box {
|
|
|
+ position: relative;
|
|
|
+ background-color: #ffffff;
|
|
|
+ text-align: center;
|
|
|
+ padding: 30rpx 0;
|
|
|
+ .buttom {
|
|
|
+ flex-grow: 1;
|
|
|
+ }
|
|
|
+ .money{
|
|
|
+
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #ffc11d;
|
|
|
+ }
|
|
|
+ .text {
|
|
|
+ padding-bottom: 26rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #666666;
|
|
|
+ &.current {
|
|
|
+ border-bottom: 2px solid #ffc11d;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .icon {
|
|
|
+ height: 50rpx;
|
|
|
+ width: 48rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ .icon-img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|