index.wxml 2.8 KB

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