Commit 4400e0d6 authored by 罗超's avatar 罗超

1

parent c7adb9e0
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<template> <template>
<scroll-view :scroll-y="true" @scroll="scrollHandler" @scrolltoupper="scrollTopHandler" style="height: 100vh;"> <scroll-view :scroll-y="true" @scroll="scrollHandler" @scrolltoupper="scrollTopHandler" style="height: 100vh;">
<view class="userStyle" v-if="meueData.user_center && meueData.user_center.is_ppenmiai==0" :class="{'dark':isCompany}"> <view class="userStyle" v-if="meueData.user_center && meueData.user_center.is_ppenmiai==0" :class="{'dark':isCompany}"><!-- 修改 -->
<view class="headStatus" v-if="scrollTop > 50" :style="[headStyle, <view class="headStatus" v-if="scrollTop > 50" :style="[headStyle,
{ {
zIndex: scrollTop < 10 ? 'unset' : 2, zIndex: scrollTop < 10 ? 'unset' : 2,
...@@ -19,11 +19,27 @@ ...@@ -19,11 +19,27 @@
<view style="display: flex;flex-direction: column;justify-content: center;height: 50px;margin-left: 20rpx"> <view style="display: flex;flex-direction: column;justify-content: center;height: 50px;margin-left: 20rpx">
<Text class="nickname" style="color: #FFF;font-size: 40rpx;font-weight:800;max-width: 200px;overflow: hidden;display: inline-block;white-space: nowrap; text-overflow:ellipsis;" <Text class="nickname" style="color: #FFF;font-size: 40rpx;font-weight:800;max-width: 200px;overflow: hidden;display: inline-block;white-space: nowrap; text-overflow:ellipsis;"
@click="login(user_info)">{{ user_info.nickname ? user_info.nickname : '立即登录' }}</Text> @click="login(user_info)">{{ user_info.nickname ? user_info.nickname : '立即登录' }}</Text>
<view style="display: flex; align-items: center;">
<view class="member" v-if="is_icon_members_grade == 1&& user_info.nickname"> <view class="member" v-if="is_icon_members_grade == 1&& user_info.nickname">
<image :src="user_info.identity.level_icon" mode="aspectFill" style="width: 22px;height: 22px;border-radius: 11px;"></image> <image :src="user_info.identity.level_icon" mode="aspectFill" style="width: 22px;height: 22px;border-radius: 11px;"></image>
<Text style="margin-right: 10px;">{{ user_info.identity.level_name != null ? user_info.identity.level_name : '普通用户' }}</Text> <Text style="margin-right: 10px;">{{ user_info.identity.level_name != null ? user_info.identity.level_name : '普通用户' }}</Text>
<!-- 公司认证状态 -->
</view>
<view class="componyStatusBox" @click="goIdentification">
<view class="renzhen" v-if="companyStatus==2 " >
未认证
</view>
<view class="renzhen" v-if="companyStatus==0" :style="{'border':'1px solid '+mainColor,'color':mainColor}">
认证审核中
</view>
<view class="companyName" v-if="companyStatus==1">
{{companyName}}
</view>
</view> </view>
</view> </view>
</view>
</view> </view>
<view style="display: flex;flex-direction: column;align-items: center;margin-top: 23px;margin-bottom: 5px;" v-if="meueData.user_center.top_style == 2"> <view style="display: flex;flex-direction: column;align-items: center;margin-top: 23px;margin-bottom: 5px;" v-if="meueData.user_center.top_style == 2">
<u-avatar :src="user_info.avatar" shape="circle" size="120"></u-avatar> <u-avatar :src="user_info.avatar" shape="circle" size="120"></u-avatar>
...@@ -167,7 +183,7 @@ ...@@ -167,7 +183,7 @@
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<tabbars></tabbars> <tabbars></tabbars>
</view> </view>
<view v-if="meueData.user_center && meueData.user_center.is_ppenmiai==1 && isloading== true"> <view v-if="meueData.user_center && meueData.user_center.is_ppenmiai==1 && isloading== true"><!-- 修改 -->
<blinddate <blinddate
:meueData='meueData' :meueData='meueData'
:user_info ='user_info' :user_info ='user_info'
...@@ -215,7 +231,9 @@ ...@@ -215,7 +231,9 @@
IsEducation: 0, //1是0否是网课模式 IsEducation: 0, //1是0否是网课模式
PointNum:0, PointNum:0,
setting: {}, setting: {},
isCompany:true //TODO 完成动态加载系统所属类型 isCompany:true, //TODO 完成动态加载系统所属类型
companyStatus:2,
companyName:""
}; };
}, },
components: { components: {
...@@ -246,6 +264,7 @@ ...@@ -246,6 +264,7 @@
} }
}, },
mounted() { mounted() {
this.getUserCompany()
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
let c = this.$uiConfig.is_bang ? 80 : 52; let c = this.$uiConfig.is_bang ? 80 : 52;
this.bottommargin = c + 10 + 'px'; this.bottommargin = c + 10 + 'px';
...@@ -264,8 +283,10 @@ ...@@ -264,8 +283,10 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '用户中心' title: '用户中心'
}); });
}, },
onShow() { onShow() {
this.userinfo(2); this.userinfo(2);
if (this.mall_UserInfo) { if (this.mall_UserInfo) {
this.getUserPoint() this.getUserPoint()
...@@ -453,6 +474,26 @@ ...@@ -453,6 +474,26 @@
url: '/pages/appointment/personal/pointBalance' url: '/pages/appointment/personal/pointBalance'
}); });
}, },
// 获取公司认证信息
getUserCompany() {
let that = this
let parms = {
url: "/api/AppletTrade/GetUserCompany",
}
this.request2(parms, (res) => {
if (res.resultCode == 1) {
that.companyStatus=res.data.CompanyStatus
that.companyName=res.data.CompanyName
}
})
},
//去认证页
goIdentification(){
uni.navigateTo({
url: '/pages/kotra/identification'
})
}
} }
}; };
</script> </script>
...@@ -654,7 +695,7 @@ ...@@ -654,7 +695,7 @@
.userStyle .member { .userStyle .member {
background: #3b3641; background: #3b3641;
width: 80px; /* width: 80px; */
font-size: 10px; font-size: 10px;
color: #fff; color: #fff;
height: 18px; height: 18px;
...@@ -782,4 +823,13 @@ ...@@ -782,4 +823,13 @@
.userBox .paike{ .userBox .paike{
margin-top: 15px;display: flex;flex-direction: row;align-items: center;justify-content: space-between; margin-top: 15px;display: flex;flex-direction: row;align-items: center;justify-content: space-between;
} }
.componyStatusBox .renzhen{
height: 15px;font-size: 10px;margin-top: 10px;color: #555555;border-radius: 7px;border: 1px solid #999999;display: flex;align-items: center;justify-content: center; padding: 0 10rpx; margin-left: 10rpx;
}
.componyStatusBox .companyName{
font-size: 26rpx;
font-weight: 500;
color: #888888;
/* background-color: #F6F6F6FF */
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment