bng1016 6 napja
szülő
commit
cdb589510f
5 módosított fájl, 38 hozzáadás és 38 törlés
  1. 1 1
      common/permission.js
  2. 7 7
      manifest.json
  3. 10 10
      pages/login/login - copy.vue
  4. 10 10
      pages/login/login.vue
  5. 10 10
      pages/login/reg.vue

+ 1 - 1
common/permission.js

@@ -381,7 +381,7 @@ class PermissionManager {
     // #ifdef APP-PLUS
     if (isIos) {
       // iOS权限请求逻辑
-      return false;
+      return true;
     } else {
       // Android权限请求
       const result = await ANDROID_PERMISSION_HANDLERS.request(config.androidPermission);

+ 7 - 7
manifest.json

@@ -67,7 +67,13 @@
             "ios" : {
                 "UIBackgroundModes" : "",
                 "dSYMs" : false,
-                "idfa" : false
+                "idfa" : false,
+                "privacyDescription" : {
+                    "NSPhotoLibraryUsageDescription" : "注册时用户上传自定义头像图片",
+                    "NSPhotoLibraryAddUsageDescription" : "用于保存生成的作品图片",
+                    "NSCameraUsageDescription" : "在探索板块用于拍摄上传图片和注册时用户头像支持拍摄图片上传",
+                    "NSMicrophoneUsageDescription" : ""
+                }
             },
             "sdkConfigs" : {
                 "ad" : {},
@@ -86,12 +92,6 @@
                 "oauth" : {
                     "univerify" : {}
                 },
-                "push" : {
-                    "unipush" : {
-                        "version" : "2",
-                        "offline" : false
-                    }
-                },
                 "geolocation" : {
                     "system" : {
                         "__platform__" : [ "android" ]

+ 10 - 10
pages/login/login - copy.vue

@@ -119,16 +119,16 @@ export default {
 			})
 		}, 200);
 		let that = this;
-		uni.getPushClientId({
-			success: (res) => {
-				console.log("su:", res.cid);
-				that.push_token = res.cid;
-			},
-			fail(err) {
-				that.push_token = '';
-				console.log(err)
-			}
-		});
+		// uni.getPushClientId({
+		// 	success: (res) => {
+		// 		console.log("su:", res.cid);
+		// 		that.push_token = res.cid;
+		// 	},
+		// 	fail(err) {
+		// 		that.push_token = '';
+		// 		console.log(err)
+		// 	}
+		// });
 	},
 	onShow() {
 		// let hsign = pubc.Encrypt("aboa-wifl-kwfl-zjfk-wlaa_FA0412932BAE9D98506580ADB348BEF9");

+ 10 - 10
pages/login/login.vue

@@ -219,16 +219,16 @@
 				})
 			}, 200);
 			let that = this;
-			uni.getPushClientId({
-				success: (res) => {
-					console.log("su:", res.cid);
-					that.push_token = res.cid;
-				},
-				fail(err) {
-					that.push_token = '';
-					console.log(err)
-				}
-			});
+			// uni.getPushClientId({
+			// 	success: (res) => {
+			// 		console.log("su:", res.cid);
+			// 		that.push_token = res.cid;
+			// 	},
+			// 	fail(err) {
+			// 		that.push_token = '';
+			// 		console.log(err)
+			// 	}
+			// });
 			let channelStr = channel && channel.getCurrentStore() && channel.getCurrentStore().channel;
 			if (channelStr && channelStr == 'huawei') {
 				this.univerifyStyle.privacyTerms.defaultCheckBoxState = false;

+ 10 - 10
pages/login/reg.vue

@@ -102,16 +102,16 @@
 			}, 200);
 			let that = this;
 			// #ifdef APP-PLUS
-			uni.getPushClientId({
-				success: (res) => {
-					console.log("su:", res.cid);
-					that.push_token = res.cid;
-				},
-				fail(err) {
-					that.push_token = '';
-					console.log(err)
-				}
-			});
+			// uni.getPushClientId({
+			// 	success: (res) => {
+			// 		console.log("su:", res.cid);
+			// 		that.push_token = res.cid;
+			// 	},
+			// 	fail(err) {
+			// 		that.push_token = '';
+			// 		console.log(err)
+			// 	}
+			// });
 			// #endif
 		},
 		onShow() {