myInput.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!--myComponents/myInput/myInput.wxml-->
  2. <view class="searchType">
  3. <!-- <van-radio-group value="{{ field }}" bind:change="changeSearchType">
  4. <view class="radio_group">
  5. <van-radio wx:for="{{searchType}}" wx:key="index" name="{{item.value}}">{{item.label}}</van-radio>
  6. </view>
  7. </van-radio-group> -->
  8. <view wx:for="{{searchType}}" class="searchType_item {{item.value == field?'checked':''}}" wx:key="index" data-field="{{item.value}}" bind:tap="changeSearchType">{{item.label}}</view>
  9. </view>
  10. <view class="myInput">
  11. <view class="left">
  12. <view class="input_type">
  13. <slot></slot>
  14. </view>
  15. <input class="default" type="text" placeholder="{{placeholder}}" placeholder-class="placeholder" value="{{value}}" bindinput="changeInput" bindblur="inputBlur"/>
  16. <view class="inner_icon" bind:tap="clickInnerIcon">
  17. <view class="btn_icon">
  18. <slot name="inner_icon"></slot>
  19. </view>
  20. <view class="default iconfont myIconzhaoxiangji"></view>
  21. </view>
  22. </view>
  23. <view class="right">
  24. <button class="btn" bind:tap="buttonClick">
  25. <view class="btn_icon">
  26. <slot name="btn_icon"> </slot>
  27. </view>
  28. <view class="default iconfont myIconsousuo"></view>
  29. </button>
  30. </view>
  31. </view>
  32. <view wx:if="{{showEdit && show}}" class="editBox">
  33. <view class="upload">
  34. <wux-upload
  35. max='1'
  36. listType="picture-card"
  37. fileList="{{ fileList }}"
  38. controlled
  39. uploaded="false"
  40. bind:before="beforeUpload"
  41. bind:change="onChange"
  42. bind:success="onSuccess"
  43. bind:fail="onFail"
  44. bind:complete="onComplete"
  45. bind:preview="onPreview"
  46. bind:remove="onRemove"
  47. >
  48. <text>+</text>
  49. </wux-upload>
  50. </view>
  51. <!-- <view class="form">
  52. <my-form-item label="产品名称">
  53. <input type="text"/>
  54. </my-form-item>
  55. <my-form-item label="关键词">
  56. <wux-textarea clear autoHeight/>
  57. </my-form-item>
  58. </view> -->
  59. </view>