selectSectionStaff_tow.axml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <view class="all">
  2. <image mode="scaleToFill" catchTap="onClose" class="close" src="../../../image/close.png"/>
  3. <view class="search flex-box flex-v-ce">
  4. <image mode="scaleToFill" src="../../../image/ss.png"/>
  5. <input placeholder="请输入姓名搜索" onInput="bindKeyInput"/>
  6. </view>
  7. <view class="content">
  8. <view class="flex-box flex-v-ce shu" a:if="{{terr.length>1}}">
  9. <view a:for="{{terr}}" class="flex-box flex-v-ce" data-index="{{index}}" catchTap="activeItem" data-item="{{item}}">
  10. <image mode="scaleToFill" src="../../../image/right.png" style="width:20rpx;height:20rpx;margin:0 6rpx;" a:if="{{index!=0}}"/>{{item.name}}
  11. </view>
  12. </view>
  13. <scroll-view class="staff-ul" scroll-y="{{true}}" style="{{terr.length>1? 'height: calc(100vh - 390rpx);':'height: calc(100vh - 320rpx);'}}">
  14. <block a:if="{{isItem}}">
  15. <view class="ul2">
  16. <view class="flex-box flex-v-ce li" a:for="{{rule_tree}}">
  17. <view class="flex-box flex-v-ce flex-1" data-item="{{item}}" catchTap="changeSection">
  18. <image mode="scaleToFill" style="width:50rpx;height:50rpx; margin:0 10rpx;" src="../../../image/BM.png"/> {{item.name}}
  19. </view>
  20. <view class="xia" a:if="{{item._child.length>0}}" data-item="{{item}}" catchTap="openDown">| 下级</view>
  21. </view>
  22. </view>
  23. <radio-group class="radio-group" onChange="radioChange">
  24. <view class="flex-box flex-v-ce userItem" a:for="{{userList}}">
  25. <label class="flex-box flex-v-ce flex-1">
  26. <image a:if="{{item.img_url}}" class="img-url" style="width:70rpx;height:70rpx;" src="{{item.img_url}}"/>
  27. <view a:else style="width: 70rpx;height: 70rpx;border-radius: 100%;background: #26A2FF;color: #fff;text-align: center;line-height: 64rpx;font-size: 24rpx;">{{item.name}}</view>
  28. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  29. <radio value="{{item}}" checked="{{item.checked}}"/>
  30. </label>
  31. </view>
  32. </radio-group>
  33. </block>
  34. <radio-group class="radio-group" onChange="radioChange" a:else>
  35. <view class="flex-box flex-v-ce userItem" a:for="{{searchVal}}">
  36. <label class="flex-box flex-v-ce flex-1">
  37. <image a:if="{{item.img_url}}" class="img-url" style="width:70rpx;height:70rpx;" src="{{item.img_url}}"/>
  38. <view a:else style="width: 70rpx;height: 70rpx;border-radius: 100%;background: #26A2FF;color: #fff;text-align: center;line-height: 64rpx;font-size: 24rpx;">{{item.name}}</view>
  39. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  40. <radio value="{{item}}" checked="{{item.checked}}"/>
  41. </label>
  42. </view>
  43. </radio-group>
  44. </scroll-view>
  45. </view>
  46. <view class="StaffFooter flex-box flex-v-ce">
  47. <view class="flex-1 f-left flex-box flex-v-ce">
  48. <view a:for="{{selectUserId}}" style="margin-right:10rpx;">
  49. <image a:if="{{item.img_url}}" class="img-url" style="width:70rpx;height:70rpx;display: inline-block;" src="{{item.img_url}}"/>
  50. <view a:else style="width: 70rpx;height: 70rpx;border-radius: 100%;background: #26A2FF;color: #fff;text-align: center;line-height: 64rpx;font-size: 24rpx;">{{item.name}}</view>
  51. </view>
  52. </view>
  53. <view class="staffBtn" onTap="onConfirm">确定</view>
  54. </view>
  55. </view>