businessGoodsEdit.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <view class="wrapper">
  2. <view class="width-690">
  3. <form bind:submit="onSubmit">
  4. <view class="photo">
  5. <label>
  6. <text>商品主图</text>
  7. <text>(0/1)</text>
  8. </label>
  9. <view class="value">
  10. <view
  11. class="van-uploader-wrap">
  12. <van-uploader
  13. file-list="{{ form.photo }}"
  14. multiple="{{false}}"
  15. max-count="1"
  16. accept="image"
  17. data-formkey="photo"
  18. bind:after-read="afterRead"
  19. bind:delete="delete"/>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="swiper-photo">
  24. <label>
  25. <text>商品轮播图</text>
  26. <text>(1/5)</text>
  27. </label>
  28. <view class="value">
  29. <view
  30. class="van-uploader-wrap">
  31. <van-uploader
  32. file-list="{{ form.photo }}"
  33. multiple="{{false}}"
  34. max-count="1"
  35. accept="image"
  36. data-formkey="photo"
  37. bind:after-read="afterRead"
  38. bind:delete="delete"/>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="swiper-photo">
  43. <label>
  44. <text>商品详情图</text>
  45. <text>(1/5)</text>
  46. </label>
  47. <view class="value">
  48. <view
  49. class="van-uploader-wrap">
  50. <van-uploader
  51. file-list="{{ form.photo }}"
  52. multiple="{{false}}"
  53. max-count="1"
  54. accept="image"
  55. data-formkey="photo"
  56. bind:after-read="afterRead"
  57. bind:delete="delete"/>
  58. </view>
  59. </view>
  60. <view class="tip">请上传尺寸为375*375像素图片</view>
  61. </view>
  62. <view class="name">
  63. <label>
  64. <text>标题</text>
  65. </label>
  66. <view class="value">
  67. <input
  68. value=""
  69. placeholder="输入商品标题"
  70. placeholder-class="placeholder"></input>
  71. </view>
  72. </view>
  73. <view class="describe">
  74. <view class="value">
  75. <textarea
  76. value=""
  77. placeholder="请输入商品简介"
  78. placeholder-class="placeholder"
  79. maxlength="{{200}}"
  80. auto-height="{{true}}"></textarea>
  81. </view>
  82. <view class="words-limit">0/200</view>
  83. </view>
  84. <view class="type">
  85. <label>
  86. <text>商品分类</text>
  87. </label>
  88. <view class="value placeholder">请选择商品分类</view>
  89. <image class="arrow" src=""></image>
  90. </view>
  91. <view class="name">
  92. <label>
  93. <text>商品品牌</text>
  94. </label>
  95. <view class="value">
  96. <input
  97. value=""
  98. placeholder="输入商品品牌"
  99. placeholder-class="placeholder"></input>
  100. </view>
  101. </view>
  102. <view class="name">
  103. <label>
  104. <text>商品规格</text>
  105. </label>
  106. <view class="value">
  107. <input
  108. value=""
  109. placeholder="输入商品规格"
  110. placeholder-class="placeholder"></input>
  111. </view>
  112. </view>
  113. <view class="type">
  114. <label>
  115. <text>单 位</text>
  116. </label>
  117. <view class="value placeholder">请选择商品单位</view>
  118. <image class="arrow" src=""></image>
  119. </view>
  120. <view class="name">
  121. <label>
  122. <text>商品货号</text>
  123. </label>
  124. <view class="value">
  125. <input
  126. value=""
  127. placeholder="输入商品货号"
  128. placeholder-class="placeholder"></input>
  129. </view>
  130. </view>
  131. <!-- 编 辑: edit 发 布: send-->
  132. <button
  133. class="btn-submit edit"
  134. type="primary"
  135. form-type="submit">编 辑
  136. </button>
  137. </form>
  138. </view>
  139. </view>