index.axml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <van-cell a:if="{{type == 'text'}}" border='{{ false }}' class='label-sm' ref='saveChildRef1'>
  2. <view slot='title'>
  3. <text a:if='{{isRequired}}' class="{{value?'text-green':'text-red'}}">
  4. *
  5. </text>
  6. <text class='van-cell-text'>
  7. {{title}}
  8. </text>
  9. </view>
  10. <custom-input
  11. type='{{inputType}}'
  12. maxlength='{{maxLength}}'
  13. value='{{value}}'
  14. placeholder='{{placeholder}}'
  15. disabled='{{disabled}}'
  16. onInput='getValue'
  17. >
  18. </custom-input>
  19. </van-cell>
  20. <van-cell a:if="{{type === 'textarea'}}" border='{{ false }}' class='label-sm' ref='saveChildRef2'>
  21. <view slot='title'>
  22. <text class="{{value?'text-green':'text-red'}}">
  23. *
  24. </text>
  25. <text class='van-cell-text'>
  26. {{title}}
  27. </text>
  28. </view>
  29. <textarea
  30. class="handlemodule-textarea"
  31. style='width: 100%;'
  32. value='{{value}}'
  33. placeholder='{{placeholder}}'
  34. auto-height='{{true}}'
  35. maxlength=99999
  36. disabled='{{disabled}}'
  37. onInput='getValue'
  38. >
  39. </textarea>
  40. </van-cell>
  41. <!-- 日期选择器 -->
  42. <picker
  43. class='picker'
  44. mode='date'
  45. value='{{value}}'
  46. data-type='date'
  47. start='{{startDate}}'
  48. end='{{endDate}}'
  49. disabled='{{disabled}}'
  50. onChange='getValue'
  51. >
  52. <van-cell a:if="{{type === 'date'}}" border='{{ false }}' class='label-sm' ref='saveChildRef3'>
  53. <view slot='title'>
  54. <text a:if='{{isRequired}}' class="{{value?'text-green':'text-red'}}">
  55. *
  56. </text>
  57. <text class='van-cell-text'>
  58. {{title}}
  59. </text>
  60. </view>
  61. <text>
  62. {{value ?value:placeholder}}
  63. </text>
  64. <van-icon class='icons' name='arrow' ref='saveChildRef4'>
  65. </van-icon>
  66. </van-cell>
  67. </picker>
  68. <!-- 时间选择器 -->
  69. <picker
  70. class='picker'
  71. mode='time'
  72. value='{{value}}'
  73. data-type='time'
  74. disabled='{{disabled}}'
  75. start='{{startTime}}'
  76. end='{{endTime}}'
  77. onChange='getValue'
  78. >
  79. <van-cell a:if="{{type === 'time' }}" border='{{ false }}' class='label-sm' ref='saveChildRef5'>
  80. <view slot='title'>
  81. <text a:if='{{isRequired}}' class="{{value?'text-green':'text-red'}}">
  82. *
  83. </text>
  84. <text class='van-cell-text'>
  85. {{title}}
  86. </text>
  87. </view>
  88. <text>
  89. {{value ?value:placeholder}}
  90. </text>
  91. <van-icon class='icons' name='arrow' ref='saveChildRef6'>
  92. </van-icon>
  93. </van-cell>
  94. </picker>
  95. <van-cell a:if="{{type === 'stepper'}}" border='{{ false }}' class='label-sm' ref='saveChildRef7'>
  96. <view slot='title'>
  97. <text a:if='{{isRequired}}' class="{{value?'text-green':'text-red'}}">
  98. *
  99. </text>
  100. <text class='van-cell-text'>
  101. {{title}}
  102. </text>
  103. </view>
  104. <van-stepper
  105. value='{{ value }}'
  106. data-type='stepper'
  107. integer=" "
  108. min='{{1}}'
  109. onChange='getValue'
  110. ref='saveChildRef8'
  111. >
  112. </van-stepper>
  113. </van-cell>
  114. <van-cell
  115. a:if="{{type === 'radio'}}"
  116. border='{{ false }}'
  117. class='label-sm'
  118. title-width='200rpx'
  119. ref='saveChildRef9'
  120. >
  121. <view slot='title'>
  122. <text a:if='{{isRequired}}' class="{{value?'text-green':'text-red'}}">
  123. *
  124. </text>
  125. <text class='van-cell-text'>
  126. {{title}}
  127. </text>
  128. </view>
  129. <van-radio-group value='{{ value }}' ref='saveChildRef10'>
  130. <van-radio
  131. a:for='{{listErgodic}}'
  132. class="dis"
  133. onChange='getValue'
  134. a:key='{{index}}'
  135. value="{{value}}"
  136. data-item="{{item}}"
  137. data-type="radio"
  138. name='{{item[key1]}}'
  139. ref-numbers='{{listErgodic}}'
  140. ref='saveChildRef11'
  141. >
  142. {{item[name1]}}
  143. </van-radio>
  144. </van-radio-group>
  145. </van-cell>
  146. <van-cell a:if="{{type === 'image'}}" border='{{ false }}' class='label-sm' ref='saveChildRef12'>
  147. <view slot='title'>
  148. <text a:if='{{isRequired}}' class="{{value?'text-green':'text-red'}}">
  149. *
  150. </text>
  151. <text class='van-cell-text'>
  152. {{title}}
  153. </text>
  154. </view>
  155. <view class='handlemodule-img' onTap='antmoveAction' data-antmove-tap='ChooseImage'>
  156. <view a:if='{{value}}' class='have-photo'>
  157. <image src='{{value}}'>
  158. </image>
  159. <view
  160. class="clear-icon meetinglayout-clear-icon"
  161. catchTap="clearImg"
  162. data-index="{{index}}"
  163. data-type="left"
  164. style="width: 25rpx; height: 25rpx; border-radius: 50%; background-color: #9494B2; display: flex; align-items: center; justify-content: center;"
  165. >
  166. <text style="color: #fff; font-size: 23rpx;" class="handlemodule-text">×</text>
  167. </view>
  168. <!--<van-icon
  169. name='clear'
  170. size='40rpx'
  171. class='clear-icon'
  172. catchTap='antmoveAction'
  173. onClick='clearImg'
  174. ref='saveChildRef13'
  175. ></van-icon> -->
  176. </view>
  177. <view a:else class='default-photo'>
  178. <van-icon name='photo-o' size='50rpx' color='#E0E1E5' ref='saveChildRef14'>
  179. </van-icon>
  180. </view>
  181. </view>
  182. </van-cell>