This commit is contained in:
xiaozhiyong
2023-09-07 09:40:21 +08:00
parent 3d13ebb01d
commit 49fc0e5531
9 changed files with 253 additions and 111 deletions

View File

@@ -26,6 +26,7 @@
</view>
<view class="action" @tap="onTapUserInfo">
<text class="cuIcon-right text-lg"></text>
<image class="qrcode" src="../../../static/img/erweima-white.png"></image>
</view>
</view>
</view>
@@ -40,7 +41,10 @@
<!-- <text class="icon-company cuIcon-crownfill padding-right-xs"></text> -->
<!-- <my-icon iconName="wd-qy-hy.png" class="padding-right-xs"></my-icon> -->
<text class="icon-company text-xs">{{companyCard.name}}</text>
<view :class="company_tag===1?'company_tag company_tag_SelfOperated':'company_tag company_tag_externalOperated'">{{companyCard.companyNature===1?'自营':'外请'}}</view>
<view
:class="company_tag===1?'company_tag company_tag_SelfOperated':'company_tag company_tag_externalOperated'">
{{companyCard.companyNature===1?'自营':'外请'}}
</view>
</view>
</view>
@@ -128,7 +132,8 @@
</view>
</view>
</view>
<SwitchEnterprises @submit='upadteCompanyCard' @logout='logout' :is-show.sync="isSwitchEnterprises"></SwitchEnterprises>
<SwitchEnterprises @submit='upadteCompanyCard' @logout='logout' :is-show.sync="isSwitchEnterprises">
</SwitchEnterprises>
</view>
</template>
@@ -167,7 +172,7 @@
this.upadteCompanyCard()
},
methods: {
logout(){
logout() {
this.isSwitchEnterprises = false
},
upadteCompanyCard() {
@@ -305,6 +310,19 @@
</script>
<style scoped>
.action {
position: relative;
}
.qrcode {
position: absolute;
left: -3rpx;
top: 50%;
transform: translateY(-50%);
width: 34rpx;
height: 34rpx;
}
.company_tag_externalOperated {
background: #FDDBDB;
color: #FE0505;
@@ -424,4 +442,4 @@
.cu-avatar {
background-color: transparent !important;
}
</style>
</style>