fix(fsgx): 我的页面分销等级/资产标题/佣金记录三处UI修复

- 我的页面:用户ID旁徽标改为显示分销等级(agent_level_name),无等级时不显示
- 我的资产页面:去除顶部"我的资产"标题
- 推荐佣金页面:佣金记录改用 spreadOrder API,修复因数据源错误导致列表为空的问题

Made-with: Cursor
This commit is contained in:
apple
2026-03-25 10:12:15 +08:00
parent 6e5bbee71d
commit c84aeda062
4 changed files with 27 additions and 11 deletions

View File

@@ -3,10 +3,6 @@
<view class="assets-wrapper">
<view class="assets-header">
<view class="assets-header__top">
<view class="assets-header__title">我的资产</view>
</view>
<view v-if="loading" class="skeleton-card"></view>
<view v-else class="hero-card">

View File

@@ -87,7 +87,7 @@ import HjfQueueProgress from '@/components/HjfQueueProgress.vue';
import HjfRefundNotice from '@/components/HjfRefundNotice.vue';
import emptyPage from '@/components/emptyPage.vue';
import colors from '@/mixins/color.js';
import { getCommissionInfo } from '@/api/user.js';
import { spreadOrder } from '@/api/user.js';
export default {
name: 'BrokerageStatus',
@@ -131,8 +131,7 @@ export default {
const isFirst = this.page === 1;
if (isFirst) this.loading = true; else this.loadingMore = true;
// type=3 获取返佣记录
getCommissionInfo({ page: this.page, limit: this.limit }, 3)
spreadOrder({ page: this.page, limit: this.limit, category: 'now_money', type: 'brokerage' })
.then(res => {
const list = (res && res.data && res.data.list) ? res.data.list : [];
if (list.length < this.limit) this.finished = true;

View File

@@ -58,10 +58,10 @@ export default {
<view class="bind-phone" v-if="!userInfo.phone && userInfo.uid" @tap="bindPhone">绑定手机号</view>
<view class="acea-row row-middle" v-else>
<view class="phone">{{ perShowType ? 'ID' + userInfo.uid : userInfo.phone }}</view>
<view class="vip flex-center" v-if="userInfo.level">
<text class="iconfont icon-huiyuandengji"></text>
{{ userInfo.vip_name || ('V' + userInfo.level) }}
</view>
<view class="vip flex-center" v-if="userInfo.agent_level_name">
<text class="iconfont icon-huiyuandengji"></text>
{{ userInfo.agent_level_name }}
</view>
</view>
</template>