index.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!--index.wxml-->
  2. <view class="sg-container" style="overflow: hidden;">
  3. <view class="flexdstyle">
  4. <view class="sg-top-box sg-index-bg">
  5. <view class="sg-top-item sg-font-xs" bindtap="navigate" data-url="/pages/create-project/index" wx:if="{{topRole && topRole.rights && topRole.rights.newProject}}">
  6. <van-icon name="edit" class="sg-icon" />
  7. <view class="sg-top-name">新建项目</view>
  8. </view>
  9. <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}}">
  10. <van-icon name="user-o" class="sg-icon" />
  11. <view class="sg-top-name">成员添加</view>
  12. </view>
  13. <view class="sg-top-item sg-font-xs" bindtap="navigate" data-url="/pages/draft/index">
  14. <van-icon name="description" class="sg-icon" />
  15. <view class="sg-top-name">草稿箱</view>
  16. </view>
  17. <view class="sg-top-item sg-font-xs sg-right-border" bindtap="navigate" data-url="/pages/notification/index">
  18. <van-icon name="bell" class="sg-icon" wx:if="{{notReadCount > 0}}" info="{{notReadCount}}" />
  19. <van-icon name="bell" class="sg-icon" wx:else />
  20. <view class="sg-top-name">消息提示</view>
  21. </view>
  22. <view class="sg-top-item sg-font-xs">
  23. <image class="sg-avatar" src="{{ userInfo.avatar }}" mode="widthFix"></image>
  24. </view>
  25. </view>
  26. <view class="sg-search-box sg-shadow">
  27. <van-icon name="search" class="sg-index-color sg-search-icon" />
  28. <input class="sg-search-input" placeholder="搜索相关项目" bindblur="search" bindinput="updateInput"
  29. data-name="keyword"></input>
  30. </view>
  31. </view>
  32. <view class="sg-box sg-pad" style="margin-top:280rpx">
  33. <view class="sg-header">所有项目</view>
  34. <view class="sg-list">
  35. <view class="sg-item sg-index-card sg-shadow sg-pad sg-margin-top-sm" wx:for="{{list}}" wx:key="index"
  36. data-id="{{item.id}}" bindtap="navigate" data-url="/pages/project/index?id={{item.id}}">
  37. <image class="sg-img" mode="widthFix" src="https://t18.9026.com/mini/test.png"></image>
  38. <view class="sg-right">
  39. <view class="sg-top">
  40. <view class="sg-name sg-bold">{{ item.name }}</view>
  41. <view class="sg-date sg-gray-color sg-font-small">{{ item.date }}</view>
  42. </view>
  43. <view class="sg-bottom sg-font-xs sg-margin-top-sm">
  44. <view class="sg-desc">项目经理:{{ item.manager ? item.manager.name : '无' }}</view>
  45. <view class="sg-desc">电话:{{ item.manager ? item.manager.phone : '无' }}</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>