Browse Source

修改相机相册,定位权限设置

li 7 years ago
parent
commit
18603a7611

+ 6 - 2
app/html/weChat.html

@ -807,7 +807,9 @@
807 807
											type: 'image',
808 808
											content: "file://" + plus.io.convertLocalFileSystemURL(path)
809 809
										});
810
									}, function(err) {});
810
									}, function(err) {
811
										plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
812
									});
811 813
									break;
812 814
								case 2:
813 815
									plus.gallery.pick(function(path) {
@ -816,7 +818,9 @@
816 818
											type: 'image',
817 819
											content: path
818 820
										});
819
									}, function(err) {}, null);
821
									}, function(err) {
822
										plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
823
									}, null);
820 824
									break;
821 825
							}
822 826
						});

+ 4 - 1
app/js/identity-up.js

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

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

+ 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
		plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
51 52
	}, {
52 53
		filename: ""
53 54
	})
@ -74,6 +75,7 @@ function galleryImg() {
74 75
		task.start();
75 76
	}, function(err) {
76 77
		console.log(JSON.stringify(err));
78
		plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
77 79
	}, {
78 80
		filter: 'image',
79 81
		multiple: false

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

@ -68,6 +68,7 @@ mui.plusReady(function() {
68 68
			});
69 69
		}, function(s) {
70 70
			console.log("error" + s);
71
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
71 72
		}, {
72 73
			filename: ""
73 74
		})
@ -79,6 +80,7 @@ mui.plusReady(function() {
79 80
			changeToLocalUrl(file);
80 81
		}, function(err) {
81 82
			console.log(JSON.stringify(err));
83
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
82 84
		}, {
83 85
			filter: 'image',
84 86
			multiple: false

+ 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
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相机,用于拍摄照片。", toastStyle);
83 84
		}, {
84 85
			filename: ""
85 86
		})
@ -105,6 +106,7 @@ mui.plusReady(function() {
105 106
			task.start();
106 107
		}, function(err) {
107 108
			console.log(JSON.stringify(err));
109
			plus.nativeUI.toast("请在系统设置中,允许科袖访问您的相册,用于上传照片。", toastStyle);
108 110
		}, {
109 111
			filter: 'image',
110 112
			multiple: false

+ 4 - 1
app/js/updateBasic-city.js

@ -90,7 +90,10 @@ mui.ready(function() {
90 90
			});
91 91
		}
92 92
		document.getElementById('currentLocation').addEventListener("tap",function(){
93
			if(suc==0) return;
93
			if(suc==0) {
94
				plus.nativeUI.toast("请在系统设置中,打开定位服务,并允许科袖访问您的位置信息。", toastStyle);
95
				return;
96
			}
94 97
			cityResult.innerText = oadd.address + "-" + oadd.province;
95 98
			city=oadd.address;
96 99
			province=oadd.province;