|
|
@ -481,6 +481,12 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
app.controller('partnerDetailCtrl', ['$scope', '$http', '$state', '$uibModal', '$rootScope', 'Upload', 'commonDialog', 'partner', function ($scope, $http, $state, $uibModal, $rootScope, Upload, commonDialog, partner) {
|
|
|
|
app.controller('partnerDetailCtrl', ['$scope', '$http', '$state', '$uibModal', '$rootScope', 'Upload', 'commonDialog', 'partner', function ($scope, $http, $state, $uibModal, $rootScope, Upload, commonDialog, partner) {
|
|
|
|
$scope.init = {wechat_compliance: false, local_merchant: false};
|
|
|
|
$scope.init = {wechat_compliance: false, local_merchant: false};
|
|
|
|
$scope.partner = partner.data;
|
|
|
|
$scope.partner = partner.data;
|
|
|
|
|
|
|
|
var website = partner.data.company_website;
|
|
|
|
|
|
|
|
if (website!=null){
|
|
|
|
|
|
|
|
if (website.indexOf('http')!=0){
|
|
|
|
|
|
|
|
$scope.partner.company_website= 'http://'+angular.copy(website);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
$scope.showDBUsers = function () {
|
|
|
|
$scope.showDBUsers = function () {
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/bd_user').then(function (resp) {
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/bd_user').then(function (resp) {
|
|
|
|
$scope.partner.client_bds = resp.data;
|
|
|
|
$scope.partner.client_bds = resp.data;
|
|
|
|