From fc2e5b7ae0d156f61bd4fbc801a2916d6e2af88e Mon Sep 17 00:00:00 2001 From: dongjian <315328220@qq.com> Date: Tue, 23 Dec 2025 17:57:18 +0800 Subject: [PATCH] no message --- api/finance.js | 3 +- pages/rwa_package/dongjian/finance.vue | 53 +++++++++++++++++++++++--- utils/config.js | 8 ++-- 3 files changed, 53 insertions(+), 11 deletions(-) diff --git a/api/finance.js b/api/finance.js index ab81d93..9fc61e6 100644 --- a/api/finance.js +++ b/api/finance.js @@ -239,9 +239,10 @@ export function getVcoinReleaseLog(data) { data, }); } -export function getProfitSharingData() { +export function getProfitSharingData(data) { return request({ url: "/finance/getProfitSharingData", method: "get", + data }); } diff --git a/pages/rwa_package/dongjian/finance.vue b/pages/rwa_package/dongjian/finance.vue index d9b4cc7..1e79161 100644 --- a/pages/rwa_package/dongjian/finance.vue +++ b/pages/rwa_package/dongjian/finance.vue @@ -76,6 +76,14 @@ + + + {{item}} + + + 总营收 ¥ @@ -177,6 +185,8 @@ export default { data() { return { topSelect:0, + twoTopList:['优选区','平价区'], + curTopTwo:0, topList:[ '股权架构','营收数据' ], @@ -211,9 +221,6 @@ export default { {"name": "活动激励","data": 10,"color":"#00A6CC",top:'208rpx',right:'32rpx'}, {"name": "运营团队","data": 10,"color":"#FFA700",top:'314rpx',right:'32rpx'}, {"name": "推广奖励","data": 10,"color":"#00A776",top:'402rpx',right:'32rpx'}, - - - ] }, twoOps:{ @@ -312,6 +319,12 @@ export default { this.profitSharingData(); }, methods: { + onTwoTop(index){ + if(this.curTopTwo !== index){ + this.curTopTwo = index; + this.profitSharingData(); + } + }, onTop(index){ if(this.topSelect !== index){ this.topSelect = index; @@ -378,12 +391,14 @@ export default { } }, profitSharingData(){ - getProfitSharingData().then(res=>{ + getProfitSharingData({type:this.curTopTwo + 1}).then(res=>{ if (res.bizcode == 100) { this.curData = res.data; if(this.curData){ this.threeData.series = []; - this.threeData.series.push(this.curData.profitSharingDetail.cost); + if(this.curTopTwo == 0){ + this.threeData.series.push(this.curData.profitSharingDetail.cost); + } this.threeData.series.push(this.curData.profitSharingDetail.bonus); this.threeData.series.push(this.curData.profitSharingDetail.addedTax); this.threeData.series.push(this.curData.profitSharingDetail.encourrage); @@ -402,7 +417,9 @@ export default { if(index == 5)item.color = '#FF9035'; if(index == 6)item.color = '#FF5369'; if(index == 7)item.color = '#00A776'; - if(index == 8)item.color = '#5840FF'; + if(this.curTopTwo == 0){ + if(index == 8)item.color = '#5840FF'; + } }) this.getFour(); this.getFive(); @@ -439,6 +456,30 @@ export default { display: flex; background-color: #F5F5F5; } +.two-top-tab-view{ + width:100%; + height:88rpx; + display: flex; + flex-direction: row; + min-height:88rpx; + border-bottom:1rpx solid #D0D7DE; + box-sizing: border-box; + padding: 24rpx 32rpx 0; + .two-top-list{ + height:100%; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; + margin-right:64rpx; + .two-top-line{ + width:48rpx; + height:4rpx; + display: flex; + background: #7934F6; + } + } +} .contract-view{ width:100%; height:calc(100% - 88rpx - 12rpx - var(--status-bar-height)); diff --git a/utils/config.js b/utils/config.js index b72c9dd..d20d84b 100644 --- a/utils/config.js +++ b/utils/config.js @@ -2,11 +2,11 @@ // export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境 -export const BASE_URL = "https://api.tbmall.xin"; //生产 -export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产 +// export const BASE_URL = "https://api.tbmall.xin"; //生产 +// export const MILD_BASE_URL = "https://agent.tbmall.xin/"; //中台生产 -// export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试 -// export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试 +export const BASE_URL ='https://api.o.tbmall.xin'; // 本地测试 +export const MILD_BASE_URL = "https://agent.o.tbmall.xin/"; //中台测试 export const SHARE_URL = 'https://h.tbmall.xin';