【fix】数字可以增加小数
This commit is contained in:
@@ -22899,8 +22899,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 120,
|
||||
"height": 40
|
||||
"width": 140,
|
||||
"height": 50.4
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -22938,8 +22938,8 @@
|
||||
"_string": "",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 40,
|
||||
"_fontSize": 40,
|
||||
"_actualFontSize": 51,
|
||||
"_fontSize": 50,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 40,
|
||||
"_overflow": 2,
|
||||
@@ -37822,7 +37822,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 180.66,
|
||||
"width": 142.5,
|
||||
"height": 80
|
||||
},
|
||||
"_anchorPoint": {
|
||||
@@ -37984,7 +37984,7 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 184.8,
|
||||
"width": 145.6,
|
||||
"height": 80
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
||||
@@ -283,7 +283,7 @@ export class PageMain extends BaseView {
|
||||
initBoradData(){
|
||||
for (let index = 0; index < this._board_data.length; index++) {
|
||||
const d = this._board_data[index];
|
||||
let num = parseInt(d.ui_text) ? parseInt(d.ui_text) * this._ante_data[this._ante_index].mult : d.ui_text
|
||||
let num = parseFloat(d.ui_text) ? parseFloat(d.ui_text) * this._ante_data[this._ante_index].mult : d.ui_text
|
||||
Tools.SetChildText(this.blocks[index], "num", num)
|
||||
Tools.SetChildText(this.blocks[index], "light/num", num)
|
||||
Tools.SetChildText(this.blocks[index], "point", d.grid_number)
|
||||
|
||||
@@ -73,9 +73,9 @@ export class PageRewardhistory extends BaseView {
|
||||
this.loadSprite(d.win_coin >= 0 ? "rehis_bg_get" : "rehis_bg_lost", item)
|
||||
let lang_str = LANG_ENUM[LANG_SET.langIndex]
|
||||
Tools.ActChild(item, "win_" + lang_str, d.win_coin > 0)
|
||||
if (d.win_coin > 0) Tools.SetChildText(item, "win_" + lang_str + "/lab", Math.trunc(d.win_coin).toString())
|
||||
if (d.win_coin > 0) Tools.SetChildText(item, "win_" + lang_str + "/lab", Math.abs(d.win_coin).toString())
|
||||
Tools.ActChild(item, "lose_" + lang_str, d.win_coin < 0)
|
||||
if (d.win_coin < 0) Tools.SetChildText(item, "lose_" + lang_str + "/lab", Math.abs(Math.trunc(d.win_coin)).toString())
|
||||
if (d.win_coin < 0) Tools.SetChildText(item, "lose_" + lang_str + "/lab", Math.abs(d.win_coin).toString())
|
||||
Tools.ActChild(item, "more", d.win_coin == 0)
|
||||
Tools.SetChildText(item, "time", d.create_time)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user