feat: 处理头像

This commit is contained in:
2025-09-08 20:23:26 +08:00
parent 27a5cfe7b7
commit 2ed344255a
2 changed files with 375 additions and 357 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<view class="mine_header">
<view class="mine_login_data" v-if="currentUserData && Object.keys(currentUserData).length !== 0">
<view class="mine_data">
<up-image src="/static/mine/avatar.png" shape="circle" width="54" height="54" bgColor="#f1f6ff00"></up-image>
<up-image :src="currentUserData.avatarUrl ? currentUserData.avatarUrl : '/static/mine/avatar.png'" shape="circle" width="54" height="54" bgColor="#f1f6ff00"></up-image>
<view class="mine_info">
<view class="mine_info_name">
<text style="margin-right: 20rpx">{{ currentUserData.name || '信任桥用户' }}</text>
@@ -3,15 +3,17 @@
<!-- 导航栏 -->
<view class="header_">
<view style="margin-top: 10rpx;">
<up-image src="/static/common/left_b.png" width="18" height="20" bgColor="#f1f6ff00" @click="jumpMine" />
<up-image src="/static/common/left_b.png" width="18" height="20" bgColor="#f1f6ff00"
@click="jumpMine" />
</view>
<view class="title_">我的推广</view>
</view>
<!-- 我的信息 -->
<view class="my_info">
<view class="left_">
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/logo_y.png" width="50" height="50"
bgColor="#f1f6ff00" shape="circle" />
<up-image
:src="userData.avatarUrl ? userData.avatarUrl: 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/logo_y.png'"
width="50" height="50" bgColor="#f1f6ff00" shape="circle" />
<view class="left_msg">
<view>
<text>{{ userData.name || '信任桥用户' }}</text>
@@ -113,7 +115,8 @@
<view class="card_item_comm">
<view class="card_title_comm">提成来源</view>
<view class="royalty_list">
<scroll-view scroll-y="true" @scrolltolower="loadMore" :style="{ 'height': 'calc(100vh - 1220rpx)' }">
<scroll-view scroll-y="true" @scrolltolower="loadMore"
:style="{ 'height': 'calc(100vh - 1220rpx)' }">
<view class="royalty_item" v-for="(item, index) in royaltyList" :key="index"
v-if="royaltyList && royaltyList.length !== 0">
<view>
@@ -126,8 +129,8 @@
</view>
</view>
<view v-else class="not_order_warp">
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/not_order.png" width="80"
height="80" bgColor="#f1f6ff00"></up-image>
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/not_order.png"
width="80" height="80" bgColor="#f1f6ff00"></up-image>
<view class="not_order_msg_warp">暂无相关数据</view>
</view>
<view v-if="royaltyLoading" style="text-align: center;">加载中...</view>
@@ -187,12 +190,27 @@
</template>
<script>
import { getPerformance, getAcctCategory, getRewardSummaryRecord, getRewardSummary } from '@/api/team.js';
import { formatDate } from '@/utils/index.js';
import { BALANCE_TYPE, getValue } from '@/utils/enumUtils.js';
import { getStorageFun, USER_DATA } from '@/utils/auth.js';
import { getUserInfo, bindInvitationCode } from '@/api/auth.js'
import {
getPerformance,
getAcctCategory,
getRewardSummaryRecord,
getRewardSummary
} from '@/api/team.js';
import {
formatDate
} from '@/utils/index.js';
import {
BALANCE_TYPE,
getValue
} from '@/utils/enumUtils.js';
import {
getStorageFun,
USER_DATA
} from '@/utils/auth.js';
import {
getUserInfo,
bindInvitationCode
} from '@/api/auth.js'
export default {
computed: {