Commit 1910b8c5 authored by 邱旭's avatar 邱旭

1

parent 16b88d7b
......@@ -40,9 +40,6 @@ export default class Turntable extends Panel {
async start(data?) {
super.start();
if(data.onceAgain) { // 再抽一次
this.onTapStart();
}
this['container'].addChild(this.data.mv);
this.hand = await loadSvga(getResPath() + 'resource/assets/svgas/hand.svga', this['container2'])
this['container2'].touchEnabled = false;
......@@ -292,6 +289,10 @@ export default class Turntable extends Panel {
RotaryData.key.push(v.categoryType);
RotaryData.data[v.categoryType] = [{start: i * 60 - 20, end: i * 60 + 20}];
this[`img${i}`].source = v.prizeImg;
if(data.onceAgain) { // 再抽一次
this.onTapStart();
}
}
});
......
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