Commit 7127ca26 by 梁建民

js

parent 19e6b160
...@@ -58,6 +58,12 @@ const actions = { ...@@ -58,6 +58,12 @@ const actions = {
if (data.err_code == 0) { if (data.err_code == 0) {
let platform = Util.isUerAgent(); let platform = Util.isUerAgent();
if(payload.download == 1){
Toast({
message: data.err_msg,
duration: 2000
});
}else{
if (platform == 'ios') { if (platform == 'ios') {
Toast({ Toast({
message: '该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n', message: '该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n',
...@@ -69,15 +75,14 @@ const actions = { ...@@ -69,15 +75,14 @@ const actions = {
} else { } else {
window.location.href = data.data[0].file_url; window.location.href = data.data[0].file_url;
} }
}
} else if (data.err_code == 1) { } else if (data.err_code == 1) {
Toast({ Toast({
message: data.err_msg, message: data.err_msg,
duration: 2000 duration: 2000
}); });
setTimeout(function () {
window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownoad&from=download'
}, 2000);
} else { } else {
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment