71 lines
3.5 KiB
Plaintext
71 lines
3.5 KiB
Plaintext
<!--subpackage/team/detail/detail.wxml-->
|
|
<view class="page-content">
|
|
<mp-bar background="linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%)" title="群组" color="#fff"></mp-bar>
|
|
|
|
<view class="content">
|
|
<view class="tab">
|
|
<view class="tab-item {{tabName == 'task'? 'tab-active':''}}" id="people" bind:tap="changeTab">
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/team_person.png" class="left-img" />
|
|
群成员
|
|
</view>
|
|
<view class="tab-item {{tabName == 'people'? 'tab-active':''}}" id="task" bind:tap="changeTab">
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/team_task.png" class="right-img" />
|
|
群任务
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 成员列表 -->
|
|
<view class="box" wx:if="{{tabName == 'people'}}">
|
|
<view class="user" wx:for="{{memberList}}" wx:key="index">
|
|
<image src="{{item.headImageUrl != null && item.headImageUrl != ''? item.headImageUrl :'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/room/avater.png'}}" class="avater" />
|
|
<view class="info">
|
|
<text class="name">{{item.nickName || '会员'}}</text>
|
|
<!-- 手机号:{{item.phoneNo[0]+item.phoneNo[1]+item.phoneNo[2]+'****'+item.phoneNo[7]+item.phoneNo[8]+item.phoneNo[9]+item.phoneNo[10]}} -->
|
|
<!-- <view>群组名称:{{item.groupName}}</view> -->
|
|
</view>
|
|
</view>
|
|
|
|
<view class="nothing" wx:if="{{memberList.length <= 0}}"><view>暂无成员</view>快去邀请朋友加入吧~</view>
|
|
</view>
|
|
|
|
<!-- 任务切换 -->
|
|
<view class="task-tab" wx:if="{{tabName != 'people'}}">
|
|
<view bind:tap="changeTab" class="task-tab-item {{taskTab=='1'?'active-1':''}}" id="1">进行中</view>
|
|
<view bind:tap="changeTab" class="task-tab-item {{taskTab=='2'?'active-2':''}}" id="2">未开始</view>
|
|
<view bind:tap="changeTab" class="task-tab-item {{taskTab=='3'?'active-3':''}}" id="3">已结束</view>
|
|
</view>
|
|
|
|
<!-- 任务列表 -->
|
|
<view wx:if="{{tabName != 'people' && taskList.length >0}}">
|
|
<view class="task-item" wx:for="{{taskList}}" wx:key="id" data-item="{{item}}" bind:tap="goDetail">
|
|
<view class="left">
|
|
<view class="type {{taskTab==1?'active-1':taskTab==2?'active-2':'active-3'}}">
|
|
<!-- {{item.workModeType == 1 || item.workModeType == 3 ? '定时':'计数'}} -->
|
|
{{item.workModeTypeName}}
|
|
</view>
|
|
<view class="desc">
|
|
任务名称:{{item.groupTaskName}}
|
|
<view class="time">{{item.startTime}} ~ {{item.endTime}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="right" wx:if="{{taskTab==1}}">
|
|
<mp-icon icon="arrow" color="#26A5F6" class="icoon" size="{{8}}"></mp-icon>
|
|
</view>
|
|
<view class="right right-d" wx:if="{{taskTab==2 && isCreat}}" bind:tap="delete" id="{{item.id}}">
|
|
<mp-icon icon="delete" color="red" class="icoon" size="{{16}}"></mp-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{tabName != 'people' && taskList.length ==0}}" class="nothing">
|
|
<view>暂无任务~</view>
|
|
<view wx:if="{{isCreat}}">快去创建吧~</view>
|
|
</view>
|
|
|
|
<view class="btn" bind:tap="goCreat" wx:if="{{taskTab == 1 && isCreat && tabName != 'people'}}">创建任务</view>
|
|
</view>
|
|
|
|
<button class="share" open-type="share" wx:if="{{tabName=='people'}}" bind:tap="share">
|
|
分享圈子
|
|
<mp-icon icon="add-friends" class="icoon" color="#FA901F" size="{{14}}"></mp-icon>
|
|
</button>
|
|
</view> |