|
|
@ -131,7 +131,7 @@ |
|
|
|
累计佣金已结算金额<text>{{infor.commissionData.settleTotalMoney}}</text> |
|
|
|
累计佣金已结算金额<text>{{infor.commissionData.settleTotalMoney}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="item"> |
|
|
|
<view class="item"> |
|
|
|
累计佣金结算金额<text>{{infor.commissionData.nosettleTotalMoney}}</text> |
|
|
|
累计佣金结算金额<text>{{infor.commissionData.noSettleTotalMoney}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -157,38 +157,15 @@ |
|
|
|
endTime: '', |
|
|
|
endTime: '', |
|
|
|
recentDate: '', |
|
|
|
recentDate: '', |
|
|
|
infor: { |
|
|
|
infor: { |
|
|
|
orderData: { |
|
|
|
orderData: {}, |
|
|
|
orderMoney: 135, |
|
|
|
refundData: {}, |
|
|
|
orderCount: 362, |
|
|
|
userData: {}, |
|
|
|
orderPayUser: 324, |
|
|
|
commissionData: {} |
|
|
|
orderCostMoney: 475, |
|
|
|
|
|
|
|
orderInterest: 50, |
|
|
|
|
|
|
|
payMemberCount: 60, |
|
|
|
|
|
|
|
payDealerCount: 83, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
refundData: { |
|
|
|
|
|
|
|
refundCount: 350, |
|
|
|
|
|
|
|
refundTotalMoney: 240, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
userData: { |
|
|
|
|
|
|
|
visitorCount: 240, |
|
|
|
|
|
|
|
viewCount: 750, |
|
|
|
|
|
|
|
newUserCount: 120, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
commissionData: { |
|
|
|
|
|
|
|
settleTotalMoney: 290, |
|
|
|
|
|
|
|
nosettleTotalMoney: 345, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
|
this.getNumberPages() |
|
|
|
this.getNumberPages() |
|
|
|
var yesterday = this.getDay(-1) |
|
|
|
|
|
|
|
var th_7 = this.getDay(-7); |
|
|
|
|
|
|
|
var th_15 = this.getDay(-15) |
|
|
|
|
|
|
|
var th_30 = this.getDay(-30) |
|
|
|
|
|
|
|
console.log(yesterday, th_7, th_15, th_30) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
@ -207,10 +184,12 @@ |
|
|
|
if (this.dateIndex == 3) { |
|
|
|
if (this.dateIndex == 3) { |
|
|
|
day = -30 |
|
|
|
day = -30 |
|
|
|
} |
|
|
|
} |
|
|
|
this.recentDate = this.getDay(day); |
|
|
|
this.startTime = this.getDay(day); |
|
|
|
console.log(this.recentDate) |
|
|
|
this.endTime = this.getDay(0) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
quantityFilter() { |
|
|
|
|
|
|
|
this.getNumberPages() |
|
|
|
}, |
|
|
|
}, |
|
|
|
quantityFilter() {}, |
|
|
|
|
|
|
|
getTime(e) { |
|
|
|
getTime(e) { |
|
|
|
this.startTime = e.startDate; |
|
|
|
this.startTime = e.startDate; |
|
|
|
this.endTime = e.endDate; |
|
|
|
this.endTime = e.endDate; |
|
|
@ -224,10 +203,12 @@ |
|
|
|
getNumberPages() { |
|
|
|
getNumberPages() { |
|
|
|
const that = this |
|
|
|
const that = this |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
newFunApi.addressList({ |
|
|
|
newFunApi.statistics({ |
|
|
|
user_id: 10006 |
|
|
|
startDate: this.startTime, |
|
|
|
|
|
|
|
endDate: this.endTime |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(result => { |
|
|
|
.then(result => { |
|
|
|
|
|
|
|
this.infor = result.data.data |
|
|
|
console.log(result) |
|
|
|
console.log(result) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(reject) |
|
|
|
.catch(reject) |
|
|
@ -252,20 +233,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
return m; |
|
|
|
return m; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// getDate(type) { |
|
|
|
|
|
|
|
// const date = new Date(); |
|
|
|
|
|
|
|
// let year = date.getFullYear(); |
|
|
|
|
|
|
|
// let month = date.getMonth() + 1; |
|
|
|
|
|
|
|
// let day = date.getDate(); |
|
|
|
|
|
|
|
// if (type === 'start') { |
|
|
|
|
|
|
|
// year = year - 60; |
|
|
|
|
|
|
|
// } else if (type === 'end') { |
|
|
|
|
|
|
|
// year = year + 2; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// month = month > 9 ? month : '0' + month; |
|
|
|
|
|
|
|
// day = day > 9 ? day : '0' + day; |
|
|
|
|
|
|
|
// return `${year}-${month}-${day}`; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|