1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!--index.wxml-->
- <view class="sg-container" style="overflow: hidden;">
- <view class="flexdstyle">
- <view class="sg-top-box sg-index-bg">
- <view class="sg-top-item sg-font-xs" bindtap="navigate" data-url="/pages/create-project/index"
- wx:if="{{topRole && topRole.rights && topRole.rights.newProject}}">
- <van-icon name="edit" class="sg-icon" />
- <view class="sg-top-name">新建项目</view>
- </view>
- <view class="sg-top-item sg-font-xs" bindtap="navigate" data-url="/pages/create-project-role/index"
- wx:if="{{topRole && topRole.rights && topRole.rights.memberAdd}}">
- <van-icon name="user-o" class="sg-icon" />
- <view class="sg-top-name">成员添加</view>
- </view>
- <view class="sg-top-item sg-font-xs" bindtap="navigate" data-url="/pages/draft/index">
- <van-icon name="description" class="sg-icon" />
- <view class="sg-top-name">草稿箱</view>
- </view>
- <view class="sg-top-item sg-font-xs sg-right-border" bindtap="navigate" data-url="/pages/notification/index">
- <van-icon name="bell" class="sg-icon" wx:if="{{notReadCount > 0}}" info="{{notReadCount}}" />
- <van-icon name="bell" class="sg-icon" wx:else />
- <view class="sg-top-name">消息提示</view>
- </view>
- <view class="sg-top-item sg-font-xs">
- <view class="sg-avatar" wx:if="{{userInfo.avatar==''}}">
- <open-data type="userAvatarUrl"></open-data>
- </view>
- <image class="sg-avatar" wx:else src="{{ userInfo.avatar }}" mode="widthFix"></image>
- </view>
- </view>
- <view class="sg-search-box sg-shadow">
- <van-icon name="search" class="sg-index-color sg-search-icon" />
- <input class="sg-search-input" placeholder="搜索相关项目" bindblur="search" bindinput="updateInput"
- data-name="keyword"></input>
- </view>
- </view>
- <view class="sg-box sg-pad" style="margin-top:280rpx">
- <view class="sg-header">所有项目</view>
- <view class="sg-list">
- <view class="sg-item sg-index-card sg-shadow sg-pad sg-margin-top-sm" style="border-radius: 16rpx;"
- wx:for="{{list}}" wx:key="index" data-id="{{item.id}}" bindtap="navigate"
- data-url="/pages/project/index?id={{item.id}}">
- <image class="sg-img" style="border-radius: 16rpx;" mode="widthFix" src="https://rt2.swdz.com/mini/test.png">
- </image>
- <view class="sg-right">
- <view class="">
- <view class="sg-name sg-bold">{{ item.name }}</view>
- <view class="sg-date sg-gray-color sg-font-small" style="margin-top:15rpx;font-size:25rpx">
- 创建时间:{{ item.date }}</view>
- </view>
- <view class="sg-bottom sg-font-xs sg-margin-top-sm" style="font-size:25rpx">
- <view class="sg-desc">项目经理:{{ item.manager ? item.manager.name : '无' }}</view>
- <view class="sg-desc">电话:{{ item.manager ? item.manager.phone : '无' }}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
|