li 7 years ago
parent
commit
3ec47bf827

+ 2 - 0
app/js/identity-up.js

@ -122,6 +122,7 @@ function galleryImg() {
122 122

123 123
	}, function(e) {
124 124
		console.log("取消选择图片");
125
		if(e.code==8) 
125 126
		plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
126 127
	}, {
127 128
		filename: "_doc/camera/",
@ -142,6 +143,7 @@ function getImage() {
142 143
			plus.nativeUI.toast("读取拍照文件错误:" + e.message);
143 144
		});
144 145
	}, function(e) {
146
		if(e.code==11)
145 147
		plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
146 148
	}, {
147 149
		filename: "_doc/camera/",

+ 2 - 0
app/js/public-authentication.js

@ -48,6 +48,7 @@ function getImage() {
48 48
		});
49 49
	}, function(s) {
50 50
		console.log("error" + s);
51
		if(s.code==11)
51 52
		plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
52 53
	}, {
53 54
		filename: ""
@ -75,6 +76,7 @@ function galleryImg() {
75 76
		task.start();
76 77
	}, function(err) {
77 78
		console.log(JSON.stringify(err));
79
		if(err.code==8) 
78 80
		plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
79 81
	}, {
80 82
		filter: 'image',

+ 1 - 0
app/js/public/upload-avatar.js

@ -81,6 +81,7 @@ mui.plusReady(function() {
81 81
			changeToLocalUrl(file);
82 82
		}, function(err) {
83 83
			console.log(JSON.stringify(err));
84
			if(err.code==8) 
84 85
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
85 86
		}, {
86 87
			filter: 'image',

+ 2 - 0
app/js/qa-going-q-02.js

@ -80,6 +80,7 @@ mui.plusReady(function() {
80 80
			});
81 81
		}, function(s) {
82 82
			console.log("error" + s);
83
			if(s.code==11)
83 84
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
84 85
		}, {
85 86
			filename: ""
@ -106,6 +107,7 @@ mui.plusReady(function() {
106 107
			task.start();
107 108
		}, function(err) {
108 109
			console.log(JSON.stringify(err));
110
			f(err.code==8) 
109 111
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
110 112
		}, {
111 113
			filter: 'image',