【R】广告位屏蔽同行业商户 fix

master
liuxinxin 5 years ago
parent 568f58d151
commit a637713283

@ -365,6 +365,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
app.controller('cmsArticleEditCtrl', ['$scope', '$http', '$state', '$stateParams', 'commonDialog', 'article', 'industryMap','stateMap',function ($scope, $http, $state, $stateParams, commonDialog, article,industryMap,stateMap) {
$scope.article = article.data;
$scope.article.publishall = $scope.article.publishall +"";
$scope.industries = industryMap.configs();
$scope.states = stateMap.configs();
@ -447,7 +448,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
$scope.toggleSelectIndustries($scope.industries[i].value)
}
}
if(!$scope.article.publishall){
if($scope.publishall == 1){
$scope.selectAllIndustries();
}
@ -469,7 +470,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
$scope.toggleStates($scope.states[i].value)
}
}
if(!$scope.article.publishall){
if($scope.publishall == 1){
$scope.selectAllIndustries();
}

@ -80,7 +80,7 @@
<label class="control-label col-sm-2">支付成功页面配置</label>
<div class="col-sm-8">
<div class="radio-inline">
<input type="radio" name="killOrder" value="1" ng-model="publishall" checked/>
<input type="radio" name="killOrder" value="1" ng-model="publishall"/>
<label>全量商户推送</label>
</div>
<div class="radio-inline">

Loading…
Cancel
Save