Post/get

来自ling
跳转至: 导航搜索
        
        $http.post(path + 'order/getPreOrder.ljson',{prdides:$scope.prdides,commidityItemIdes:$scope.commidityItemIdes,buy_numes:$scope.buy_numes}).
        success(function (data, status, headers, config) {
            if (data.status == 0 && data.data != null) {
            	$scope.order=data.data;
            	if(data.data.currentAddress!=null){
            		$scope.currentAddress=data.data.currentAddress;
            	}
            	$scope.addresses=data.data.addresses;
            } else {
            	processErroCode(data);
            }
        }).
        error(function (data, status, headers, config) {

        });
    	$http.get(path + 'user/userinfoWithLogin.ljson').
        success(function (data, status, headers, config) {
            if (data.status == 0 && data.data != null) {
            	$scope.user=data.data;
            } else {
            	processErroCode(data);
            }
        }).
        error(function (data, status, headers, config) {

        });