childs.wxml 739 B

1234567891011
  1. <scroll-view scroll-x class="scroll" scroll-left="{{scrollLeft}}" scroll-with-animation="true">
  2. <view class="personCol {{index == current?'current':''}}" wx:for="{{list}}" wx:key="*this" bindtap="childChange" data-index="{{index}}" wx:if="{{!share}}">
  3. <image class="header" src="{{item.avatar?item.avatar:'https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png'}}" mode="aspectFill"></image>
  4. <view class="name">{{item.name}}</view>
  5. </view>
  6. <view class="personCol current" wx:if="{{share}}">
  7. <image class="header" src="{{avatar?item.avatar:'https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png'}}" mode="aspectFill"></image>
  8. <view class="name">{{name}}</view>
  9. </view>
  10. </scroll-view>
  11. <slot></slot>