|
@@ -127,6 +127,12 @@ cc.Class({
|
|
|
if(this.game_report.lineItem.length == 10){ //全中展示
|
|
|
showData.push({s1:true, labS1:'Win Multiplier x10 '});
|
|
|
}
|
|
|
+
|
|
|
+ //排序
|
|
|
+ this.game_report.lineItem.sort((a, b)=>{
|
|
|
+ return a.lineIndex - b.lineIndex;
|
|
|
+ });
|
|
|
+
|
|
|
for(let i=0; i < this.game_report.lineItem.length; i++){
|
|
|
showData.push({
|
|
|
s1:false, labS1:'',
|
|
@@ -140,6 +146,12 @@ cc.Class({
|
|
|
if(xLineItem.length == 10){ //貌似是大奖倍数展示
|
|
|
showData.push({s1:true, labS1:'Win Multiplier x10 '});
|
|
|
}
|
|
|
+
|
|
|
+ //排序
|
|
|
+ xLineItem.sort((a, b)=>{
|
|
|
+ return a.lineIndex - b.lineIndex;
|
|
|
+ });
|
|
|
+
|
|
|
for(let i=0; i < xLineItem.length; i++){
|
|
|
showData.push({
|
|
|
s1:false, labS1:'',
|
|
@@ -172,7 +184,8 @@ cc.Class({
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- let numCi =showData[0].s1 ? i : (i+1); //序号从1开始
|
|
|
+ // let numCi =showData[0].s1 ? i : (i+1); //序号从1开始
|
|
|
+ let numCi = showData[i].s2Data.lineIndex;
|
|
|
let score = this.report_init[0] * this.report_init[1] * showData[i].s2Data.awTimes;
|
|
|
|
|
|
s2.getChildByName('ci').getComponent(cc.Label).string = ('0' + numCi).slice(-2);
|