|
|
@@ -63,7 +63,7 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.editTakeSelf = function (addressTakeSelf) {
|
|
|
$modal.open({
|
|
|
templateUrl : 'static/view/vendor/modal/edit_address_takeSelf.html',
|
|
|
- controller : 'editAddrCtrl',
|
|
|
+ controller : 'editTakeSelfCtrl',
|
|
|
size : 'lg',
|
|
|
resolve : {
|
|
|
addressTakeSelf : function () {
|
|
|
@@ -90,7 +90,7 @@ define([ 'app/app' ], function(app) {
|
|
|
};
|
|
|
|
|
|
//地址编辑模态框
|
|
|
- app.register.controller('editAddrCtrl', ['$scope', '$rootScope', 'isModify', '$modalInstance', 'addressTakeSelf', 'nameList', '$http', function ($scope, $rootScope, isModify, $modalInstance, addressTakeSelf, nameList, $http) {
|
|
|
+ app.register.controller('editTakeSelfCtrl', ['$scope', '$rootScope', 'isModify', '$modalInstance', 'addressTakeSelf', 'nameList', '$http', function ($scope, $rootScope, isModify, $modalInstance, addressTakeSelf, nameList, $http) {
|
|
|
$scope.isModify = isModify;
|
|
|
$scope.nameList = nameList;
|
|
|
if (!addressTakeSelf){
|
|
|
@@ -171,7 +171,6 @@ define([ 'app/app' ], function(app) {
|
|
|
|
|
|
$scope.saveAddressTakeSelf = function () {
|
|
|
var address = $scope.takeSelf;
|
|
|
- console.log(address);
|
|
|
if (!address){
|
|
|
toaster.pop('error', '请补充未填写的信息');
|
|
|
return ;
|