Commit dc732dff authored by jyx's avatar jyx

代码优化

parent 812c941d
...@@ -97,19 +97,21 @@ ...@@ -97,19 +97,21 @@
} }
}) })
} else if (this.listType == 1) { } else if (this.listType == 1) {
getRecommendV1(this.flag, 5, (success, data) => { getRecommendV1('hot', 5, (success, data) => {
if (success) { if (success) {
this.changeData(data) this.changeData(data)
} }
}) })
} else if (this.listType == 2) { } else if (this.listType == 2) {
getRecommendV1(this.flag, 8, (success, data) => { console.log('DDDDDDDD')
getRecommendV1('newbook', 8, (success, data) => {
if (success) { if (success) {
this.changeData(data) this.changeData(data)
} }
}) })
} else if (this.listType == 3) { } else if (this.listType == 3) {
getRecommendV1(this.flag, 8, (success, data) => { getRecommendV1('hot', 8, (success, data) => {
if (success) { if (success) {
this.changeData(data) this.changeData(data)
} }
......
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 to comment