Mike 9 年之前
父節點
當前提交
f0b1ab5ee6
共有 4 個文件被更改,包括 7 次插入4 次删除
  1. 1 0
      wl/config.xml
  2. 4 2
      wl/www/js/controllers/my.js
  3. 1 1
      wl/www/templates/car/detail.html
  4. 1 1
      wl/www/templates/goods/detail.html

+ 1 - 0
wl/config.xml

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

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

@@ -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.user = data.getObject('user');
         $scope.genderOpt = [
         $scope.genderOpt = [
               { name: "男", value: 1 },
               { name: "男", value: 1 },
@@ -84,7 +84,9 @@
                                console.log('1111');
                                console.log('1111');
                              });
                              });
                         }else {
                         }else {
-                            $scope.user.avatar = imageUri;
+                            $timeout(function() {
+                                $scope.user.avatar = imageUri;
+                            });
                             var uploadOptions = new FileUploadOptions();
                             var uploadOptions = new FileUploadOptions();
                             uploadOptions.fileKey = "photo";
                             uploadOptions.fileKey = "photo";
                             uploadOptions.fileName = "avatar.jpg";
                             uploadOptions.fileName = "avatar.jpg";

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

@@ -25,7 +25,7 @@
                     <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                     <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                 </div>
                 </div>
                 <div class="col-50">
                 <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>
             </div>
         </div>   
         </div>   

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

@@ -27,7 +27,7 @@
                     <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                     <button type="button" ng-click="bill()" class="button button-full button-positive">立马拍单</button>
                 </div>
                 </div>
                 <div class="col-50">
                 <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>
             </div>
         </div>   
         </div>