|
@@ -4,11 +4,11 @@
|
|
|
<view class="">
|
|
|
<u-subsection mode="subsection" :list="list2" :current="current" @change="change"
|
|
|
keyName="label"></u-subsection>
|
|
|
- <u-checkbox-group v-model="checkboxValue1" placement="column" @change="checkboxChange">
|
|
|
+ <u-checkbox-group v-model=" arralylist" placement="column" @change="checkboxChange">
|
|
|
<view class="yong" v-if="current==0" style="margin-top: 20rpx;" v-for="(item,index) in list"
|
|
|
:key="index">
|
|
|
<view class="u-flex">
|
|
|
- <u-checkbox :customStyle="{marginBottom: '8px'}" :name="item.id">
|
|
|
+ <u-checkbox :customStyle="{marginBottom: '8px'}" :name="index">
|
|
|
</u-checkbox>
|
|
|
<view class="" style="flex: 1;">
|
|
|
<view class="">
|
|
@@ -48,11 +48,13 @@
|
|
|
</view>
|
|
|
<view class="concent">
|
|
|
<text class="left">offer时间</text>
|
|
|
- <text class="right">{{item.order.offered_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
+ <text
|
|
|
+ class="right">{{item.order.offered_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
</view>
|
|
|
<view class="concent">
|
|
|
<text class="left">过保时间</text>
|
|
|
- <text class="right">{{item.order.over_protected_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
+ <text
|
|
|
+ class="right">{{item.order.over_protected_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -63,20 +65,21 @@
|
|
|
<text>推荐时间:{{item.order.recommended_time}}</text>
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
- <text v-if="item.is_confirm==1">回款时间:{{item.confirm_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
+ <text
|
|
|
+ v-if="item.is_confirm==1">回款时间:{{item.confirm_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
<text v-if="item.is_confirm==0">回款时间:未回款</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-checkbox-group>
|
|
|
- <u-checkbox-group v-model="checkboxValue1" placement="column" @change="checkboxChange">
|
|
|
+ <u-checkbox-group v-model="arralylist" placement="column" @change="checkboxChange">
|
|
|
<view class="yong" v-if="current == 1" style="margin-top: 20rpx;" v-for="(item,index) in list"
|
|
|
:key="index">
|
|
|
<view class="u-flex">
|
|
|
<view class="" style="flex: 1;">
|
|
|
<view class="u-flex u-row-between">
|
|
|
<view class="order">
|
|
|
- 订单编号 287910109281003
|
|
|
+ 订单编号:{{item.order.order_no}}
|
|
|
</view>
|
|
|
<view class="deposit">
|
|
|
未提现
|
|
@@ -84,36 +87,37 @@
|
|
|
</view>
|
|
|
<view class="u-flex u-row-between dan" style="margin-top: 18rpx;">
|
|
|
<view class="u-flex">
|
|
|
- <u-checkbox :name="item.name">
|
|
|
+ <u-checkbox :name="-2">
|
|
|
</u-checkbox>
|
|
|
- <view class="lietou">猎头成单</view>
|
|
|
+ <view class="lietou">{{item.type_name}}</view>
|
|
|
</view>
|
|
|
<view class="red">
|
|
|
<text style="24rpx">¥</text>
|
|
|
- <text style="32rpx">200.00</text>
|
|
|
+ <text style="32rpx">{{item.amount}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="u-flex u-row-between" style="margin-top:26rpx;">
|
|
|
<text class="date">邀请日期 2023.03.12 12:4</text>
|
|
|
- <text class="date1">回款时间:2023.03.12 23:1</text>
|
|
|
+ <text class="date1"
|
|
|
+ v-if="item.is_confirm==1">回款时间:{{item.confirm_time.slice(0,-3).replaceAll("-",".")}}</text>
|
|
|
+ <text v-if="item.is_confirm==0">回款时间:未回款</text>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</u-checkbox-group>
|
|
|
</view>
|
|
|
- <!-- <view style="height: 88vh;justify-content: center;" class="u-flex" v-if="list.length == 0 ">
|
|
|
+ <!-- <view style="height: 88vh;justify-content: center;" class="u-flex" v-if="list.length == 0 ">
|
|
|
<u-empty text="暂无数据" mode="list"></u-empty>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
<view class="" style="height: 186rpx;background: #F3F3F3;"></view>
|
|
|
<!-- <view class="safe-area-inset-bottom"></view> -->
|
|
|
<view class="bottom-end">
|
|
|
- <u-checkbox-group @change="arraly" v-model="arralylist">
|
|
|
+ <u-checkbox-group @change="arraly" v-model="checkboxValue1">
|
|
|
<view class="u-flex u-row-between" style="width: 100%;">
|
|
|
<view class="u-flex">
|
|
|
- <u-checkbox name=1>
|
|
|
+ <u-checkbox :name="-2">
|
|
|
</u-checkbox>
|
|
|
<view class="">全选</view>
|
|
|
</view>
|
|
@@ -122,7 +126,7 @@
|
|
|
<text class="jine">金额</text>
|
|
|
<text class="red" style="font-size: 24rpx;margin-left: 12rpx;">¥</text>
|
|
|
<text class="red" style="font-size: 36rpx;">{{alla}}</text>
|
|
|
- <text class="red" style="font-size: 24rpx;">.{{00}}</text>
|
|
|
+ <text class="red" style="font-size: 24rpx;">.00</text>
|
|
|
</view>
|
|
|
<view class="btn" style="margin-left: 20rpx;">
|
|
|
立即提现
|
|
@@ -152,9 +156,10 @@
|
|
|
showtime: false,
|
|
|
current: 0,
|
|
|
date: "",
|
|
|
- all:"",
|
|
|
- moneylist:[],
|
|
|
+ all: "",
|
|
|
+ moneylist: [],
|
|
|
list: [],
|
|
|
+ allist: [],
|
|
|
list2: [{
|
|
|
label: '订单佣金',
|
|
|
// 其他属性值
|
|
@@ -163,7 +168,7 @@
|
|
|
label: '邀请佣金',
|
|
|
source_type: "invite"
|
|
|
}],
|
|
|
- alllll:0,
|
|
|
+ alllll: 0,
|
|
|
source_type: "order",
|
|
|
label: "订单佣金",
|
|
|
columns: [
|
|
@@ -187,6 +192,7 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ console.log(options);
|
|
|
this.source_type = options.source_type
|
|
|
if (this.source_type == "order") {
|
|
|
this.label = "订单佣金"
|
|
@@ -196,53 +202,58 @@
|
|
|
this.commission_list()
|
|
|
},
|
|
|
computed: {
|
|
|
- alla(){
|
|
|
- // var all = ""
|
|
|
- return this.alllll+=Number(this.all)
|
|
|
+ alla() {
|
|
|
+ var arr = 0
|
|
|
+ if (this.arralylist.length == this.allist.length) {
|
|
|
+ this.checkboxValue1 = [-2]
|
|
|
+ } else {
|
|
|
+ this.checkboxValue1 = []
|
|
|
+ }
|
|
|
+ this.arralylist.forEach(item => {
|
|
|
+ arr += Number(this.list[item].amount)
|
|
|
+ })
|
|
|
+ return arr
|
|
|
},
|
|
|
bgImage() {
|
|
|
return `url(${require('@/static/images/juxing.png')}) 100% 100%`
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ ally() {
|
|
|
+ this.list.forEach((item, index) => {
|
|
|
+ this.allist.push(index)
|
|
|
+ })
|
|
|
+ },
|
|
|
arraly(n) {
|
|
|
+ console.log(n);
|
|
|
if (n.length > 0) {
|
|
|
- this.list.forEach(item=>{
|
|
|
- this.checkboxValue1.push(item.id)
|
|
|
- this.moneylist.push(item.amount)
|
|
|
- this.arralylist = this.checkboxValue1
|
|
|
- this.sum()
|
|
|
+ this.list.forEach((item, index) => {
|
|
|
+ this.checkboxValue1.push(index)
|
|
|
})
|
|
|
- if(this.arralylist!=this.checkboxValue1){
|
|
|
- n.length = 0
|
|
|
- }
|
|
|
+ this.arralylist = this.checkboxValue1
|
|
|
+ console.log(this.arralylist);
|
|
|
}
|
|
|
if (n.length == 0) {
|
|
|
- this.checkboxValue1 = []
|
|
|
- this.moneylist = []
|
|
|
- this.sum()
|
|
|
+ this.arralylist = []
|
|
|
}
|
|
|
},
|
|
|
checkboxChange(n) {
|
|
|
this.arralylist = n
|
|
|
- this.list.forEach(item=>{
|
|
|
- if(n[n.length-1] == item.id){
|
|
|
- this.moneylist.push(item.amount)
|
|
|
- }
|
|
|
- })
|
|
|
- this.sum()
|
|
|
+ if (this.arralylist == this.allist) {
|
|
|
+ this.name1 = -2
|
|
|
+ }
|
|
|
},
|
|
|
return1() {
|
|
|
uni.navigateBack()
|
|
|
},
|
|
|
- sum(){
|
|
|
- this.moneylist.forEach(item=>{
|
|
|
- this.all += Number(item)
|
|
|
- })
|
|
|
- console.log(this.all);
|
|
|
- },
|
|
|
change(e) {
|
|
|
this.current = e
|
|
|
+ if (e == 0) {
|
|
|
+ this.source_type = "order"
|
|
|
+ } else {
|
|
|
+ this.source_type = "invite"
|
|
|
+ }
|
|
|
+ this.commission_list()
|
|
|
},
|
|
|
enter(e) {
|
|
|
this.label = e.value[0].label
|
|
@@ -270,6 +281,7 @@
|
|
|
status: "unapplied"
|
|
|
}).then(res => {
|
|
|
this.list = res.data.data
|
|
|
+ this.ally()
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -515,7 +527,7 @@
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
font-weight: 400;
|
|
|
color: #555555;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -542,6 +554,7 @@
|
|
|
}
|
|
|
|
|
|
.left {
|
|
|
+
|
|
|
// width: 300rpx;
|
|
|
// overflow: hidden;
|
|
|
// text-overflow: ellipsis;
|