lyuis 7 mesi fa
parent
commit
f03bab4cc7
4 ha cambiato i file con 24 aggiunte e 5 eliminazioni
  1. 0 1
      common/queue.js
  2. 4 0
      manifest.json
  3. 3 4
      pages/index/index.vue
  4. 17 0
      pages/msg/im.vue

+ 0 - 1
common/queue.js

@@ -486,7 +486,6 @@ module.exports = {
 			if (permission === 'album') realScope = scopeMap.albumRead;
 			else if (permission === 'albumWrite') realScope = scopeMap.albumWrite;
 			else if (scopeMap[permission]) realScope = scopeMap[permission];
-
 			// 步骤2:获取权限状态并校验
 			permisionObj.getSetting({
 				success: (res) => {

+ 4 - 0
manifest.json

@@ -149,6 +149,10 @@
                         "spotlight@3x" : "unpackage/res/icons/120x120.png"
                     }
                 }
+            },
+            "splashscreen" : {
+                "useOriginalMsgbox" : true,
+                "androidStyle" : "common"
             }
         },
         "nvueCompiler" : "uni-app",

+ 3 - 4
pages/index/index.vue

@@ -710,7 +710,7 @@
 			this.statusBarHeight = systemInfo.statusBarHeight || 0;
 			this.companyId = uni.getStorageSync('companyId');
 			// #ifdef APP
-			this.getAudioPermision()
+			/* this.getAudioPermision() */
 			// #endif
 			// 获取邀请码保存到本地
 			if (e.invitation) {
@@ -879,7 +879,6 @@
 			}
 			if (this.token) {
 				this.getUserInfo();
-
 				if (this.userType == 1) {
 					this.getJobType();
 				} else {
@@ -1304,7 +1303,7 @@
 					page: this.page,
 					limit: this.limit,
 					postType: '', //工作性质
-					expectedPosition: this.jobSxTypeList[this.currentJobSx].projectName, //岗位名称
+					expectedPosition: this.jobSxTypeList.length>0?this.jobSxTypeList[this.currentJobSx].projectName:'', //岗位名称
 					screen: +this.currentJobSxs + 1, //1推荐 2最新
 					expectedCity: this.city == '全国' ? '' : this.city, //城市
 					salaryRange: this.salaryRange, //薪资范围
@@ -1470,7 +1469,7 @@
 					page: this.page,
 					limit: this.limit,
 					//postType: this.typeList.length > 0 ? this.typeList[this.current].id : '',
-					ruleClassifyName: this.typeList[this.current].name, //岗位名称
+					ruleClassifyName: this.typeList.length>0?this.typeList[this.current].name:'', //岗位名称
 					screen: +this.currentSx + 1, //1推荐 2最新
 					county: this.county, //区
 					city: this.city == '全国' ? '' : this.city, //城市

+ 17 - 0
pages/msg/im.vue

@@ -875,6 +875,7 @@
 	import configdata from '../../common/config.js';
 	import emoji from '../../common/emoji.json';
 	import attachment from '../../components/attachment.vue'
+	import permision from '@/js_sdk/wa-permission/permission.js'
 	export default {
 		components: {
 			attachment
@@ -1109,6 +1110,9 @@
 				}
 				uni.hideLoading();
 			});
+			// #ifdef APP
+				this.getAudioPermision()
+			// #endif
 		},
 		onShow() {
 			if (this.chatConversationId) {
@@ -1155,6 +1159,19 @@
 			goBack() {
 				uni.navigateBack();
 			},
+			//获取麦克风/摄像头权限
+			async getAudioPermision() {
+				let status = permision.isIOS ? await permision.judgeIosPermission("record") : await permision
+					.requestAndroidPermission("android.permission.RECORD_AUDIO")
+				let status2 = permision.isIOS ? await permision.judgeIosPermission("camera") : await permision
+					.requestAndroidPermission("android.permission.CAMERA")
+				if (status === null || status === 1 || status == true) { //已经同意授权
+					console.log('获取到权限了')
+			
+				} else { //未授权的
+					this.popupshowsq = true
+				}
+			},
 			// 显示更多选项
 			showMoreOptions() {
 				return this.$queue.showToast('waiting...')