diff --git a/components/hot/index.js b/components/hot/index.js index 2416774..6b309da 100644 --- a/components/hot/index.js +++ b/components/hot/index.js @@ -80,10 +80,11 @@ Component({ }, // 换一换 getChange(){ - if (this.kSize != 1 && that.kSize != 0){ + let that = this + if (that.kSize != 1 && that.kSize != 0){ that.getList(1) } - if (this.pSize != 1 && that.pSize != 0) { + if (that.pSize != 1 && that.pSize != 0) { that.getList(2) } },