childList.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!--pages/childList/childList.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='li'>
  5. <view class='li-items {{index==parentVipLiIdx?"li-items-active":""}}' wx:for='{{parentVipList}}' wx:key='index' data-index='{{index}}'>
  6. <view class='li-items-imgList'>
  7. <view class='li-items-imgList'>
  8. <image class='li-items-img' data-url='kids_information' data-add="1" data-method='{{({vipId: parentVipList[index].vipId,derver:parentVipList[index].derver,childIndex:index,isMain:item.isMain})}}' bindtap='navigateCtl' src="{{item.imgUrl?(baseImgUrl + item.imgUrl):'../../image/default_headicon2.png'}}"></image>
  9. <!-- <image class='li-items-tips-img' wx:if='{{index==parentVipLiIdx}}' src='../../image/select_biao_ji.png'></image> -->
  10. </view>
  11. <view class='li-items-names'>{{item.childName}}</view>
  12. </view>
  13. <view class='li-items-footer'>
  14. <image class='li-items-footer-img' src='../../image/camera_sure.png' wx:if='{{index==parentVipLiIdx}}'></image>
  15. <image class='li-items-footer-img' src='../../image/qie_huan.png' wx:if='{{index!=parentVipLiIdx}}' data-index='{{index}}' bindtap='modalInfo'></image>
  16. </view>
  17. </view>
  18. <!-- 添加孩子 data-add="1" -->
  19. <view class='li-add' data-url='kids_information' data-method="{{({isMain:1,isAddChild:1,type:1})}}" bindtap='navigateCtl'>
  20. <text class='li-items-add'>+ </text>
  21. <text>添加孩子</text>
  22. </view>
  23. </view>
  24. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  25. <view class='model' wx:if='{{hiddenModel}}'>
  26. <view class='model-text' bindtap='sureCheckChildren'>确定要切换到{{parentVipList[childIndex].childName}}吗</view>
  27. <view class='model-list'>
  28. <view bindtap='allShowModel'>取消</view>
  29. <view class='model-list-sure' bindtap='checkActChildCtl'>确定</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>