addProduct.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!--pages/form/addProduct/addProduct.wxml-->
  2. <navBar></navBar>
  3. <van-notify id="van-notify" />
  4. <view class="addProduct">
  5. <view class="headTitle">
  6. 完善产品信息
  7. </view>
  8. <scroll-view scroll-y class="form">
  9. <wux-form
  10. id="wux-form"
  11. layout="none"
  12. validateMessages="{{ validateMessages }}"
  13. bind:change="onValuesChange"
  14. >
  15. <wux-field name="name" initialValue="{{''}}" rules="{{ [{ required: true,message:'产品名称不能为空' } ] }}">
  16. <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
  17. <view slot="label" >
  18. 产品名称
  19. </view>
  20. <wux-input placeholder="请输入产品名称" />
  21. </my-form-item>
  22. </wux-field>
  23. <wux-field name="searchCondition" initialValue="{{form.searchCondition}}">
  24. <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
  25. <view slot="label" >
  26. 关键词
  27. </view>
  28. <wux-input placeholder="请输入关键词人" />
  29. </my-form-item>
  30. </wux-field>
  31. <wux-field name="competitorCom" initialValue="{{''}}">
  32. <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
  33. <view slot="label" >
  34. 竞品公司
  35. </view>
  36. <wux-input placeholder="请输入竞品公司" />
  37. </my-form-item>
  38. </wux-field>
  39. <wux-field name="competitorLink" initialValue="{{''}}" >
  40. <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
  41. <view slot="label" >
  42. 竞品链接
  43. </view>
  44. <wux-input placeholder="请输入竞品链接" />
  45. </my-form-item>
  46. </wux-field>
  47. </wux-form>
  48. <view class="label">
  49. 附图
  50. </view>
  51. <view class="upload">
  52. <!-- <text class="iconfont myIconshangchuan"></text> -->
  53. <wux-upload
  54. listType="picture-card"
  55. fileList="{{ fileList }}"
  56. controlled
  57. uploaded="false"
  58. bind:before="beforeUpload"
  59. bind:change="onChange"
  60. bind:success="onSuccess"
  61. bind:fail="onFail"
  62. bind:complete="onComplete"
  63. bind:preview="onPreview"
  64. bind:remove="onRemove"
  65. >
  66. <text>+</text>
  67. </wux-upload>
  68. </view>
  69. <view class="label">
  70. 描述
  71. </view>
  72. <view class="value">
  73. <wux-textarea value="{{ form.description }}" bind:change="changRemark"/>
  74. </view>
  75. <view class="foot" bind:tap="submit">
  76. 提交
  77. </view>
  78. </scroll-view>
  79. </view>