gjy преди 2 години
родител
ревизия
f59af9b0ff

+ 2 - 2
pages/mine/cargoowner/addEnerprise.vue

@@ -156,7 +156,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()
@@ -215,7 +215,7 @@
 								if(photol == false){
 									uni.showModal({
 									    title: '提示',
-									    content: '您已经关闭相权限,去设置',
+									    content: '您已经关闭相权限,去设置',
 									    success: function (res) {
 									        if (res.confirm) {
 									            plus.runtime.openURL("app-settings:");

+ 1 - 1
pages/mine/cargoowner/editEnerprise.vue

@@ -149,7 +149,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()

+ 1 - 1
pages/mine/cargoowner/editpersonalinformation.vue

@@ -178,7 +178,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()

+ 1 - 1
pages/mine/company/addcompany.vue

@@ -308,7 +308,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()

+ 21 - 0
pages/mine/company/companyvideo.nvue

@@ -77,6 +77,7 @@
 
 	<script>
 		import uploadImage from '@/components/ossutil/uploadFile.js';
+	import permision from "@/js_sdk/wa-permission/permission.js"
 		var videoFilePath;
 		export default {
 			data() {
@@ -96,6 +97,9 @@
 
 				}
 			},
+			onLoad() {
+				this.get_camera_permission()
+			},
 			onShow() {
 				uni.getSystemInfo({
 					success: (res) => {
@@ -120,6 +124,23 @@
 			},
 
 			methods: {
+				async get_camera_permission() {
+					var photol=await permision.requestAndroidPermission("android.permission.RECORD_AUDIO")
+					if(photol == false){
+						uni.showModal({
+							title: '提示',
+							content: '您未开启音频权限,去设置',
+							success: function (res) {
+								if (res.confirm) {
+									permision.gotoAppPermissionSetting()
+										            // plus.runtime.openURL("app-settings:");
+								} else if (res.cancel) {
+									console.log('用户点击取消');
+								}
+							}
+						});	
+					}
+				},
 				saveVideo() {
 					uni.$u.route('/pages/mine/company/addcompany');
 				},

+ 1 - 1
pages/mine/company/editcompany.vue

@@ -308,7 +308,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()

+ 1 - 1
pages/mine/manageBankCards/addBankCard.vue

@@ -129,7 +129,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()

+ 1 - 1
pages/mine/manageBankCards/editBankCard.vue

@@ -85,7 +85,7 @@
 				if(photol == false){
 					uni.showModal({
 						title: '提示',
-						content: '您已经关闭相权限,去设置',
+						content: '您已经关闭相权限,去设置',
 						success: function (res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()