|
@@ -63,7 +63,7 @@ define(['app/app'], function (app) {
|
|
|
getData : function ($defer, params) {
|
|
getData : function ($defer, params) {
|
|
|
var param = BaseService.parseParams(params.url());
|
|
var param = BaseService.parseParams(params.url());
|
|
|
param.isSend = false;
|
|
param.isSend = false;
|
|
|
- ShippingAddress.pageAddressOfUser(param, {}, function (page) {
|
|
|
|
|
|
|
+ ShippingAddress.getEnterprise(param, {}, function (page) {
|
|
|
$scope.isBiggerFive = false;
|
|
$scope.isBiggerFive = false;
|
|
|
$scope.total = page.totalElements;
|
|
$scope.total = page.totalElements;
|
|
|
params.total(page.totalElements);
|
|
params.total(page.totalElements);
|
|
@@ -182,7 +182,7 @@ define(['app/app'], function (app) {
|
|
|
ShippingAddress.save({
|
|
ShippingAddress.save({
|
|
|
isSetTop: $scope.isSetTop,
|
|
isSetTop: $scope.isSetTop,
|
|
|
send: $scope.isSendType,
|
|
send: $scope.isSendType,
|
|
|
- isPersonal: !$scope.isSendType
|
|
|
|
|
|
|
+ isPersonal: $scope.isSendType
|
|
|
}, address, function () {
|
|
}, address, function () {
|
|
|
toaster.pop('success', '成功 ', '保存收货地址成功');
|
|
toaster.pop('success', '成功 ', '保存收货地址成功');
|
|
|
$scope.loadAddresses();
|
|
$scope.loadAddresses();
|
|
@@ -321,7 +321,7 @@ define(['app/app'], function (app) {
|
|
|
ShippingAddress.save({
|
|
ShippingAddress.save({
|
|
|
isSetTop: $scope.isSetTop,
|
|
isSetTop: $scope.isSetTop,
|
|
|
send: $scope.isSendType,
|
|
send: $scope.isSendType,
|
|
|
- isPersonal: !$scope.isSendType
|
|
|
|
|
|
|
+ isPersonal: $scope.isSendType
|
|
|
}, address, function (data) {
|
|
}, address, function (data) {
|
|
|
toaster.pop('success', '成功 ', '保存收货地址成功');
|
|
toaster.pop('success', '成功 ', '保存收货地址成功');
|
|
|
$modalInstance.close(data);
|
|
$modalInstance.close(data);
|