growup.wxml 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <wxs src='../wxs/util.wxs' module='filter' />
  2. <view class="growup-content-pad">
  3. <view class="font16 center"><text class="subtitleColor icon-growth font30 middle"></text><b class="subtitleColor middle font-weight mLeft5">宝贝成长</b><view class="growup-gray font12 mTop5">这里,藏着孩子的未来</view>
  4. </view>
  5. <view wx:if="{{userInfo}}">
  6. <view class="m-top10 content-pad" wx:if="{{childs.length>0}}">
  7. <view class="growup-head-child" wx:for="{{childs}}" wx:key="unique">
  8. <image src="{{item.avatar}}" lazy-load="true" binderror="childsBinderror" data-index="{{index}}" mode="aspectFill"></image>
  9. <text class="growup-head-child-item font14">{{item.name}}</text>
  10. <text class="growup-head-child-item font12 right">印章超越<text class="subtitleColor font18 font-weight">{{item.percent}}%</text>儿童</text>
  11. </view>
  12. </view>
  13. <view class="m-top10 center content-nochild-pad" wx:else>
  14. <navigator url='/pages/account/cards/index' hover-class='none'>
  15. <button class="button button-warn button-radius button-bind" type="danger" round to="/card">无儿童,去绑定></button>
  16. </navigator>
  17. </view>
  18. </view>
  19. <view class="growup-nav" wx:if="{{userInfo}}">
  20. <navigator class="growup-nav-item" url="/pages/growup/passport/passport" hover-class="none">
  21. <text class="icon-passport subtitleColor font40"></text><text>宝贝荣誉</text>
  22. </navigator>
  23. <navigator class="growup-nav-item" url="/pages/growup/record/record" hover-class="none">
  24. <text class="icon-growup subtitleColor font40"></text><text>活动点评</text>
  25. </navigator>
  26. <navigator class="growup-nav-item" url="/pages/growup/photo/index" hover-class="none">
  27. <text class="icon-photo subtitleColor font40"></text><text>活动照片</text>
  28. </navigator>
  29. <navigator class="growup-nav-item" url="/pages/growup/take/take" hover-class="none">
  30. <text class="icon-take subtitleColor font40"></text><text>每日记录</text>
  31. </navigator>
  32. </view>
  33. <view class="center mTop20" wx:if="{{!userInfo}}">
  34. <navigator url='/pages/home/login' hover-class='none'>
  35. <button class="button button-warn button-radius button-login">登录/注册</button>
  36. </navigator>
  37. </view>
  38. </view>
  39. <!-- 列表 -->
  40. <view class="growup-content septal-top-line">
  41. <view class="font16 center growup-content-title"><text class="subtitleColor icon-says font30 middle"></text><b class="subtitleColor middle font-weight mLeft5">家长心声</b><view class="growup-gray font12 mTop5">收获、惊喜、蜕变、感动</view>
  42. </view>
  43. <view wx:if="{{list.length>0}}">
  44. <view class="growup-content-list" wx:for="{{list}}" wx:key="unique">
  45. <view class="growup-content-list-head">
  46. <image class="growup-content-list-photo" src="{{item.ownerAvatar}}" lazy-load="true" binderror="binderror" data-index="{{index}}" mode="aspectFill"></image>
  47. <view class="growup-content-list-name">
  48. <text class="font14">{{item.ownerNick}}</text>
  49. <text class="growup-gray font12">{{item.childName}}宝贝 {{item.age ? item.age+'岁':''}} {{item.joinCnt ? '独立成长'+(item.joinCnt||1)+'次':''}}</text>
  50. </view>
  51. </view>
  52. <text class="font14">{{item.content}}<text class="subtitleColor"><text wx:for="{{item.tags}}" wx:for-item="items" wx:key="i">{{items}}</text></text></text>
  53. <view class="scoreImg mTop15" wx:if="{{item.imageList.length>0}}" bindtap="previewImage" data-index="{{index}}">
  54. <image wx:for="{{item.imageList}}" wx:for-index="i" wx:key="unique" data-index="{{index}}" data-i="{{i}}" wx:for-item="itemImg" src="{{itemImg}}?x-oss-process=image/resize,m_fill,w_400,h_400" mode="aspectFill" binderror="imgListBinderror"></image>
  55. </view>
  56. <navigator class="bg growup-example mTop15" url='/pages/product/activity/index?aid={{item.article.aid}}' hover-class='none'>
  57. <image src="{{filter.formatImg(img, item.article.logo)}}" lazy-load="true" binderror="activeLogoBinderror" data-index="{{index}}" mode="aspectFill"></image>
  58. <view class="growup-example-content">
  59. <view class="activity-title font14 growup-gray">{{item.article.title}}</view>
  60. <text class='growup-gray font12 growup-example-content-price'>
  61. <text wx:if="{{item.article.price}}">¥<text class="font14">{{item.article.price}}</text>
  62. <text class='growup-gray' style="text-decoration:line-through" wx:if="{{item.article.tcprice}}">¥{{item.article.tcprice}}</text>
  63. </text>
  64. <text class="growup-gray1 mLeft10">累计{{item.article.people||1}}人</text>
  65. </text>
  66. </view>
  67. </navigator>
  68. <view class="growup-thumbs-box mTop10">
  69. <view class="growup-thumbs mTop10">
  70. <image wx:for="{{item.commentsLikes}}" wx:for-index="i" wx:key="unique" data-i="{{i}}" data-index="{{index}}" wx:for-item="items" src="{{items.avatar}}" mode="aspectFill" binderror="userBinderror"></image>
  71. <view class="growup-thumbs-icon">
  72. <text class="icon {{item.likeStatus==1?'icon-point-upactive subtitleColor':'icon-point-up'}}" data-info="{{item}}" data-index="{{index}}" bindtap="setLike"></text>
  73. <text class="font12 mLeft10">{{item.likeCnt}}</text>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="center font14 growup-gray" wx:if="{{finished}}">{{finishedText}}</view>
  79. </view>
  80. <view class='noData' wx:else><text class="icon icon-info"></text><text>暂无家长心声</text></view>
  81. </view>