diff --git a/resources/views/dao.blade.php b/resources/views/dao.blade.php index 13dcde1..ead0156 100644 --- a/resources/views/dao.blade.php +++ b/resources/views/dao.blade.php @@ -1439,9 +1439,9 @@ }; function startNum() { - new CountUp("reward11", 0, {{$config['reward11']}} + {{$config['reward11'] * $rand}}, 2, 3, options).start(); - new CountUp("reward12", 0, {{$config['reward12']}} + {{$config['reward12'] * $rand}}, 2, 3, options).start(); - new CountUp("reward13", 0, {{$config['reward13']}} + {{$config['reward13'] * $rand}}, 2, 3, options).start(); + new CountUp("reward11", 0, parseInt("{{$config['reward11']}}") + parseInt("{{$config['reward11'] * $rand}}"), 2, 3, options).start(); + new CountUp("reward12", 0, parseInt("{{$config['reward12']}}") + parseInt("{{$config['reward12'] * $rand}}"), 2, 3, options).start(); + new CountUp("reward13", 0, parseInt("{{$config['reward13']}}") + parseInt("{{$config['reward13'] * $rand}}"), 2, 3, options).start(); } function dao_close() { diff --git a/resources/views/destruction.blade.php b/resources/views/destruction.blade.php index d0828ca..94e978e 100644 --- a/resources/views/destruction.blade.php +++ b/resources/views/destruction.blade.php @@ -1455,10 +1455,10 @@ prefix: '', // 字首(数字的前缀,根据需要可设为 $,¥,¥ 等) suffix: ''  // 后缀(数字的后缀 ,根据需要可设为 元,个,美元 等) }; - new CountUp("reward14", 0, {{$config['reward14']}} + {{$config['reward14'] * $rand}}, 2, 3, options).start(); - new CountUp("reward15", 0, {{$config['reward15']}} + {{$config['reward15'] * $rand}}, 2, 3, options).start(); - new CountUp("reward16", 0, {{$config['reward16']}} + {{$config['reward16'] * $rand}}, 2, 3, options1).start(); - new CountUp("reward17", 0, {{$config['GLK']}}, 4, 3, options).start(); + new CountUp("reward14", 0, parseInt("{{$config['reward14']}}") + parseInt("{{$config['reward14'] * $rand}}"), 2, 3, options).start(); + new CountUp("reward15", 0, parseInt("{{$config['reward15']}}") + parseInt("{{$config['reward15'] * $rand}}"), 2, 3, options).start(); + new CountUp("reward16", 0, parseInt("{{$config['reward16']}}") + parseInt("{{$config['reward16'] * $rand}}"), 2, 3, options1).start(); + new CountUp("reward17", 0, parseInt("{{$config['GLK']}}"), 4, 3, options).start(); } startNum(); diff --git a/resources/views/nft.blade.php b/resources/views/nft.blade.php index 51ca322..589f163 100644 --- a/resources/views/nft.blade.php +++ b/resources/views/nft.blade.php @@ -1706,8 +1706,8 @@ prefix: '', // 字首(数字的前缀,根据需要可设为 $,¥,¥ 等) suffix: ''  // 后缀(数字的后缀 ,根据需要可设为 元,个,美元 等) }; - new CountUp("num1", 0, {{$config['reward17']}} + {{$config['reward17'] * $rand}}, 0, 3, options).start(); - new CountUp("num2", 0, {{$config['reward18']}} + {{$config['reward18'] * $rand}}, 0, 3, options).start(); + new CountUp("num1", 0, parseInt("{{$config['reward17']}}") + parseInt("{{$config['reward17'] * $rand}}"), 0, 3, options).start(); + new CountUp("num2", 0, parseInt("{{$config['reward18']}}") + parseInt("{{$config['reward18'] * $rand}}"), 0, 3, options).start(); } function strategy(obj) { diff --git a/resources/views/vault.blade.php b/resources/views/vault.blade.php index 0f3b3f0..08d0b9c 100644 --- a/resources/views/vault.blade.php +++ b/resources/views/vault.blade.php @@ -1297,8 +1297,8 @@ prefix: '', // 字首(数字的前缀,根据需要可设为 $,¥,¥ 等) suffix: ''  // 后缀(数字的后缀 ,根据需要可设为 元,个,美元 等) }; - new CountUp("num1", 0, {{$config['reward7']}} + {{$config['reward7'] * $rand}}, 0, 3, options).start(); - new CountUp("num2", 0, {{$config['reward8']}} + {{$config['reward8'] * $rand}}, 0, 3, options).start(); + new CountUp("num1", 0, parseInt("{{$config['reward7']}}") + parseInt("{{$config['reward7'] * $rand}}"), 0, 3, options).start(); + new CountUp("num2", 0, parseInt("{{$config['reward8']}}") + parseInt("{{$config['reward8'] * $rand}}"), 0, 3, options).start(); } // 授权绑定 diff --git a/resources/views/vault2.blade.php b/resources/views/vault2.blade.php index 7a066ef..639c4e7 100644 --- a/resources/views/vault2.blade.php +++ b/resources/views/vault2.blade.php @@ -1296,8 +1296,8 @@ prefix: '', // 字首(数字的前缀,根据需要可设为 $,¥,¥ 等) suffix: ''  // 后缀(数字的后缀 ,根据需要可设为 元,个,美元 等) }; - new CountUp("num1", 0, {{$config['reward7']}} + {{$config['reward7'] * $rand}}, 0, 3, options).start(); - new CountUp("num2", 0, {{$config['reward8']}} + {{$config['reward8'] * $rand}}, 0, 3, options).start(); + new CountUp("num1", 0, parseInt("{{$config['reward7']}}") + parseInt("{{$config['reward7'] * $rand}}"), 0, 3, options).start(); + new CountUp("num2", 0, parseInt("{{$config['reward8']}}") + parseInt("{{$config['reward8'] * $rand}}"), 0, 3, options).start(); } // 授权绑定 diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index d51fe4d..ed9cc32 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -2153,13 +2153,13 @@ } function numStart() { - new CountUp("num1", 0, {{$config['reward1']}} - {{$config['reward1'] * $rand}}, 0, 3, options).start(); - new CountUp("num2", 0, {{$config['reward2']}} - {{$config['reward2'] * $rand}}, 0, 3, options).start(); - new CountUp("num3", 0, {{$config['reward3']}} - {{$config['reward3'] * $rand}}, 0, 3, options).start(); - new CountUp("num4", 0, {{$config['reward4']}} - {{$config['reward4'] * $rand}}, 0, 3, options).start(); - new CountUp("num5", 0, {{$config['reward5']}} - {{$config['reward5'] * $rand}}, 0, 3, options).start(); - new CountUp("num6", 0, {{$config['reward6']}} - {{$config['reward6'] * $rand}}, 0, 3, options).start(); - new CountUp("num7", 0, {{$config['GLK']}}, 4, 3, options).start(); + new CountUp("num1", 0, parseInt("{{$config['reward1']}}") - parseInt("{{$config['reward1'] * $rand}}"), 0, 3, options).start(); + new CountUp("num2", 0, parseInt("{{$config['reward2']}}") - parseInt("{{$config['reward2'] * $rand}}"), 0, 3, options).start(); + new CountUp("num3", 0, parseInt("{{$config['reward3']}}") - parseInt("{{$config['reward3'] * $rand}}"), 0, 3, options).start(); + new CountUp("num4", 0, parseInt("{{$config['reward4']}}") - parseInt("{{$config['reward4'] * $rand}}"), 0, 3, options).start(); + new CountUp("num5", 0, parseInt("{{$config['reward5']}}") - parseInt("{{$config['reward5'] * $rand}}"), 0, 3, options).start(); + new CountUp("num6", 0, parseInt("{{$config['reward6']}}") - parseInt("{{$config['reward6'] * $rand}}"), 0, 3, options).start(); + new CountUp("num7", 0, parseInt("{{$config['GLK']}}"), 4, 3, options).start(); }