add.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view class="container">
  2. <form bindsubmit="formSubmit" bindreset="formReset">
  3. <tui-list-cell hover="{{false}}">
  4. <view class="tui-line-cell">
  5. <view class="tui-title"><text style="color:red;">*</text>账户:</view>
  6. <input placeholder-class="phcolor" class="tui-input" name="username" placeholder="请输入账户" maxlength="50" catchinput="inputedit" data-name="user.username"/>
  7. </view>
  8. </tui-list-cell>
  9. <tui-list-cell hover="{{false}}">
  10. <view class="tui-line-cell">
  11. <view class="tui-title"><text style="color:red;">*</text>代理名称:</view>
  12. <input placeholder-class="phcolor" class="tui-input" name="realname" placeholder="请输入代理名称" maxlength="50" catchinput="inputedit" data-name="user.realname"/>
  13. </view>
  14. </tui-list-cell>
  15. <tui-list-cell hover="{{false}}">
  16. <view class="tui-line-cell">
  17. <view class="tui-title"><text style="color:red;">*</text>密码:</view>
  18. <input placeholder-class="phcolor" class="tui-input" name="password" placeholder="请输入密码"
  19. maxlength="50" catchinput="inputedit" data-name="user.password"/>
  20. </view>
  21. </tui-list-cell>
  22. <tui-list-cell hover="{{false}}">
  23. <view class="tui-line-cell">
  24. <view class="tui-title"><text style="color:red;">*</text>联系方式:</view>
  25. <input placeholder-class="phcolor" class="tui-input" name="agentPhone" placeholder="请输入联系方式"
  26. maxlength="11" type="number" catchinput="inputedit" data-name="user.agentPhone"/>
  27. </view>
  28. </tui-list-cell>
  29. <tui-list-cell hover="{{false}}" wx:if="{{userInfo.mgvmRole==3}}">
  30. <view class="tui-line-cell">
  31. <view class="tui-title">代理分成%:</view>
  32. <input placeholder-class="phcolor" class="tui-input" name="areaDivide" placeholder="请输入代理分成百分比" maxlength="50" catchinput="inputedit" type="number" data-name="user.areaDivide"/>
  33. </view>
  34. </tui-list-cell>
  35. <view class="tui-btn-box">
  36. <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" formType="submit" type="primary" bindtap="addStore">提交</button>
  37. <button class="btn-primary btn-gray" hover-class="btn-gray-hover" formType="reset">重置</button>
  38. </view>
  39. <time-picker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
  40. bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
  41. </form>
  42. </view>