detail.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  2. <view slot="info" class="main" style="height:{{infoHeight}}px;">
  3. <view class="one">
  4. <form bindsubmit="onSubmit" catchreset="onReset">
  5. <view class="content" style="display: none;">
  6. <view class="left">
  7. <text class="icon iconfont icon-xingming"></text>
  8. </view>
  9. <view class="right">
  10. <input name="id" value="{{form.id}}" disabled></input>
  11. </view>
  12. </view>
  13. <view class="content" style="display: none;">
  14. <view class="left">
  15. <text class="icon iconfont icon-xingming"></text>
  16. </view>
  17. <view class="right">
  18. <input name="mech_id" value="{{form.mech_id}}" disabled></input>
  19. </view>
  20. </view>
  21. <view class="content">
  22. <view class="left">
  23. <text class="icon iconfont icon-xingming"></text>
  24. </view>
  25. <view class="right">
  26. <input name="mech_name" value="{{form.mech_name}}" disabled></input>
  27. </view>
  28. </view>
  29. <view class="content" style="display: none;">
  30. <view class="left">
  31. <text class="icon iconfont icon-leixing"></text>
  32. </view>
  33. <view class="right">
  34. <input name="type_id" value="{{form.type_id}}" disabled></input>
  35. </view>
  36. </view>
  37. <view class="content">
  38. <view class="left">
  39. <text class="icon iconfont icon-leixing"></text>
  40. </view>
  41. <view class="right">
  42. <picker class="picker" bindchange="typeChange" name="type_name" value="{{form.type_name}}" range="{{typeList}}" range-key="name">
  43. <view>{{form.type_name||'选择商品类型'}}</view>
  44. </picker>
  45. </view>
  46. </view>
  47. <view class="content">
  48. <view class="left">
  49. <text class="icon iconfont icon-jianjie"></text>
  50. </view>
  51. <view class="right">
  52. <input name="name" value="{{form.name}}" placeholder='请输入商品名称' placeholder-class="placeholder"></input>
  53. </view>
  54. </view>
  55. <view class="content">
  56. <view class="left">
  57. <text class="icon iconfont icon-mingcheng"></text>
  58. </view>
  59. <view class="right">
  60. <input name="brief" value="{{form.brief}}" placeholder='请输入商品简介' placeholder-class="placeholder"></input>
  61. </view>
  62. </view>
  63. <view class="content">
  64. <view class="left">
  65. <text class="icon iconfont icon-jiage"></text>
  66. </view>
  67. <view class="right">
  68. <input name="money" value="{{form.money}}" type="number" placeholder='请输入商品价格' placeholder-class="placeholder"></input>
  69. </view>
  70. </view>
  71. <view class="content">
  72. <view class="left">
  73. <text class="icon iconfont icon-tupian"></text>
  74. </view>
  75. <view class="right">
  76. <vanupload list="{{img_url}}" count="{{4}}" previewSize="{{80}}" bind:imgUpload="imgUpl" bind:imgDel="imgDel"></vanupload>
  77. </view>
  78. </view>
  79. <view class="save">
  80. <button type="warn" size="mini" formType="reset">取消保存</button>
  81. <button type="primary" size="mini" formType="submit">提交保存</button>
  82. </view>
  83. </form>
  84. </view>
  85. </view>
  86. </mobile-main>