From 910d93483d4cf68cf828f22f26abc41564037a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=BD=A6=E7=A5=96?= <605893810@qq.com> Date: Tue, 10 Mar 2026 14:59:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B1=8F=E8=94=BD=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 2 +- pages/mine/mine.vue | 3 +++ pages/rwa_package/dongjian/finance.vue | 32 +++++++++++++++++++++----- utils/config.js | 8 +++---- 4 files changed, 34 insertions(+), 11 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index 751281f..585b31d 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -668,7 +668,7 @@ }, computed: { isBlockedDate() { - return !useTabber(13); + return !useTabber(15); }, }, }; diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index a11d303..d53d020 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -524,6 +524,9 @@ export default { if (result && result.bizcode === 100) { const data = result.data; this.currentUserData = result.data || {}; + if(!this.currentUserData?.isNewUser){ + this.applyList = this.applyList.filter((item) => item.id !== 5); + } } }, jumpToTrustBridge() { diff --git a/pages/rwa_package/dongjian/finance.vue b/pages/rwa_package/dongjian/finance.vue index 14a874a..dfb88ba 100644 --- a/pages/rwa_package/dongjian/finance.vue +++ b/pages/rwa_package/dongjian/finance.vue @@ -19,7 +19,7 @@ 股权分布 - 51%的股权回馈消费者(免费赠予),股权以数字积分形式发放。 + 51%的股权回馈消费者(免费赠予)。股权以积分形式发放 @@ -46,7 +46,7 @@ :opts="twoOps" :chartData="twoData"/> - + 免费赠予详细规则 @@ -189,6 +189,7 @@ import TopSafe from '@/components/common/top-safe.nvue' import func from '@/utils/func.js'; import qiunDataCharts from '@/uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue' import { getProfitSharingData } from '@/api/finance.js' +import { getUserInfo } from '@/api/auth.js'; export default { components: { Header,TopSafe,qiunDataCharts }, data() { @@ -202,6 +203,7 @@ export default { tabOne:['每日','每月'], curOne:0, tabTwo:['数字积分','利润共享计划'], + // tabTwo:["利润共享计划"], curTwo:0, delayload: false, oneList:[ @@ -313,12 +315,13 @@ export default { } }, curData:null, - fiveTotal:0 - + fiveTotal:0, + currentUserData:{} }; }, onReady(){ // this.initTwo(); + this.getUserInfo(); }, onLoad() { // setTimeout(()=>{ @@ -327,6 +330,17 @@ export default { this.profitSharingData(); }, methods: { + // 查询用户等级 + async getUserInfo() { + const result = await getUserInfo(); + if (result && result.bizcode === 100) { + + this.currentUserData = result.data || {}; + if(!this.currentUserData?.isNewUser){ + this.tabTwo = this.tabTwo.filter((item) => item !== '数字积分'); + } + } + }, onTwoTop(index){ if(this.curTopTwo !== index){ this.curTopTwo = index; @@ -350,10 +364,16 @@ export default { } }, onTwo(index){ - if(this.curTwo !== index){ - this.curTwo = index; + if(!this.currentUserData?.isNewUser){ + this.curTwo = 1; this.getFive(); + }else{ + if(this.curTwo !== index){ + this.curTwo = index; + this.getFive(); + } } + }, getFive(){ this.fiveData.categories = []; diff --git a/utils/config.js b/utils/config.js index ab0dd22..2ebca0e 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';