function q(){
		 
		 //提示
		  layer.open({
		    content: '签到成功'
		    ,skin: 'msg'
		    ,time: 2 //2秒后自动关闭
		  });
	var userid = document.getElementById('userid').value;
	var o = {
		userid : userid,
		};
		
		var jsonuserinfo = JSON.stringify(o);
	$.ajax({
	type: "post",
	contentType:"application/json",
	url: "../qdadhere/update",
	data:  jsonuserinfo	,
	dataType: "json",
	success: function(result){
		 
		  window.location.href=window.location.href; 
		  window.location.reload; 
	}
	});
	
	}
	
	function tg(){
		  var title = document.getElementById('title').value;
		  var address = document.getElementById('address').value;
		  var down = document.getElementById('down').value;
		  var watermelon = document.getElementById('watermelon').value;
		  var shuoming = document.getElementById('shuoming').value;
		  var uid = document.getElementById('uid').value;
		  if(title.length==0||address.length==0||down.length==0||watermelon.length==0||shuoming.length==0||uid.length==0){
			  alert("每一个都要填上");
		  }else {
			  var o = {
		 				title : title,
		 				address : address,
		 				down : down,
		 				watermelon : watermelon,
		 				shuoming : shuoming,
		 				uid : uid
		 			};
		 			
		 			var jsonuserinfo = JSON.stringify(o);
			  $.ajax({
					type: "POST",
				    url: "../ucontribute/save",
				    data: jsonuserinfo,
				    contentType:"application/json",
				    dataType: "json",
				    success: function(result){
							 	document.getElementById("mmssgg").innerText = result.msg;
							 	alert(result.msg);
					}
				});
		}
	}