record.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <wxs src='../../wxs/util.wxs' module='filter' />
  2. <view wx:if="{{!noData}}" class='record'>
  3. <!-- 引入雷达图 -->
  4. <import src="../../../components/radar/radar.wxml"/>
  5. <navigator class="common_fix common_home" wx:if="{{currentPages == 1 && load}}" open-type="reLaunch" url="/pages/home/index" hover-class="none">
  6. <text class="icon icon-home"></text>
  7. </navigator>
  8. <view class="record">
  9. <childs list="{{user}}" share="{{share}}" bind:getChildIndex="choose">
  10. <block wx:if="{{!noChildData}}">
  11. <view class="recordCol septal-bottom-line" wx:for="{{datas}}" wx:key="unique" wx:if="{{!noData}}">
  12. <view style="padding:0 40rpx">
  13. <view data-index="{{index}}"class="tab_item">
  14. <view class="rightTop_Btn" data-item="{{item}}" catchtap="showPoster" wx:if="{{item.comment && item.pics.length > 0&&item.picWidthHeight}}">分享给家人 ></view>
  15. <view class="col sname">{{filter.formatDate(item.startTimesStr, 'yyyy年MM月dd日')}}<text class="gray font12"> {{filter.getAge(user[current].birthdayStr, item.startTimesStr)}}</text></view>
  16. <view class="col">{{item.sname}}-{{item.atitle}}</view>
  17. <view class="col" wx:if="{{item.team && item.job}}">队伍(职责):<text>{{item.team || ""}} ({{item.job || ''}})</text></view>
  18. <view class="col">{{item.call || ""}}</view>
  19. </view>
  20. <block>
  21. <!-- 有图片的 -->
  22. <view wx:if="{{item.pics && item.pics.length > 0}}" class="swiper_content">
  23. <swiper style="height:400rpx" data-index="{{index}}" bindchange="bindchange">
  24. <block wx:for="{{item.pics}}" wx:for-item="el" wx:for-index="i" wx:key="*this">
  25. <swiper-item>
  26. <view class="imgSwipe" style="position:relative;width:100%;height:100%">
  27. <image src="{{el}}" mode="aspectFit" data-item="{{item.pics}}" data-url="{{el}}" bindtap="showImg"></image>
  28. </view>
  29. </swiper-item>
  30. </block>
  31. </swiper>
  32. <view class="indicator">{{item.currentInx ||1}}/{{item.pics.length}}</view>
  33. <view class="comment" wx:if="{{item.comment && item.comment.length > 0}}">
  34. {{item.comment}}
  35. </view>
  36. </view>
  37. <!-- 没有图片的 -->
  38. <view class="haveImg" wx:if="{{item.pics && item.pics.length == 0}}">
  39. <view class="comment" wx:if="{{item.comment && item.comment.length > 0}}">{{item.comment}}</view>
  40. <template is="radar" data="{{radarData: item.canvasId}}" wx:if="{{item.scores && item.scores.length > 0}}" />
  41. <view class="comment center subtitleColor" wx:if="{{item.comment && item.comment.length > 0}}">{{item.status == 1 ? '暂无点评信息':'活动还未开始哦'}}</view>
  42. </view>
  43. </block>
  44. </view>
  45. </view>
  46. </block>
  47. <empty wx:else>~该儿童暂无成长记录~</empty>
  48. <view class='load-more' hidden='{{isLoadMore}}'>下面没有了哦</view>
  49. </childs>
  50. </view>
  51. </view>
  52. <view wx:else>
  53. <empty wx:if="{{noData}}">~该用户还没有儿童参加过任何活动~</empty>
  54. </view>
  55. <nps show="{{npsStatus}}" options="{{npsOptons}}" catchtouchmove="ture" bindmyevent="close" bind:selectImage="selectImage" />
  56. <poster show="{{showPoter}}" posterInfo="{{posterInfo}}" bind:close="closePoster"></poster>