Mike 7 yıl önce
ebeveyn
işleme
a6ba66a684

+ 1 - 5
miaomiao/package.json

xqd
@@ -48,11 +48,7 @@
     "jpush-phonegap-plugin@2.2.8"
   ],
   "cordovaPlatforms": [
-    {
-      "platform": "ios",
-      "version": "3.9.0",
-      "locator": "ios@3.9.0"
-    }
+    "ios"
   ],
   "cordova": {
     "plugins": {

+ 1 - 3
miaomiao/plugins/fetch.json

xqd
@@ -126,9 +126,7 @@
             "id": "cordova-plugin-wechat@^1.4.0"
         },
         "is_top_level": true,
-        "variables": {
-            "WECHATAPPID": "wxc5181c0d406023e6"
-        }
+        "variables": {}
     },
     "jpush-phonegap-plugin": {
         "source": {

+ 11 - 3
miaomiao/www/js/services/commonservice.js

xqd xqd
@@ -17,8 +17,8 @@
                     sourceType: 1,
                     allowEdit: true,
                     encodingType: 0,//0为jpg,1为png
-                    //targetHeight: 112,
-                    //targetWidth: 112
+                    targetHeight: 400,
+                    targetWidth: 750
                 };
                 var options = angular.extend(defaultCameraOptions, cameraOptions);
                 var sheetOptions = {
@@ -146,7 +146,15 @@
             },
             setAvator: function () {//上传头像
                 var deferred = $q.defer();
-                this.chooseImage().then(function (imageUri) {
+                var cameraOptions = {
+                    quality: 50,
+                    sourceType: 1,
+                    allowEdit: true,
+                    encodingType: 0,//0为jpg,1为png
+                    targetHeight: 200,
+                    targetWidth: 200
+                };
+                this.chooseImage(cameraOptions).then(function (imageUri) {
                     msg.text('上传中');
                     var uploadOptions = new FileUploadOptions();
                     uploadOptions.fileKey = "avatar";