连接了我的项目,我的抽成
This commit is contained in:
parent
c0c56914b8
commit
e39ba3508e
5
app.json
5
app.json
|
@ -1,12 +1,11 @@
|
|||
{
|
||||
"pages": [
|
||||
"pages/personCenter/mine/mine",
|
||||
"pages/personCenter/withdrawalAccount/withdrawalAccount",
|
||||
"pages/personCenter/bindBankCard/bindBankCard",
|
||||
"pages/loginModule/pwdLogin/pwdLogin",
|
||||
"pages/personCenter/mine/mine",
|
||||
"pages/personCenter/subCommissionSetting/subCommissionSetting",
|
||||
"pages/test/testVideo/testVideo",
|
||||
"pages/personCenter/withdrawal/withdrawal",
|
||||
"pages/personCenter/withdrawalAccount/withdrawalAccount",
|
||||
"pages/personCenter/accountSetting/accountSetting",
|
||||
"pages/personCenter/contactSuper/contactSuper",
|
||||
"pages/personCenter/fundingDetails/fundingDetails",
|
||||
|
|
|
@ -150,6 +150,7 @@ Page({
|
|||
method: 'POST',
|
||||
data: payload,
|
||||
success: res => {
|
||||
console.log('--->',res.data.data);
|
||||
if (res.data.code === 1) {
|
||||
// ← 新增:从返回数据中取出 token
|
||||
const token = res.data.data.token || res.data.data;
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
// pages/personCenter/bindBankCard/bindBankCard.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"usingComponents": {}
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
<view class="flex-col page">
|
||||
<text class="self-center font text">绑定银行卡</text>
|
||||
<text class="self-center font_2 text_2">请绑定持卡人本人的银行卡</text>
|
||||
<view class="flex-col self-stretch group">
|
||||
<view class="self-start group_2">
|
||||
<text class="font_2">持卡人</text>
|
||||
<text class="font_3">*</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-start self-stretch text-wrapper mt-11">
|
||||
<input class="text_3 font" placeholder="请输入持卡人" />
|
||||
</view>
|
||||
<view class="self-start group_3 mt-11">
|
||||
<text class="font_2 text_4">身份证号</text>
|
||||
<text class="font_3">*</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-start self-stretch text-wrapper_2 mt-11">
|
||||
<input class="text_12 font_4" placeholder="请输入持卡人身份证号" />
|
||||
</view>
|
||||
<view class="self-start group_4 mt-11">
|
||||
<text class="font_2">手机号</text>
|
||||
<text class="font_3">*</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-start self-stretch text-wrapper_2 mt-11">
|
||||
<input class="text_1 font_4" placeholder="请输入持卡人绑定的手机号" />
|
||||
</view>
|
||||
<view class="self-start group_5 mt-11">
|
||||
<text class="font_2 text_6">银行卡号</text>
|
||||
<text class="font_3">*</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-start self-stretch text-wrapper_2 mt-11">
|
||||
<input class="text_5 font_4" placeholder="请输入持卡人银行卡号" />
|
||||
</view>
|
||||
<view class="self-start group_6 mt-11">
|
||||
<text class="font_2 text_7">开户银行</text>
|
||||
<text class="font_3">*</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-start self-stretch text-wrapper_2 mt-11">
|
||||
<input class="text_1 font_4" placeholder="请输入开户银行" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-center self-center text-wrapper_3">
|
||||
<text class="font_2 text_8">保存</text>
|
||||
</view>
|
||||
</view>
|
|
@ -1,103 +0,0 @@
|
|||
.mt-11 {
|
||||
margin-top: 20.99rpx;
|
||||
}
|
||||
.page {
|
||||
padding: 77.27rpx 45.8rpx 372.14rpx 45.8rpx;
|
||||
background-color: #ffffff;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.font_2 {
|
||||
font-size: 30.53rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 28.09rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.text_2 {
|
||||
margin-top: 53.49rpx;
|
||||
color: #808080;
|
||||
line-height: 28.4rpx;
|
||||
}
|
||||
.group {
|
||||
margin-top: 84.43rpx;
|
||||
}
|
||||
.group_2 {
|
||||
line-height: 28.09rpx;
|
||||
}
|
||||
.font_3 {
|
||||
font-size: 30.53rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 9.92rpx;
|
||||
color: #ff5733;
|
||||
}
|
||||
.text-wrapper {
|
||||
padding: 26.87rpx 0 23.32rpx;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.text_3 {
|
||||
margin-left: 27.52rpx;
|
||||
}
|
||||
.font {
|
||||
font-size: 34.35rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 31.87rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.text {
|
||||
line-height: 32.25rpx;
|
||||
}
|
||||
.group_3 {
|
||||
line-height: 28.44rpx;
|
||||
}
|
||||
.text_4 {
|
||||
line-height: 28.44rpx;
|
||||
}
|
||||
.text-wrapper_2 {
|
||||
padding: 30.38rpx 0 25.61rpx;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.text_12 {
|
||||
margin-left: 25.8rpx;
|
||||
}
|
||||
.group_4 {
|
||||
line-height: 28.09rpx;
|
||||
}
|
||||
.text_1 {
|
||||
width: 400rpx;
|
||||
margin-left: 27.82rpx;
|
||||
}
|
||||
.group_5 {
|
||||
line-height: 28.21rpx;
|
||||
}
|
||||
.text_6 {
|
||||
line-height: 28.21rpx;
|
||||
}
|
||||
.text_5 {
|
||||
margin-left: 26.74rpx;
|
||||
}
|
||||
.font_4 {
|
||||
font-size: 34.35rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 26.07rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.group_6 {
|
||||
line-height: 28.49rpx;
|
||||
}
|
||||
.text_7 {
|
||||
line-height: 28.49rpx;
|
||||
}
|
||||
.text-wrapper_3 {
|
||||
margin-top: 57.25rpx;
|
||||
padding: 25.84rpx 0 20.5rpx;
|
||||
background-color: #ff8d1a;
|
||||
border-radius: 19.08rpx;
|
||||
width: 248.09rpx;
|
||||
}
|
||||
.text_8 {
|
||||
color: #ffffff;
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
import { baseUrl } from "../../../request";
|
||||
|
||||
// pages/personCenter/commissionSetting/commissionSetting.js
|
||||
Page({
|
||||
|
||||
|
@ -7,44 +9,28 @@ Page({
|
|||
data: {
|
||||
items_1: [null, null, null],
|
||||
items: [null, null],
|
||||
showPopup: false, // 控制弹窗显隐
|
||||
showCommissionRatePop: false,
|
||||
},
|
||||
// 显示弹窗
|
||||
showPopup() {
|
||||
this.setData({
|
||||
showPopup: true
|
||||
});
|
||||
},
|
||||
// 关闭弹窗
|
||||
closePopup() {
|
||||
this.setData({
|
||||
showPopup: false
|
||||
});
|
||||
},
|
||||
// 处理抽佣比例提交
|
||||
handleCommissionSubmit(e) {
|
||||
const { commissionRate } = e.detail;
|
||||
console.log(`设置的抽佣比例是:${commissionRate}%`);
|
||||
// 你可以在这里保存提交的数据,或者执行其他操作
|
||||
this.closePopup(); // 确认后关闭弹窗
|
||||
},
|
||||
// 点击“设价”按钮,显示弹窗
|
||||
showCommissionRatePop() {
|
||||
this.setData({ showCommissionRatePop: true });
|
||||
projectList: []
|
||||
},
|
||||
|
||||
// 关闭弹窗(包括遮罩点击和取消按钮)
|
||||
closeCommissionRatePop() {
|
||||
this.setData({ showCommissionRatePop: false });
|
||||
// 获取项目列表
|
||||
getProjectList() {
|
||||
wx.request({
|
||||
url: baseUrl + '/projectCommission/query/commission ',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
},
|
||||
success: res => {
|
||||
console.log('项目列表-->',res.data);
|
||||
if (res.data.code === 1) {
|
||||
this.setData({
|
||||
projectList: res.data.data
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 确认按钮回调
|
||||
handleCommissionRateConfirm(e) {
|
||||
const { agentPrice, commissionRate, pricingMethod } = e.detail;
|
||||
console.log('设置数据:', agentPrice, commissionRate, pricingMethod);
|
||||
this.closeCommissionRatePop();
|
||||
},
|
||||
gotoSubCommission() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/personCenter/subCommissionSetting/subCommissionSetting',
|
||||
|
@ -54,7 +40,7 @@ Page({
|
|||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
this.getProjectList()
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
{
|
||||
"usingComponents": {
|
||||
"commissionPop": "/pages/personCenter/component/commissionPop/commissionPop",
|
||||
"commissionRatePop": "/pages/personCenter/component/commissionRatePop/commissionRatePop"
|
||||
}
|
||||
"usingComponents": {}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 182 B |
Binary file not shown.
Before Width: | Height: | Size: 603 B |
|
@ -1,32 +1,24 @@
|
|||
// pages/personCenter/component/InvitationCodePop/InvitationCodePop.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
// 接收传递进来的二维码图片路径
|
||||
show: { // 控制显示/隐藏
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
qrcode: {
|
||||
type: String,
|
||||
value: ""
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
closeIcon: "./images/cha.png", // 关闭按钮的图标
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
// 关闭弹窗
|
||||
close() {
|
||||
// 触发关闭弹窗事件
|
||||
this.triggerEvent('close');
|
||||
},
|
||||
|
||||
// 预览二维码
|
||||
previewQrcode() {
|
||||
wx.previewImage({
|
||||
urls: [this.data.qrcode], // 预览图片
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
|
@ -1,57 +1,24 @@
|
|||
// pages/personCenter/component/commissionPop/commissionPop.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
commissionRate: "", // 用户输入的抽佣比例
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
// 获取用户输入的比例
|
||||
handleInput(e) {
|
||||
this.setData({
|
||||
commissionRate: e.detail.value,
|
||||
});
|
||||
},
|
||||
|
||||
// 提交设置
|
||||
submit() {
|
||||
const rate = parseFloat(this.data.commissionRate);
|
||||
|
||||
if (isNaN(rate) || rate <= 0 || rate > 5) {
|
||||
wx.showToast({
|
||||
title: `请输入有效的比例,最大为 5%`,
|
||||
icon: 'none',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
// 触发父组件的事件,将设置的比例传递出去
|
||||
this.triggerEvent('submit', {
|
||||
commissionRate: rate,
|
||||
});
|
||||
|
||||
// 关闭弹窗
|
||||
this.triggerEvent('close');
|
||||
},
|
||||
|
||||
// 关闭弹窗
|
||||
close() {
|
||||
this.triggerEvent('close');
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
|
@ -1,28 +1,24 @@
|
|||
// pages/personCenter/component/commissionRatePop/commissionRatePop.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
show: { // 控制显示/隐藏
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
close() {
|
||||
this.triggerEvent('close');
|
||||
},
|
||||
cancel() {
|
||||
this.triggerEvent('cancel');
|
||||
},
|
||||
confirm() {
|
||||
// 触发confirm事件带数据
|
||||
this.triggerEvent('confirm', {/*数据*/});
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
})
|
|
@ -16,22 +16,7 @@ Page({
|
|||
currentBalance: "", // 当前余额
|
||||
withdrawalAmount: "", // 提现中的余额
|
||||
withdrawnAmount: "", // 已提现的余额
|
||||
totalIncome:"", // 累计收入
|
||||
showPopup: false, // 控制弹窗显示与否
|
||||
qrcode: "https://img.picui.cn/free/2025/05/29/6837c53582068.gif", // 设置二维码图片的路径
|
||||
},
|
||||
// 点击二维码时,显示弹窗
|
||||
showPromoPopup() {
|
||||
this.setData({
|
||||
showPopup: true
|
||||
});
|
||||
},
|
||||
|
||||
// 关闭弹窗
|
||||
closePopup() {
|
||||
this.setData({
|
||||
showPopup: false
|
||||
});
|
||||
totalIncome:"" // 累计收入
|
||||
},
|
||||
myteam(){
|
||||
wx.navigateTo({
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<view class="flex-col relative section">
|
||||
<view class="flex-row justify-between items-center group">
|
||||
<view class="flex-col">
|
||||
<text class="self-start font text">000000</text>
|
||||
<text class="self-start font text">{{ nickName }}</text>
|
||||
<view class="flex-row items-center self-stretch group_2 mt-9">
|
||||
<image
|
||||
class="image_3"
|
||||
|
|
|
@ -7,24 +7,6 @@ Page({
|
|||
data: {
|
||||
items_1: [null, null, null],
|
||||
items: [null, null],
|
||||
showCommissionRatePop: false,
|
||||
},
|
||||
|
||||
// 点击“设价”按钮,显示弹窗
|
||||
showCommissionRatePop() {
|
||||
this.setData({ showCommissionRatePop: true });
|
||||
},
|
||||
|
||||
// 关闭弹窗(包括遮罩点击和取消按钮)
|
||||
closeCommissionRatePop() {
|
||||
this.setData({ showCommissionRatePop: false });
|
||||
},
|
||||
|
||||
// 确认按钮回调
|
||||
handleCommissionRateConfirm(e) {
|
||||
const { agentPrice, commissionRate, pricingMethod } = e.detail;
|
||||
console.log('设置数据:', agentPrice, commissionRate, pricingMethod);
|
||||
this.closeCommissionRatePop();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,11 +7,7 @@ Page({
|
|||
data: {
|
||||
|
||||
},
|
||||
gotoEditBankCardInfo() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/personCenter/bindBankCard/bindBankCard',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user