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