Commit 457c98e6 by 梁建民

BUG

parent 8437b574
...@@ -46,7 +46,7 @@ const actions = { ...@@ -46,7 +46,7 @@ const actions = {
let param = { let param = {
data_id: payload.id, data_id: payload.id,
download:payload.download download: payload.download
} }
let params = Util.getParams(param); let params = Util.getParams(param);
...@@ -58,12 +58,12 @@ const actions = { ...@@ -58,12 +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){ if (payload.download == 1) {
Toast({ Toast({
message: data.err_msg, message: data.err_msg,
duration: 2000 duration: 2000
}); });
}else{ } else {
if (platform == 'ios') { if (platform == 'ios') {
Toast({ Toast({
message: '该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n', message: '该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n',
...@@ -103,8 +103,9 @@ const actions = { ...@@ -103,8 +103,9 @@ const actions = {
forbidClick: true, forbidClick: true,
loadingType: 'spinner' loadingType: 'spinner'
}); });
let param={ let param = {
class_id:payload.class_id limit: 200,
class_id: payload.class_id
} }
let params = Util.getParams(param); let params = Util.getParams(param);
Services.articleShowData(params).then((res) => { Services.articleShowData(params).then((res) => {
...@@ -128,11 +129,8 @@ const actions = { ...@@ -128,11 +129,8 @@ const actions = {
}, },
showClass({commit}, payload) { showClass({commit}, payload) {
let param={
limit:200
}
var params = Util.getParams(param); var params = Util.getParams();
Services.showClass(params).then((res) => { Services.showClass(params).then((res) => {
let data = res.data; let data = res.data;
......
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