Mike %!s(int64=9) %!d(string=hai) anos
pai
achega
f0b1ab5ee6

+ 1 - 0
wl/config.xml

xqd
@@ -31,6 +31,7 @@
     <icon height="50" src="resources/android/icon/icon.png" width="50"/>
     <icon height="100" src="resources/android/icon/icon.png" width="100"/>
   </platform>
+  <access origin="tel:*" launch-external="yes"/>
   <access origin="*"/>
   <allow-navigation href="*"/>
   <allow-intent href="*"/>

+ 4 - 2
wl/www/js/controllers/my.js

xqd xqd
@@ -53,7 +53,7 @@
         }
     }]);
     
-    app.controller('myProfileCtrl', ['$scope','$ionicActionSheet','$ionicPopup','userService', 'msg', 'util','data', function ($scope,$ionicActionSheet,$ionicPopup, userService, msg, util,data) {
+    app.controller('myProfileCtrl', ['$scope','$ionicActionSheet','$ionicPopup','$timeout','userService', 'msg', 'util','data', function ($scope,$ionicActionSheet,$ionicPopup,$timeout, userService, msg, util,data) {
         $scope.user = data.getObject('user');
         $scope.genderOpt = [
               { name: "男", value: 1 },
@@ -84,7 +84,9 @@
                                console.log('1111');
                              });
                         }else {
-                            $scope.user.avatar = imageUri;
+                            $timeout(function() {
+                                $scope.user.avatar = imageUri;
+                            });
                             var uploadOptions = new FileUploadOptions();
                             uploadOptions.fileKey = "photo";
                             uploadOptions.fileName = "avatar.jpg";

+ 1 - 1
wl/www/templates/car/detail.html

xqd
@@ -25,7 +25,7 @@
                     <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                 </div>
                 <div class="col-50">
-                    <a href="tel:{{vm.contact_phone}}" class="button button-full button-energized">拨打电话</a>
+                    <a ng-href="tel:{{vm.contact_phone}}" class="button button-full button-energized">拨打电话</a>
                 </div>
             </div>
         </div>   

+ 1 - 1
wl/www/templates/goods/detail.html

xqd
@@ -27,7 +27,7 @@
                     <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                 </div>
                 <div class="col-50">
-                    <a href="tel:{{vm.contact_phone}}" class="button button-full button-energized">拨打电话</a>
+                    <a ng-href="tel:{{vm.contact_phone}}" class="button button-full button-energized">拨打电话</a>
                 </div>
             </div>
         </div>