index.axml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view class='autoAdd-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <van-cell a:for='{{list}}' border='{{ false }}' ref-numbers='{{list}}' ref='saveChildRef1'>
  3. <view slot='title' class='title-area'>
  4. <text class="{{list[index]?'text-green':'text-red'}}">
  5. *
  6. </text>
  7. <text class='van-cell-text'>
  8. {{international.invited_personnel[language]}} {{index+1}}
  9. </text>
  10. <van-icon
  11. a:if='{{list.length > 1}}'
  12. class='icon red'
  13. name='clear'
  14. data-index='{{index}}'
  15. onClick='delete'
  16. ref='saveChildRef2'
  17. >
  18. </van-icon>
  19. <van-icon
  20. a:if='{{index+1 === list.length&& showAddBut }}'
  21. class='icon blue'
  22. name='add'
  23. onClick='add'
  24. ref='saveChildRef3'
  25. >
  26. </van-icon>
  27. </view>
  28. <custom-input
  29. class='input'
  30. type='number'
  31. placeholder='{{international.enter_phone_number[language]}}'
  32. value='{{list[index]}}'
  33. data-index='{{index}}'
  34. onInput='getValue'
  35. >
  36. </custom-input>
  37. </van-cell>
  38. </view>