微信子商户号升级接口

master
dalong306 4 years ago
parent 81baeda230
commit 94a481be3f

@ -5689,7 +5689,12 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
// $scope.hideMerchantInfo = function () { // $scope.hideMerchantInfo = function () {
// $scope.showMoreMerchantInfo = !$scope.showMoreMerchantInfo; // $scope.showMoreMerchantInfo = !$scope.showMoreMerchantInfo;
// }; // };
$scope.updateSubMerchantId = function (merchant_app_id) { $scope.updateSubMerchantId = function (sub_merchant_id) {
angular.forEach($scope.subMerchantInfos, function (each) {
if(sub_merchant_id==each.sub_merchant_id){
$scope.merchant_app_id=each.merchant_app_id;
}
});
$uibModal.open({ $uibModal.open({
templateUrl: '/static/payment/partner/templates/update_apply_wx_sub_merchant_id.html', templateUrl: '/static/payment/partner/templates/update_apply_wx_sub_merchant_id.html',
controller: 'updateApplyWxSubMerchantIdCtrl', controller: 'updateApplyWxSubMerchantIdCtrl',
@ -5699,7 +5704,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
return $http.get('/sys/partners/' + $scope.partner.client_moniker + '/get_merchant_ids'); return $http.get('/sys/partners/' + $scope.partner.client_moniker + '/get_merchant_ids');
}], }],
subMerchantInfo: ['$http', '$stateParams', function ($http) { subMerchantInfo: ['$http', '$stateParams', function ($http) {
return $http.get('/sys/partners/' + $scope.partner.client_moniker + '/get_merchant_ids/' + merchant_app_id); return $http.get('/sys/partners/' + $scope.partner.client_moniker + '/get_merchant_ids/' + $scope.merchant_app_id);
}] }]
} }
}).result.then(function () { }).result.then(function () {

@ -93,9 +93,12 @@
ng-click="queryWechatSubMerchantIdStatus()"> ng-click="queryWechatSubMerchantIdStatus()">
<i class="fa fa-search"></i> Result <i class="fa fa-search"></i> Result
</button> </button>
<!--<button role="button" class="btn btn-info" title="modify Sub Merchant Id" disabled>--> <button role="button" class="btn btn-info" title="modify Sub Merchant Id" ng-if="partnerInfo.sub_merchant_id" ng-click="updateSubMerchantId(partnerInfo.sub_merchant_id)">
<!--Modify--> Modify
<!--</button>--> </button>
<button role="button" class="btn btn-info" title="modify Sub Merchant Id" ng-if="!partnerInfo.sub_merchant_id" disabled>
Modify
</button>
</div> </div>
</div> </div>
</div> </div>
@ -138,8 +141,8 @@
<a role="button" ng-click="useSubMerchantId(id_apply.sub_merchant_id)">Use</a> <a role="button" ng-click="useSubMerchantId(id_apply.sub_merchant_id)">Use</a>
<a role="button" style="margin-left: 10px;" <a role="button" style="margin-left: 10px;"
ng-click="checkDetail(id_apply,'Wechat')">Detail</a> ng-click="checkDetail(id_apply,'Wechat')">Detail</a>
<a role="button" style="margin-left: 10px;" <!--<a role="button" style="margin-left: 10px;"-->
ng-click="updateSubMerchantId(id_apply.merchant_app_id)">Modify</a> <!--ng-click="updateSubMerchantId(id_apply.merchant_app_id)">Modify</a>-->
</span> </span>
</li> </li>
</ul> </ul>

Loading…
Cancel
Save