|
|
@ -6,13 +6,13 @@ |
|
|
<view class="content-balance"> |
|
|
<view class="content-balance"> |
|
|
<text class="balance-text">累计返佣(元)</text> |
|
|
<text class="balance-text">累计返佣(元)</text> |
|
|
<view class="balance-number"> |
|
|
<view class="balance-number"> |
|
|
<text style="font-size: 40px;">{{allrebateAmount}}</text> |
|
|
<text style="font-size: 40px;">{{allrebateAmount?allrebateAmount:'0'}}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="content-balance"> |
|
|
<view class="content-balance"> |
|
|
<text class="balance-text">返佣余额(元)</text> |
|
|
<text class="balance-text">返佣余额(元)</text> |
|
|
<view class="balance-number"> |
|
|
<view class="balance-number"> |
|
|
<text style="font-size: 40px;">{{rebateAmount}}</text> |
|
|
<text style="font-size: 40px;">{{rebateAmount?rebateAmount:'0'}}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -23,19 +23,19 @@ |
|
|
</view> |
|
|
</view> |
|
|
</uni-card> |
|
|
</uni-card> |
|
|
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button" |
|
|
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button" |
|
|
activeColor="#0072E3"></uni-segmented-control> |
|
|
activeColor="#5fd9ee"></uni-segmented-control> |
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<uni-card title="返佣记录" v-show="current === 0"> |
|
|
<uni-card title="返佣记录" v-show="current === 0"> |
|
|
<ul class="inventoryList"> |
|
|
<ul class="inventoryList"> |
|
|
<li v-for="(item ,index) in commissionList" :key="index" style="margin-bottom:20rpx;"> |
|
|
<li v-for="(item ,index) in commissionList" :key="index" style="margin-bottom:20rpx;"> |
|
|
<uni-card :title="'返佣日期:'+ item.createTime" :sub-title="'返佣后账户余额:'+ item.shopAfterDepoBal" @tap=""> |
|
|
<uni-card :title="'返佣日期:'+ item.createTime" :sub-title="'返佣后账户余额:'+ item.shopAfterDepoBal" @tap=""> |
|
|
<view class="uni-body" style="margin-bottom: 5px;padding-bottom: 10rpx;border-bottom:1px solid #eee;"> |
|
|
<view class="uni-body" style="margin-bottom: 5px;padding-bottom: 10rpx;border-bottom:1px solid #eee;"> |
|
|
<view class="cardText">物流返佣:{{item.companyName}}</view> |
|
|
<view class="cardText">物流返佣:{{item.companyName?item.companyName:'暂无'}}</view> |
|
|
<view class="cardText">返佣金额:{{item.companyRebateAmount}}元</view> |
|
|
<view class="cardText">返佣金额:{{item.companyRebateAmount?item.companyRebateAmount:'暂无'}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-body"> |
|
|
<view class="uni-body"> |
|
|
<view class="cardText">拉包返佣:{{item.workerName}}</view> |
|
|
<view class="cardText">拉包返佣:{{item.workerName?item.workerName:'暂无'}}</view> |
|
|
<view class="cardText">返佣金额:{{item.workerRebateAmount}}元</view> |
|
|
<view class="cardText">返佣金额:{{item.workerRebateAmount?item.workerRebateAmount:'暂无'}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-card> |
|
|
</uni-card> |
|
|
</li> |
|
|
</li> |
|
|
@ -47,10 +47,10 @@ |
|
|
<uni-card :title="'返佣日期:'+ item.registerShopTime" :sub-title="'返佣后账户余额:'+ item.shopAfterRebateAmount" @tap=""> |
|
|
<uni-card :title="'返佣日期:'+ item.registerShopTime" :sub-title="'返佣后账户余额:'+ item.shopAfterRebateAmount" @tap=""> |
|
|
<view class="uni-body" style="margin-bottom: 5px;padding-bottom: 10rpx;border-bottom:1px solid #eee;"> |
|
|
<view class="uni-body" style="margin-bottom: 5px;padding-bottom: 10rpx;border-bottom:1px solid #eee;"> |
|
|
<view class="cardText">返佣状态:{{item.isOpen == 1?'已返佣':'未返佣'}}</view> |
|
|
<view class="cardText">返佣状态:{{item.isOpen == 1?'已返佣':'未返佣'}}</view> |
|
|
<view class="cardText">返佣金额:{{item.shopRebateAmount}}元</view> |
|
|
<view class="cardText">返佣金额:{{item.shopRebateAmount?item.shopRebateAmount:'暂无'}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-body"> |
|
|
<view class="uni-body"> |
|
|
<view class="cardText">邀请店铺名:{{item.registerShopName}}</view> |
|
|
<view class="cardText">邀请店铺名:{{item.registerShopName?item.registerShopName:'暂无'}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-card> |
|
|
</uni-card> |
|
|
</li> |
|
|
</li> |
|
|
@ -128,6 +128,14 @@ |
|
|
this.status = 'nomore'; |
|
|
this.status = 'nomore'; |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
this.commissionList = res.result.records |
|
|
this.commissionList = res.result.records |
|
|
|
|
|
for(let i=0;i<this.commissionList.length;i++){ |
|
|
|
|
|
if(this.commissionList[i].shopAfterDepoBal == undefined){ |
|
|
|
|
|
this.commissionList[i].shopAfterDepoBal = '暂无' |
|
|
|
|
|
} |
|
|
|
|
|
if(this.commissionList[i].createTime == null){ |
|
|
|
|
|
this.commissionList[i].createTime = '暂无' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|