|
|
@@ -643,16 +643,16 @@ define(['app/app'], function (app) {
|
|
|
}
|
|
|
|
|
|
function saveProducts() {
|
|
|
- console.log($scope.storeInfo.uuid);
|
|
|
+ // console.log($scope.storeInfo.uuid);
|
|
|
RecommendProductService.saveProductsWhenSellerUpdate($scope.storeInfo.uuid, $scope.recommendProducts).then(function (products) {
|
|
|
$scope.recommendProducts = products;
|
|
|
$scope.backupProducts = angular.copy(products);
|
|
|
cancleProductEdit('BATCH_OPERATION');
|
|
|
toaster.pop('success', '保存成功');
|
|
|
}, function (error) {
|
|
|
- console.log(error);
|
|
|
- $scope.recommendProducts = [];
|
|
|
- $scope.backupProducts = [];
|
|
|
+ toaster.pop('error', error.data);
|
|
|
+ // $scope.recommendProducts = [];
|
|
|
+ // $scope.backupProducts = [];
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -707,9 +707,9 @@ define(['app/app'], function (app) {
|
|
|
cancleProductEdit('EDIT_PRODUCTS');
|
|
|
toaster.pop('success', '保存成功');
|
|
|
}, function (error) {
|
|
|
- console.log(error);
|
|
|
- $scope.recommendProducts = [];
|
|
|
- $scope.backupProducts = [];
|
|
|
+ toaster.pop('error', error.data);
|
|
|
+ // $scope.recommendProducts = [];
|
|
|
+ // $scope.backupProducts = [];
|
|
|
});
|
|
|
}
|
|
|
|