微信项目二维码修改

This commit is contained in:
yuanke 2016-08-01 13:54:10 +08:00
parent 84f0069cbd
commit fa43924330
3 changed files with 9 additions and 15 deletions

View File

@ -934,7 +934,7 @@ class Project < ActiveRecord::Base
response = Wechat.api.qrcode_create_scene(invite_code, 2592000) response = Wechat.api.qrcode_create_scene(invite_code, 2592000)
logger.debug "response = #{response}" logger.debug "response = #{response}"
self.qrcode = response['ticket'] self.qrcode = response['ticket']
save! && reload save!
ticket = qrcode ticket = qrcode
end end
ticket ticket

View File

@ -30,13 +30,10 @@ app.controller('EditClassMemberController', ['$scope', '$http', 'auth', 'config'
console.log(vm.current_edit_member); console.log(vm.current_edit_member);
vm.cancel = function(){ vm.cancel = function(){
vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){ // vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
// rms.save("project_master_members",[]); // window.history.back();
// rms.save("project_develop_members",[]); // });
// rms.save("project_report_members",[]); window.history.back();
window.history.back();
// $location.path("/project").search({id: project_id});
});
}; };
vm.edit_member_role = function(){ vm.edit_member_role = function(){

View File

@ -31,13 +31,10 @@ app.controller('EditProjectMemberController', ['$scope', '$http', 'auth', 'confi
console.log(vm.current_edit_member); console.log(vm.current_edit_member);
vm.cancel = function(){ vm.cancel = function(){
vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){ // vm.alertService.showMessage('提示', '您确定不对角色进行变更吗?', function(){
// rms.save("project_master_members",[]); // window.history.back();
// rms.save("project_develop_members",[]); // });
// rms.save("project_report_members",[]); window.history.back();
window.history.back();
// $location.path("/project").search({id: project_id});
});
}; };
vm.edit_member_role = function(){ vm.edit_member_role = function(){