feat: 处理头像
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<view class="mine_header">
|
<view class="mine_header">
|
||||||
<view class="mine_login_data" v-if="currentUserData && Object.keys(currentUserData).length !== 0">
|
<view class="mine_login_data" v-if="currentUserData && Object.keys(currentUserData).length !== 0">
|
||||||
<view class="mine_data">
|
<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">
|
||||||
<view class="mine_info_name">
|
<view class="mine_info_name">
|
||||||
<text style="margin-right: 20rpx">{{ currentUserData.name || '信任桥用户' }}</text>
|
<text style="margin-right: 20rpx">{{ currentUserData.name || '信任桥用户' }}</text>
|
||||||
|
|||||||
@@ -3,15 +3,17 @@
|
|||||||
<!-- 导航栏 -->
|
<!-- 导航栏 -->
|
||||||
<view class="header_">
|
<view class="header_">
|
||||||
<view style="margin-top: 10rpx;">
|
<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>
|
||||||
<view class="title_">我的推广</view>
|
<view class="title_">我的推广</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 我的信息 -->
|
<!-- 我的信息 -->
|
||||||
<view class="my_info">
|
<view class="my_info">
|
||||||
<view class="left_">
|
<view class="left_">
|
||||||
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/logo_y.png" width="50" height="50"
|
<up-image
|
||||||
bgColor="#f1f6ff00" shape="circle" />
|
: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 class="left_msg">
|
||||||
<view>
|
<view>
|
||||||
<text>{{ userData.name || '信任桥用户' }}</text>
|
<text>{{ userData.name || '信任桥用户' }}</text>
|
||||||
@@ -113,7 +115,8 @@
|
|||||||
<view class="card_item_comm">
|
<view class="card_item_comm">
|
||||||
<view class="card_title_comm">提成来源</view>
|
<view class="card_title_comm">提成来源</view>
|
||||||
<view class="royalty_list">
|
<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"
|
<view class="royalty_item" v-for="(item, index) in royaltyList" :key="index"
|
||||||
v-if="royaltyList && royaltyList.length !== 0">
|
v-if="royaltyList && royaltyList.length !== 0">
|
||||||
<view>
|
<view>
|
||||||
@@ -126,8 +129,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="not_order_warp">
|
<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"
|
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/not_order.png"
|
||||||
height="80" bgColor="#f1f6ff00"></up-image>
|
width="80" height="80" bgColor="#f1f6ff00"></up-image>
|
||||||
<view class="not_order_msg_warp">暂无相关数据</view>
|
<view class="not_order_msg_warp">暂无相关数据</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="royaltyLoading" style="text-align: center;">加载中...</view>
|
<view v-if="royaltyLoading" style="text-align: center;">加载中...</view>
|
||||||
@@ -187,12 +190,27 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
import { getPerformance, getAcctCategory, getRewardSummaryRecord, getRewardSummary } from '@/api/team.js';
|
getPerformance,
|
||||||
import { formatDate } from '@/utils/index.js';
|
getAcctCategory,
|
||||||
import { BALANCE_TYPE, getValue } from '@/utils/enumUtils.js';
|
getRewardSummaryRecord,
|
||||||
import { getStorageFun, USER_DATA } from '@/utils/auth.js';
|
getRewardSummary
|
||||||
import { getUserInfo, bindInvitationCode } from '@/api/auth.js'
|
} 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 {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user