fix:修改首页布局
This commit is contained in:
parent
c1a0090279
commit
7e8151f0ac
@ -4,7 +4,7 @@
|
|||||||
<view class="module-title flex-shrink-0 truncate">
|
<view class="module-title flex-shrink-0 truncate">
|
||||||
成员档案
|
成员档案
|
||||||
</view>
|
</view>
|
||||||
<view class="flex items-center px-10 leading-normal rounded-sm" @click="toManagePage()">
|
<view class="flex items-center leading-normal rounded-sm" style="padding-right: 0" @click="toManagePage()">
|
||||||
<image class="manage-icon mr-5" src="/static/home/archive-manage.png" mode="aspectFit"></image>
|
<image class="manage-icon mr-5" src="/static/home/archive-manage.png" mode="aspectFit"></image>
|
||||||
<view style="font-size: 28rpx; color: #065BD6;">档案管理</view>
|
<view style="font-size: 28rpx; color: #065BD6;">档案管理</view>
|
||||||
</view>
|
</view>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
{{ i.relationship }}
|
{{ i.relationship }}
|
||||||
</view>
|
</view>
|
||||||
<view class="flex flex-col items-center">
|
<view class="flex flex-col items-center">
|
||||||
<view class="customer-name text-lg leading-normal font-semibold whitespace-nowrap "
|
<view class="customer-name text-lg leading-normal font-semibold whitespace-nowrap mb-8"
|
||||||
:class="current && i._id === current._id ? 'text-primary' : 'text-dark'">
|
:class="current && i._id === current._id ? 'text-primary' : 'text-dark'">
|
||||||
{{ i.name }}
|
{{ i.name }}
|
||||||
</view>
|
</view>
|
||||||
@ -347,7 +347,8 @@ watch(() => props.corpId, n => {
|
|||||||
.info-title {
|
.info-title {
|
||||||
color: #213E80;
|
color: #213E80;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
|
line-height: 56rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-subtitle {
|
.info-subtitle {
|
||||||
|
|||||||
@ -10,9 +10,9 @@
|
|||||||
<view class="home-section">
|
<view class="home-section">
|
||||||
<consult :corpId="corpId" :teamId="team.teamId" :customers="customers" />
|
<consult :corpId="corpId" :teamId="team.teamId" :customers="customers" />
|
||||||
</view>
|
</view>
|
||||||
<view class="home-section">
|
<!-- <view class="home-section">
|
||||||
<team-mate :team="team" />
|
<team-mate :team="team" />
|
||||||
</view>
|
</view> -->
|
||||||
<view class="home-section">
|
<view class="home-section">
|
||||||
<article-list :team="team" />
|
<article-list :team="team" />
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<view>
|
<view>
|
||||||
<view :style="{ height: statusBarHeight }" class="status-bar"></view>
|
<view :style="{ height: statusBarHeight }" class="status-bar"></view>
|
||||||
<view class="relative z-3 flex items-center px-15 py-12 header-bar">
|
<view class="relative z-3 flex items-center px-15 py-12 header-bar">
|
||||||
<view class="flex-shrink-0 mr-5">
|
<view class="flex-shrink-0 mr-5" @click="toTeamDetail">
|
||||||
<group-avatar :size="120" :avatarList="currentTeam ? currentTeam.avatarList : []" />
|
<group-avatar :size="120" :avatarList="currentTeam ? currentTeam.avatarList : []" />
|
||||||
</view>
|
</view>
|
||||||
<view class="w-0 flex-grow">
|
<view class="w-0 flex-grow">
|
||||||
@ -101,6 +101,14 @@ function select(team) {
|
|||||||
showDropDown.value = false;
|
showDropDown.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toTeamDetail() {
|
||||||
|
if (props.team && props.team.teamId) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/team/team-detail?teamId=${props.team.teamId}&corpId=${props.team.corpId}&corpName=${encodeURIComponent(props.team.corpName || '')}`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.teams,
|
() => props.teams,
|
||||||
(teams) => {
|
(teams) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user