You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. app.controller('RegController', ['$scope', '$http', '$location', 'alertService','$location',
  2. function ($scope, $http, $location, alertService, $location) {
  3. var vm = $scope;
  4. vm.errDialog = alertService.create();
  5. vm.successDialog = alertService.create();
  6. vm.goLogin = function () {
  7. $location.path("/login");
  8. }
  9. vm.isagreed = true;
  10. vm.agreed = function (_isagreed) {
  11. vm.isagreed = !_isagreed;
  12. };
  13. vm.reg = function (frm, user) {
  14. frm.$setSubmitted();
  15. console.log(frm);
  16. if (!frm.$valid) {
  17. console.log(frm.$error);
  18. return;
  19. }
  20. console.log(user);
  21. $http.post(
  22. apiUrl + "users",
  23. {login: user.username, password: user.password, mail: user.email}
  24. ).then(function (response) {
  25. if (response.data.status != 0) {
  26. vm.errDialog.showMessage('出错了',response.data.message);
  27. } else {
  28. vm.successDialog.showMessage("提示","注册且绑定微信成功", function(){
  29. // $location.path("/activities");
  30. window.WeixinJSBridge.call('closeWindow');
  31. });
  32. }
  33. }, function (response) {
  34. vm.errDialog.showMessage('出错了',response.data);
  35. });
  36. }
  37. }]);

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...