change.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <My_GeneralTemplate>
  2. <view style="padding: 0 30rpx 20rpx;">
  3. <My_GreyRectangleForm title="账号名称" required>
  4. <van-field value="{{ fname }}" bind:input="eliminate" data-name="fname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fname}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  5. </My_GreyRectangleForm>
  6. <My_GreyRectangleForm title="身份/职位" required>
  7. <van-field value="{{ frole }}" bind:input="eliminate" data-name="frole" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.frole}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  8. </My_GreyRectangleForm>
  9. <My_GreyRectangleForm title="手机号码" required>
  10. <van-field model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" input-class="input-class" placeholder="点击填写" border="{{ false }}" />
  11. </My_GreyRectangleForm>
  12. <My_GreyRectangleForm title="是否启用">
  13. <van-switch style="position: absolute; margin-left: -110rpx; margin-top: 10rpx;" size="24px" active-color="#4CBECF" checked="{{ checked }}" bind:change="onChange" />
  14. </My_GreyRectangleForm>
  15. <My_GreyRectangleForm wx:if="{{tenterprise_userid!=0}}" title="是否设置为主账号">
  16. <van-switch style="position: absolute; margin-left: -110rpx; margin-top: 10rpx;" size="24px" active-color="#4CBECF" checked="{{ makeOver }}" bind:change="makeOverChange" />
  17. </My_GreyRectangleForm>
  18. </view>
  19. </My_GeneralTemplate>
  20. <!-- 提交按钮 -->
  21. <view class="submit_but">
  22. <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">保存</van-button>
  23. </view>
  24. <My_showModel isShow='{{showModel}}' transition=" " content="{{tispText}}" bindcallBack='callBack'>
  25. <view class="showModelCon" style="margin-top: 5rpx;">
  26. <view class="input-box">
  27. <input type="number" placeholder-class="index" placeholder="请输入验证码" bindinput="codeChange" />
  28. </view>
  29. <view class="gain" catchtap="getAuthCode">{{codeCount==60?'获取验证码':codeCount+'s'}}</view>
  30. </view>
  31. </My_showModel>