beat: function() {
var that = this
var see = that.popularity_see
var click = that.popularity_click
var stop_see = false
var stop_click = false
if (see < that.popularity.see) {
see = see + 1
} else {
stop_see = true
}
if (click < that.popularity.click) {
click = click + 1
} else {
stop_click = true
}
that.setData({
popularity_click: click,
popularity_see: see
})
if (stop_click == false || stop_see == false) {
setTimeout(that.beat_popularity, 10)
}
}
},
shenxianyan
- 发布:2018-10-20 00:33
- 更新:2019-02-14 17:01
- 阅读:1670
1 个回复
zino
同样的问题