暫無描述

base.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //公共文件
  2. mui.init();
  3. var baseUrl = "http://www.ekexiu.com:81",
  4. toastStyle = {
  5. 'verticalAlign': 'top'
  6. }
  7. function goHome() {
  8. mui.openWindow({
  9. url: '../index.html',
  10. id: '../index.html',
  11. show: {
  12. aniShow: "slide-in-right"
  13. }
  14. });
  15. }
  16. function goLoginFun() {
  17. mui.openWindow({
  18. url: '../html/login.html',
  19. id: '../html/login.html',
  20. show: {
  21. aniShow: "slide-in-bottom"
  22. }
  23. });
  24. }
  25. function goRegFun() {
  26. mui.openWindow({
  27. url: '../html/reg.html',
  28. id: '../html/reg.html',
  29. show: {
  30. aniShow: "slide-in-bottom"
  31. }
  32. });
  33. }
  34. /*校验下一步按钮显示状态*/
  35. function hideButtn(oneName,twoName,threeName,fourName) {
  36. if(oneName.value == "" || twoName.value == "") {
  37. threeName.classList.remove(fourName);
  38. threeName.disabled = "disabled";
  39. } else {
  40. threeName.classList.add(fourName);
  41. threeName.disabled = "";
  42. }
  43. }
  44. function hideButtn2(oneName,twoName,threeName,fourName,fiveName) {
  45. if(oneName.value == "" || twoName.value == "" || fiveName.value == "") {
  46. threeName.classList.remove(fourName);
  47. threeName.disabled = "disabled";
  48. } else {
  49. threeName.classList.add(fourName);
  50. threeName.disabled = "";
  51. }
  52. }