setName.html 2.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <ion-view has-bouncing="true" overflow-scroll="true" id="SetName" style="background-color:#f2f2f2;overflow-x:hidden;overflow-y:visible;">
  2. <div class="bar-header" style="background-color: transparent;background-image: none;">
  3. <button class="button button-icon ion-ios-arrow-left" ng-click="goback()" style="color:#3287fe;font-size:0.75rem;padding-left:5%;">
  4. </button>
  5. </div>
  6. <form name="myForm">
  7. <div class="login-mian">
  8. <img src="{{useravater}}" width="96" height="96" style="margin: 26px auto 56px;;position: relative;display: block;border-radius: 50%;" ng-click="show_header()"/>
  9. </div>
  10. <div class="input-wrap row row-center reg col_set_name" ng-class="{warn:myForm.user.$dirty&&myForm.user.$error.required&&myForm.user.$invalid}">
  11. <label class="left-icon-wrap" style="width: 95%;position: relative;margin: 0 auto;">
  12. <span ng-if="defaultLan == 'Chinese'" class="setName_span">用户名</span>
  13. <span ng-if="defaultLan == 'English'" class="setName_span">user name</span>
  14. <input ng-if="defaultLan == 'Chinese'" type="text" class="my_setName" placeholder="2-15个字,推荐使用机构名或姓名" required ng-minlength="2" ng-maxlength="15" onchange="value=value.replace(/[^/0-9/a-zA-Z/u4E00-/u9FA5]/g,'')" ng-model='user.userName' name="user"/>
  15. <input ng-if="defaultLan == 'English'" type="text" class="my_setName" placeholder="2-15 words, the name of the organization or name is recommended" required ng-minlength="2" ng-maxlength="15" onchange="value=value.replace(/[^/0-9/a-zA-Z/u4E00-/u9FA5]/g,'')" ng-model='user.userName' name="user"/>
  16. </label>
  17. </div>
  18. <div style="width: 100%; height: 20px; position: absolute;top:286px;" ng-cloak>
  19. <span style="color:red" ng-if="myForm.user.$dirty && myForm.user.$invalid">
  20. <span class="must_name" ng-if="myForm.user.$error.required" ng-bind="Username" style="top:0;"></span>
  21. <span class="must_name" ng-if="myForm.user.$error.minlength" ng-bind="greeting" style="top:0;"></span>
  22. <span class="must_name" ng-if="myForm.user.$error.maxlength" ng-bind="greeting" style="top:0;"></span>
  23. </span>
  24. </div>
  25. <button class="button button-block button-positive my_login" style="width: 90%;" type="submit" ng-click="setName()" ng-disabled=" myForm.user.$pristine||myForm.user.$invalid">
  26. <span ng-if="defaultLan == 'Chinese'">确认</span>
  27. <span ng-if="defaultLan == 'English'">affirm</span>
  28. </button>
  29. </form>
  30. <input type="file" name="file" id="file" accept="image/*" ng-model="changeFile" multiple style="display:none"/>
  31. </ion-view>