li 7 years ago
parent
commit
3ec47bf827

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

122

122

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

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

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

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

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

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

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