order.js 1.03 KB
function showExpressDetail(orderCode) {
			$('#tipbox' + orderCode).show();
			$.ajax({
				url:'/home/orders/expressdetail?ordercode=' + orderCode,
				cache:false,
				success: function (data) {
					$('#expressContent' + orderCode).html(data); 
				},
				dataType: "html"
			});		
		}


		function hideExpressDetail(orderCode) {
			$('#expressContent' + orderCode).html('<span class="logistics-tips-warn">正在加载,请稍侯...</span>');
			$('#tipbox' + orderCode).hide();
		}

		function loadVerifyCode(orderCode){
			$('#verifyCodeLoading' + orderCode).hide();
			$('#verifyCodeShow' + orderCode).show();
		}

		function fetchByVerifycode(orderCode){
			var verifyCode = $('#inputVerifyCode' + orderCode).val();
			if($.trim(verifyCode) == '') {
				alert('验证码不能为空');
				return ;
			}
			$.ajax({
				url:'/home/orders/fetchbycode?ordercode=' + orderCode + "&verifycode=" + verifyCode,
				cache:false,
				success: function (data) {
					$('#expressContent' + orderCode).html(data); 
				},
				dataType: "html"
			});		
		}