diff --git a/app.json b/app.json index 1216b58..a4805b6 100644 --- a/app.json +++ b/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", diff --git a/pages/loginModule/pwdLogin/pwdLogin.js b/pages/loginModule/pwdLogin/pwdLogin.js index b2ffd96..0d48b0d 100644 --- a/pages/loginModule/pwdLogin/pwdLogin.js +++ b/pages/loginModule/pwdLogin/pwdLogin.js @@ -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; diff --git a/pages/personCenter/bindBankCard/bindBankCard.js b/pages/personCenter/bindBankCard/bindBankCard.js deleted file mode 100644 index ff883dc..0000000 --- a/pages/personCenter/bindBankCard/bindBankCard.js +++ /dev/null @@ -1,66 +0,0 @@ -// pages/personCenter/bindBankCard/bindBankCard.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - - } -}) \ No newline at end of file diff --git a/pages/personCenter/bindBankCard/bindBankCard.json b/pages/personCenter/bindBankCard/bindBankCard.json deleted file mode 100644 index 8835af0..0000000 --- a/pages/personCenter/bindBankCard/bindBankCard.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/personCenter/bindBankCard/bindBankCard.wxml b/pages/personCenter/bindBankCard/bindBankCard.wxml deleted file mode 100644 index a18e364..0000000 --- a/pages/personCenter/bindBankCard/bindBankCard.wxml +++ /dev/null @@ -1,44 +0,0 @@ - - 绑定银行卡 - 请绑定持卡人本人的银行卡 - - - 持卡人 - * - - - - - - 身份证号 - * - - - - - - 手机号 - * - - - - - - 银行卡号 - * - - - - - - 开户银行 - * - - - - - - - 保存 - - \ No newline at end of file diff --git a/pages/personCenter/bindBankCard/bindBankCard.wxss b/pages/personCenter/bindBankCard/bindBankCard.wxss deleted file mode 100644 index 189d490..0000000 --- a/pages/personCenter/bindBankCard/bindBankCard.wxss +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/pages/personCenter/commissionSetting/commissionSetting.js b/pages/personCenter/commissionSetting/commissionSetting.js index a9a4ba3..9f8ebbb 100644 --- a/pages/personCenter/commissionSetting/commissionSetting.js +++ b/pages/personCenter/commissionSetting/commissionSetting.js @@ -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() }, /** diff --git a/pages/personCenter/commissionSetting/commissionSetting.json b/pages/personCenter/commissionSetting/commissionSetting.json index 2969084..8835af0 100644 --- a/pages/personCenter/commissionSetting/commissionSetting.json +++ b/pages/personCenter/commissionSetting/commissionSetting.json @@ -1,6 +1,3 @@ { - "usingComponents": { - "commissionPop": "/pages/personCenter/component/commissionPop/commissionPop", - "commissionRatePop": "/pages/personCenter/component/commissionRatePop/commissionRatePop" - } + "usingComponents": {} } \ No newline at end of file diff --git a/pages/personCenter/commissionSetting/images/right.png b/pages/personCenter/commissionSetting/images/right.png deleted file mode 100644 index a4866e1..0000000 Binary files a/pages/personCenter/commissionSetting/images/right.png and /dev/null differ diff --git a/pages/personCenter/commissionSetting/images/rightBlack.png b/pages/personCenter/commissionSetting/images/rightBlack.png deleted file mode 100644 index e12ea11..0000000 Binary files a/pages/personCenter/commissionSetting/images/rightBlack.png and /dev/null differ diff --git a/pages/personCenter/component/InvitationCodePop/InvitationCodePop.js b/pages/personCenter/component/InvitationCodePop/InvitationCodePop.js index 5805e81..0c87a48 100644 --- a/pages/personCenter/component/InvitationCodePop/InvitationCodePop.js +++ b/pages/personCenter/component/InvitationCodePop/InvitationCodePop.js @@ -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], // 预览图片 - }); - } } -}); +}) \ No newline at end of file diff --git a/pages/personCenter/component/InvitationCodePop/images/cha.png b/pages/personCenter/component/InvitationCodePop/images/cha.png deleted file mode 100644 index f34afe8..0000000 Binary files a/pages/personCenter/component/InvitationCodePop/images/cha.png and /dev/null differ diff --git a/pages/personCenter/component/commissionPop/commissionPop.js b/pages/personCenter/component/commissionPop/commissionPop.js index eea94d6..80c93e0 100644 --- a/pages/personCenter/component/commissionPop/commissionPop.js +++ b/pages/personCenter/component/commissionPop/commissionPop.js @@ -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'); - } - } + } }) \ No newline at end of file diff --git a/pages/personCenter/component/commissionRatePop/commissionRatePop.js b/pages/personCenter/component/commissionRatePop/commissionRatePop.js index 9b1b3ef..e3e074e 100644 --- a/pages/personCenter/component/commissionRatePop/commissionRatePop.js +++ b/pages/personCenter/component/commissionRatePop/commissionRatePop.js @@ -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', {/*数据*/}); - }, - } -}) + } +}) \ No newline at end of file diff --git a/pages/personCenter/mine/mine.js b/pages/personCenter/mine/mine.js index 1dda561..517c284 100644 --- a/pages/personCenter/mine/mine.js +++ b/pages/personCenter/mine/mine.js @@ -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({ diff --git a/pages/personCenter/mine/mine.wxml b/pages/personCenter/mine/mine.wxml index 2defb41..62268b8 100644 --- a/pages/personCenter/mine/mine.wxml +++ b/pages/personCenter/mine/mine.wxml @@ -2,7 +2,7 @@ - 000000 + {{ nickName }}