add client_partner_detail googleMap

master
luoyang 6 years ago
parent eb24dd7ad4
commit 8e0d916897

@ -70,6 +70,13 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
$scope.partner = partner.data; $scope.partner = partner.data;
$scope.partner.partner_type = $scope.partner.website ? 'website' : 'photo'; $scope.partner.partner_type = $scope.partner.website ? 'website' : 'photo';
$scope.getMerchantLocation = function () {
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/location').then(function (resp) {
$scope.merchant_location = resp.data;
});
};
$scope.getMerchantLocation();
$scope.uploadLogo = function (file) { $scope.uploadLogo = function (file) {
if (file != null) { if (file != null) {
if (file.size > 1 * 1024 * 1024) { if (file.size > 1 * 1024 * 1024) {

@ -303,6 +303,19 @@
</div> </div>
</div> </div>
</div> </div>
<span id="merchant_location" hidden>{{merchant_location}}</span>
<div class="panel panel-default">
<div class="panel-heading" style="font-size: larger">Location
<span id="editmap" hidden>false</span>
<span id="add_view" hidden>false</span>
</div>
<div class="form-group">
<div class="embed-responsive" style="height: 300px;">
<iframe id="merchant_detail" name="merchant_detail" class="embed-responsive-item"
src="one_locations.html"></iframe>
</div>
</div>
</div>
</div> </div>
<div ng-show="partner.source == 4 && (partner.approve_result !=3 && partner.approve_result !=1)"> <div ng-show="partner.source == 4 && (partner.approve_result !=3 && partner.approve_result !=1)">
<form class="form-horizontal" novalidate name="partnerForm"> <form class="form-horizontal" novalidate name="partnerForm">

Loading…
Cancel
Save