UserInfoChange.js 731 B

1234567891011121314151617181920212223
  1. 
  2. function User_save() {
  3. var userID = $("#UserID").val();
  4. var code = $("#StaffCode").val();
  5. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Staff/Verification', { userID: userID, code: code }, function (data) {
  6. if (data == "成功") {
  7. $(document.forms[0]).submit();
  8. } else {
  9. $.messager.alert("系统提示", data);
  10. }
  11. });
  12. }
  13. function delPhoto() {
  14. var userID = $("#UserID").val();
  15. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Staff/DeletePhoto', { userID: userID }, function (data) {
  16. if (data.IsSuccess) {
  17. $("#imgPhoto").attr('src', '');
  18. } else {
  19. $.messager.alert("系统提示", data.Message);
  20. }
  21. });
  22. }