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.

project_invite_code.js 2.5 kB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * Created by guange on 16/6/22.
  3. */
  4. app.controller('ProjectInviteCodeController', ['$scope','$http', '$routeParams','config','auth','wx','common', function($scope, $http, $routeParams, config, auth,wx,common){
  5. var vm = $scope;
  6. vm.project = {};
  7. var projectid = $routeParams.id;
  8. $http.get(config.apiUrl+ 'projects/'+projectid+"?token="+auth.token()).then(
  9. function(response){
  10. console.log(response.data);
  11. vm.project = response.data.data;
  12. var desc = "您的好友邀请您加入项目:【"+vm.project.name+"】,和小伙伴一起踏上便捷的研发之旅吧!";
  13. var link = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+window.g_appid+
  14. "&redirect_uri="+window.g_localhost+"/wechat/user_activities?id="+vm.project.id+
  15. "&response_type=code&scope=snsapi_base&state=project_invite_code&connect_redirect=1#wechat_redirect";
  16. common.wxConfig("",desc,"",link);
  17. // wx.ready(function(){
  18. // wx.onMenuShareTimeline({
  19. // title: 'Trustie创新实践平台', // 分享标题
  20. //// link: 'http://www.trustie.net/', // 分享链接
  21. // imgUrl: 'http://www.trustie.net/images/logo2.png', // 分享图标
  22. // success: function () {
  23. // console.log("share successed.");
  24. // },
  25. // cancel: function () {
  26. // console.log("share canceled.");
  27. // }
  28. // });
  29. //
  30. // wx.onMenuShareAppMessage({
  31. // title: 'Trustie创新实践平台', // 分享标题
  32. // desc: desc, // 分享描述
  33. //// link: '', // 分享链接
  34. //// imgUrl: '', // 分享图标
  35. // imgUrl: 'http://www.trustie.net/images/logo2.png', // 分享图标
  36. //// type: '', // 分享类型,music、video或link,不填默认为link
  37. //// dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
  38. // success: function () {
  39. // // 用户确认分享后执行的回调函数
  40. // },
  41. // cancel: function () {
  42. // // 用户取消分享后执行的回调函数
  43. // }
  44. // });
  45. // });
  46. }
  47. );
  48. }]);

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