eason.qian 7 years ago
parent 5e4e794d6d
commit 49ac845d23

@ -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;

@ -361,7 +361,7 @@
<div class="col-sm-10"> <div class="col-sm-10">
<a class="form-control-static" target="_blank" ng-bind="partner.company_website" <a class="form-control-static" target="_blank" ng-bind="partner.company_website"
href="https://{{partner.company_website}}"></a> href="{{partner.company_website}}"></a>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

Loading…
Cancel
Save