ソースを参照

抓娃娃页面bug修复

master
suizhijia 5年前
コミット
2fa3c8b16d
1個のファイルの変更2行の追加6行の削除
  1. +2
    -6
      496_dongfengqichen/pages/luckyStar/luckyStar.js

+ 2
- 6
496_dongfengqichen/pages/luckyStar/luckyStar.js ファイルの表示

query.select('.tipContent').boundingClientRect(); query.select('.tipContent').boundingClientRect();
var duration = 0;//动画时常 var duration = 0;//动画时常
query.exec((option) => { query.exec((option) => {
if(!option){
console.log("没有拿到节点信息");
if(!option || !option[1] || !option[0] || !option[1].width || !option[0].width){
setTimeout(()=>{ setTimeout(()=>{
this.getGameAwardList(); this.getGameAwardList();
},3000); },3000);
return; return;
} }
console.log(option[1].width);
duration = option[1].width < option[0].width ? 10 : option[1].width / option[0].width * 10; duration = option[1].width < option[0].width ? 10 : option[1].width / option[0].width * 10;
this.aniFun(duration * 1000, -option[1].width); this.aniFun(duration * 1000, -option[1].width);
if (res.data.length >= this.data.configure.count) { if (res.data.length >= this.data.configure.count) {
console.log("还有更多数据");
setTimeout(() => { setTimeout(() => {
this.aniFun(0, '100%'); this.aniFun(0, '100%');
this.data.configure.page += 1; this.data.configure.page += 1;
this.getGameAwardList(); this.getGameAwardList();
}, duration * 1000) }, duration * 1000)
} else { } else {
console.log("没有更多数据了");
// console.log("没有更多数据了");
setTimeout(() => { setTimeout(() => {
this.aniFun(0, '100%'); this.aniFun(0, '100%');
this.data.gameAwardListArr = this.data.gameAwardListArr.substring(0, this.data.gameAwardListArr.length - 2); this.data.gameAwardListArr = this.data.gameAwardListArr.substring(0, this.data.gameAwardListArr.length - 2);
if(this.data.pageUnload){ if(this.data.pageUnload){
return; return;
} }
console.log(1);
this.aniFun(duration, left); this.aniFun(duration, left);
setTimeout(() => { setTimeout(() => {
this.aniFun(0, '100%'); this.aniFun(0, '100%');

読み込み中…
キャンセル
保存