添加的功能:查看推广码对应的结算记录

This commit is contained in:
2025-06-09 19:08:32 +08:00
parent 38ba528f76
commit c0c6b5b61a
23 changed files with 131 additions and 86 deletions

View File

@ -1,8 +1,17 @@
import { baseUrl } from "../../../request";
import { globalImgUrl } from '../../../request';
// pages/personCenter/commissionSetting/commissionSetting.js
Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getProjectList()
this.getFixedRate()
},
/**
* 页面的初始数据
*/
@ -19,6 +28,7 @@ Page({
nowProjectDetailName: '', // 现在的‘项目详细名称’,用于传给弹窗
isSub: false, // 用于区分是项目抽佣页面还是单个用户抽佣页面
fixedRate: 0, // 固定抽佣——一键设置
globalImgUrl,
},
// 获取项目列表
@ -116,13 +126,6 @@ Page({
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getProjectList()
this.getFixedRate()
},
/**
* 生命周期函数--监听页面初次渲染完成

View File

@ -22,7 +22,7 @@
<view class="flex-row flex-1 self-center">
<image
class="shrink-0 image_3"
src="{{ item.projectImage }}"
src="{{ globalImgUrl + item.projectImage }}"
/>
<view class="flex-col items-start flex-1 group_3 ml-13">
<text class="font">{{ item.projectName }}</text>

View File

@ -57,11 +57,12 @@ Page({
})
}
if (res.data.code === 1) {
let result = res.data.data
this.setData({
currentBalance: res.data.data.currentBalance,
withdrawalAmount: res.data.data.withdrawalAmount,
withdrawnAmount: res.data.data.withdrawnAmount,
fundsChangeVOList: res.data.data.fundsChangeVOList
currentBalance: result.currentBalance,
withdrawalAmount: result.withdrawalAmount,
withdrawnAmount: result.withdrawnAmount,
fundsChangeVOList: result.fundsChangeVOList
});
}
}

View File

@ -9,11 +9,11 @@
<view class="flex-row self-stretch group_2">
<view class="flex-row items-baseline">
<text class="font text_4">提现中</text>
<text class="ml-8 font_2">{{withdrawalAmount}}</text> <!-- 提现中的余额 -->
<text class="ml-8 font_2">{{withdrawalAmount}}</text> <!-- 提现中的余额 -->
</view>
<view class="flex-row items-baseline ml-33">
<text class="font text_5">已提现</text>
<text class="font_2 ml-7">{{withdrawnAmount}}</text> <!-- 已提现金额 -->
<text class="font_2 ml-7">{{withdrawnAmount}}</text> <!-- 已提现金额 -->
</view>
</view>
</view>
@ -42,11 +42,11 @@
<view class="flex-col list-item mt-13" wx:for="{{fundsChangeVOList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="flex-row">
<text class="flex-1 font_4">{{item.projectName}}</text> <!-- 项目名称 -->
<text class="shrink-0 self-start font_5 text_9 ml-21">{{item.changeAmount}}</text> <!-- 变动金额 -->
<text class="shrink-0 self-start font_5 text_9 ml-21">{{item.changeAmount}}</text> <!-- 变动金额 -->
</view>
<view class="mt-12 flex-row justify-between items-center">
<text class="font_6 text_10">{{item.createTime}}</text> <!-- 创建时间 -->
<text class="font_3">{{item.currentAmount}}</text> <!-- 当前金额 -->
<text class="font_3">{{item.currentAmount}}</text> <!-- 当前金额 -->
</view>
</view>
</view>

View File

@ -62,6 +62,7 @@
line-height: 24.49rpx;
}
.section_3 {
position: relative;
padding: 40.14rpx 31.69rpx 25.61rpx 34.52rpx;
background-color: #f5f5f5;
border-radius: 10.05rpx;
@ -101,7 +102,8 @@
line-height: 25.54rpx;
}
.group_2 {
margin-left: 135.81rpx;
position: absolute;
right: 40rpx;
width: 75.75rpx;
}
.image_2 {

View File

@ -24,12 +24,13 @@ Page({
},
success: res => {
console.log('团队成员信息---->',res.data.data);
let result = res.data.data
this.setData({
directAgentSize: res.data.data.directAgentSize,
teamSize: res.data.data.teamSize,
teamEarnings: res.data.data.teamEarnings,
invitationCode: res.data.data.invitationCode,
userMemberInfoVOList: res.data.data.userMemberInfoVOList
directAgentSize: result.directAgentSize,
teamSize: result.teamSize,
teamEarnings: result.teamEarnings,
invitationCode: result.invitationCode,
userMemberInfoVOList: result.userMemberInfoVOList
})
}
})

View File

@ -131,7 +131,7 @@
height: 35.63rpx;
}
.text_8 {
color: #8c8c8c;
color: #323232;
line-height: 20.96rpx;
}
.list {