Commit 01bd4a11 authored by wildfirecode's avatar wildfirecode

1

parent 92739795
......@@ -12,11 +12,11 @@ export default class PrizePanel extends Panel {
_level;
updateOption(option: any) {
const { categoryType, img, num, propType,realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
const { categoryType, img, num, propType, realValue } = option;// 2次数 3道具 4元宝 5实物 6优惠券 7虚拟商品
this['propnums'].text = 'x1';
this['propnums2'].text = 'x1';
if(num){
if (num) {
this['propnums'].text = 'x' + num;
this['propnums2'].text = 'x' + num;
}
......@@ -34,7 +34,7 @@ export default class PrizePanel extends Panel {
this['numsgroup'].visible = false;
this['propnums2'].visible = true;
this['money'].visible = true;
this['propnums2'].text = realValue;
this['propnums2'].text = realValue;
break;
default:
this['img'].visible = true;
......@@ -42,12 +42,12 @@ export default class PrizePanel extends Panel {
break;
}
}
start(data) {
super.start();
this._level = parseInt(data.level + '');
this['lvTxt'].text = `关卡${this._level}`
this.updateOption(data.option);
this['shareBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
......@@ -71,7 +71,7 @@ export default class PrizePanel extends Panel {
this.setStar(hc_submitData.stars);
addRankFriendList(84,889.74,this);
addRankFriendList(84, 889.74, this);
}
showlog() {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
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