|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-21 11:57:43
|
|
* @Date: 2025-03-21 11:57:43
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-29 17:09:44
|
|
|
|
|
|
|
+ * @LastEditTime: 2025-04-29 18:34:18
|
|
|
* @Description: 惊喜翻倍弹窗
|
|
* @Description: 惊喜翻倍弹窗
|
|
|
*/
|
|
*/
|
|
|
import { _decorator, instantiate, Label, Node, Prefab, UITransform } from 'cc';
|
|
import { _decorator, instantiate, Label, Node, Prefab, UITransform } from 'cc';
|
|
@@ -255,7 +255,7 @@ export class DoubleRewardsView extends VMParent {
|
|
|
const levelRange = lastLevel - firstLevel || 1;
|
|
const levelRange = lastLevel - firstLevel || 1;
|
|
|
let foundFirstNotWithdraw = false;
|
|
let foundFirstNotWithdraw = false;
|
|
|
//现在要算平均长度,总长度除数组长度
|
|
//现在要算平均长度,总长度除数组长度
|
|
|
- let singleLength = totalLength / levelInfoList.length;
|
|
|
|
|
|
|
+ let singleLength = totalLength / (levelInfoList.length - 1);
|
|
|
const secondLastIndex = levelInfoList.length - 2;
|
|
const secondLastIndex = levelInfoList.length - 2;
|
|
|
const allBeforeSecondLastWithdrawed = levelInfoList
|
|
const allBeforeSecondLastWithdrawed = levelInfoList
|
|
|
.slice(0, secondLastIndex)
|
|
.slice(0, secondLastIndex)
|