2.4 组件结构调整,调整会员权限判断

This commit is contained in:
尚政杰
2026-02-04 17:43:41 +08:00
parent eeca65538c
commit 995ee7f220
274 changed files with 7191 additions and 2186 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../../utils/util.js"),t=require("../../../common/vendor.js"),a=require("../../../common/assets.js"),n={name:"gltd-view",data:()=>({getLastNameStr:e.getLastNameStr,getAgeByBirthYear:e.getAgeByBirthYear}),props:{managementList:Array},methods:{clickExpandOrRetractManagement(e){this.managementList[e].isExpand=!this.managementList[e].isExpand}}};const r=t._export_sfc(n,[["render",function(e,n,r,s,i,g){return{a:t.f(r.managementList,((e,n,r)=>t.e({a:e.list.length>0},e.list.length>0?{b:t.t(e.key),c:t.t(e.list.length)}:{},{d:e.list.length>4&&!e.isExpand},e.list.length>4&&!e.isExpand?{e:t.f(e.list.slice(0,4),((e,n,r)=>t.e({a:t.t(i.getLastNameStr(e.name)),b:"女"==e.gender},"女"==e.gender?{c:a._imports_0$8}:{d:a._imports_1$15},{e:t.n("sexC flexCenter absolute "+("女"==e.gender?"female":"male")),f:t.t(e.name),g:t.t(e.position_name),h:t.t(e.start_date),i:t.t(e.education),j:t.t(i.getAgeByBirthYear(e.birth_year))}))),f:n}:{g:t.f(e.list,((e,n,r)=>t.e({a:t.t(i.getLastNameStr(e.name)),b:"女"==e.gender},"女"==e.gender?{c:a._imports_0$8}:{d:a._imports_1$15},{e:t.n("sexC flexCenter absolute "+("女"==e.gender?"female":"male")),f:t.t(e.name),g:t.t(e.position_name),h:t.t(e.start_date),i:t.t(e.education),j:t.t(i.getAgeByBirthYear(e.birth_year))}))),h:n},{i:e.list.length>4},e.list.length>4?{j:t.t(e.isExpand?"收起":"展开查看"),k:a._imports_2$14,l:t.o((e=>g.clickExpandOrRetractManagement(n)),n)}:{},{m:n})))}}]]);wx.createPage(r);

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="managementTeamList"><block wx:for="{{a}}" wx:for-item="item" wx:key="m"><view wx:if="{{item.a}}" class="positionNumC flex"><view class="position">{{item.b}}</view><view class="num director">{{item.c}}人</view></view><block wx:if="{{item.d}}"><view wx:for="{{item.e}}" wx:for-item="pitem" wx:key="f" class="item flex"><view class="avatarC flexCenter relative director">{{pitem.a}} <view class="{{pitem.e}}"><image wx:if="{{pitem.b}}" class="icon" src="{{pitem.c}}" mode="widthFix"></image><image wx:else class="icon" src="{{pitem.d}}" mode="widthFix"></image></view></view><view class="flex1"><view class="flex"><view class="name">{{pitem.f}}</view><view class="position">{{pitem.g}}</view><view class="date flex1">任职日期:{{pitem.h}}</view></view><view class="educationAgeC flex"><view class="education label">{{pitem.i}}</view><view class="age label">{{pitem.j}}岁</view></view></view></view></block><block wx:else><view wx:for="{{item.g}}" wx:for-item="pitem" wx:key="h" class="item flex"><view class="avatarC flexCenter relative director">{{pitem.a}} <view class="{{pitem.e}}"><image wx:if="{{pitem.b}}" class="icon" src="{{pitem.c}}" mode="widthFix"></image><image wx:else class="icon" src="{{pitem.d}}" mode="widthFix"></image></view></view><view class="flex1"><view class="flex"><view class="name">{{pitem.f}}</view><view class="position">{{pitem.g}}</view><view class="date flex1">任职日期:{{pitem.h}}</view></view><view class="educationAgeC flex"><view class="education label">{{pitem.i}}</view><view class="age label">{{pitem.j}}岁</view></view></view></view></block><view wx:if="{{item.i}}" class="expandMoreC flexCenter" bindtap="{{item.l}}"><view>{{item.j}}</view><image class="arrow" src="{{item.k}}" mode="widthFix"></image></view></block></view>

View File

@@ -0,0 +1 @@
.managementTeamList{padding:0 20rpx}.managementTeamList .positionNumC{height:70rpx}.managementTeamList .positionNumC .position{margin-right:11rpx;font-size:28rpx;font-weight:700}.managementTeamList .positionNumC .num{padding:0 14rpx;line-height:30rpx;border-radius:5rpx;font-size:20rpx;font-weight:700;color:#fff}.managementTeamList .positionNumC .num.director{background-color:#99afec}.managementTeamList .positionNumC .num.supervisor{background-color:#b499ec}.managementTeamList .positionNumC .num.other{background-color:#b5b5c9}.managementTeamList .item{background-color:#fafafc;margin-bottom:20rpx;padding:20rpx 25rpx 20rpx 20rpx;border-radius:10rpx}.managementTeamList .item .avatarC{margin-right:18rpx;width:80rpx;height:80rpx;border-radius:50%;font-size:30rpx;font-weight:700;color:#fff}.managementTeamList .item .avatarC .sexC{right:0;bottom:0;width:30rpx;height:30rpx;border-radius:50%;border:solid 2rpx white}.managementTeamList .item .avatarC .sexC .icon{width:16rpx;height:auto}.managementTeamList .item .avatarC .sexC.female{background-color:#fa5a93}.managementTeamList .item .avatarC .sexC.male{background-color:#3e6cfc}.managementTeamList .item .avatarC.director{background-color:#99afec}.managementTeamList .item .avatarC.supervisor{background-color:#b499ec}.managementTeamList .item .avatarC.other{background-color:#b5b5c9}.managementTeamList .item .name{margin-right:13rpx;font-size:24rpx;font-weight:700;color:#666}.managementTeamList .item .position{font-size:22rpx;font-weight:500;color:#999}.managementTeamList .item .date{font-size:20rpx;font-weight:500;color:#999;text-align:right}.managementTeamList .item .educationAgeC{margin-top:8rpx}.managementTeamList .item .educationAgeC .label{margin-right:10rpx;background-color:#f1f1f1;line-height:30rpx;padding:0 16rpx;font-size:20rpx;font-weight:500;color:#999}.managementTeamList .expandMoreC{height:80rpx;border-bottom:solid 1rpx #E7E7E7;font-size:24rpx;font-weight:500;color:#c9c9c9}.managementTeamList .expandMoreC .arrow{margin-left:18rpx;width:11rpx;height:auto}