feat: 处理头像
This commit is contained in:
+1
-1
@@ -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,14 +190,29 @@
|
||||
</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 {
|
||||
export default {
|
||||
computed: {
|
||||
BALANCE_TYPE() {
|
||||
return BALANCE_TYPE;
|
||||
@@ -207,17 +225,17 @@ export default {
|
||||
pageSize: 15,
|
||||
category: null,
|
||||
},
|
||||
royaltyList: [],// 提成来源
|
||||
royaltyList: [], // 提成来源
|
||||
royaltyLoading: false,
|
||||
currencyShow: false,
|
||||
currencyColumns: [],
|
||||
currencyLoading: false,
|
||||
performanceData: {},
|
||||
selAcctCategory: {},// 选择的账户
|
||||
rewardSummary: {},// 提成统计
|
||||
openTeamShow: false,// 团队业绩的提示
|
||||
openTcShow: false,// 提成统计
|
||||
userData: {},// 当前登录对象
|
||||
selAcctCategory: {}, // 选择的账户
|
||||
rewardSummary: {}, // 提成统计
|
||||
openTeamShow: false, // 团队业绩的提示
|
||||
openTcShow: false, // 提成统计
|
||||
userData: {}, // 当前登录对象
|
||||
bindHowShow: false,
|
||||
bindValue: '',
|
||||
};
|
||||
@@ -248,7 +266,7 @@ export default {
|
||||
|
||||
},
|
||||
jumpMine() {
|
||||
uni.switchTab({// 首页
|
||||
uni.switchTab({ // 首页
|
||||
url: '/pages/mine/mine',
|
||||
})
|
||||
},
|
||||
@@ -357,11 +375,11 @@ export default {
|
||||
this.loadData(); // 加载更多数据
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.my_team_warp {
|
||||
.my_team_warp {
|
||||
background-color: $app-bt-bj;
|
||||
height: calc(100vh - 144rpx);
|
||||
overflow: hidden;
|
||||
@@ -548,9 +566,9 @@ export default {
|
||||
text-align: left;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.commission_count {
|
||||
.commission_count {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -561,9 +579,9 @@ export default {
|
||||
font-size: 27rpx;
|
||||
color: rgba(0, 0, 0, 0.4);
|
||||
line-height: 38rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.bind_how {
|
||||
.bind_how {
|
||||
width: 150rpx;
|
||||
height: 45rpx;
|
||||
display: flex;
|
||||
@@ -573,5 +591,5 @@ export default {
|
||||
border: 1rpx solid #fff;
|
||||
margin-right: 10rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user