Commit d3509a58 authored by huangwenjie's avatar huangwenjie

修改参与文案显示

parent 7dc4f969
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<title>React App</title>
<script>
!(function (e, i) {
var t = e.documentElement,
n = navigator.userAgent.match(/iphone|ipod|ipad/gi),
a = n ? Math.min(i.devicePixelRatio, 3) : 1,
m = 'orientationchange' in window ? 'orientationchange' : 'resize';
t.dataset.dpr = a;
for (
var d, l, c = !1, o = e.getElementsByTagName('meta'), r = 0; r < o.length; r++
)
(l = o[r]), 'viewport' == l.name && ((c = !0), (d = l));
if (c)
d.content =
'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no';
else {
var o = e.createElement('meta');
(o.name = 'viewport'),
(o.content =
'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no'),
t.firstElementChild.appendChild(o);
}
var s = function () {
var e = t.clientWidth;
e / a > 750 && (e = 750 * a),
(window.remScale = e / 750),
(t.style.fontSize = 100 * (e / 750) + 'px');
};
s(), e.addEventListener && i.addEventListener(m, s, !1);
})(document, window);
</script>
<script>
function getApp() {
return {
cloud: {},
cloudName: "clientTemplate2C",
requestType: "mock"
}
}
var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1';
</script>
<link href="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611995782009/styles/main.e09b47ab8415ff83cf79.css"
rel="stylesheet">
</head>
<body><noscript>You need to enable JavaScript to run this app.</noscript>
<script>
// document.body.addEventListener('touchstart', function(){});
</script>
<div id="root"></div>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611995782009/js/runtime-main.00763348.js"></script>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611995782009/js/vendors.0b926fe5.js"></script>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611995782009/js/main.4816d2b9.js"></script>
</body>
<script src="//yun.duiba.com.cn/db_games/activity/md5/zepto_security_downloadApp.min.js"></script>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){function r(r){for(var t,i,a=r[0],l=r[1],c=r[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,c||[]),n()}function n(){for(var e,r=0;r<u.length;r++){for(var n=u[r],t=!0,a=1;a<n.length;a++){var l=n[a];0!==o[l]&&(t=!1)}t&&(u.splice(r--,1),e=i(i.s=n[0]))}return e}var t={},o={1:0},u=[];function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,r,n){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var t in e)i.d(n,t,function(r){return e[r]}.bind(null,t));return n},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611995782009/";var a=window.webpackJsonp=window.webpackJsonp||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var c=0;c<a.length;c++)r(a[c]);var f=l;n()}([]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -2519,6 +2519,12 @@ var StartScene = (function (_super) {
if (this.pause) {
return;
}
var now = Date.now();
var delta = this.lastTime ? now - this.lastTime : 16.7;
this.lastTime = now;
if (delta > 1000)
delta = 16.7;
var scale = delta / 16.7;
this.checkGetRain();
this.count++;
var rainNum = layers_1.layers.stageHeight >= 1334 ? 30 : 20;
......@@ -2558,7 +2564,7 @@ var StartScene = (function (_super) {
}
if (this.rains.length > 0) {
for (var i = this.rains.length - 1; i >= 0; i--) {
this.rains[i].y += this.rains[i].speed;
this.rains[i].y += this.rains[i].speed * scale;
this.rains[i].speed += this.ADDSPEED;
this.rains[i].alpha = (this.rains[i].y < layers_1.layers.stageHeight - 300 ? 1 : (layers_1.layers.stageHeight - this.rains[i].y - 100) / 300);
if (this.rains[i].y > 1800) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -55,5 +55,5 @@ export const ResJson = {
"name": "startScene"
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1611718907/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1611806395/resource/"
}
\ No newline at end of file
......@@ -60,13 +60,27 @@ class PageIndex extends Component {
var that = this;
var text;
const { freeLimit, status, needCreditsLong } = data;
if (freeLimit > 0) {
text = "剩余免费挑战次数:" + freeLimit;
} else if (status == 4 || status == 3) {
text = "挑战次数已达上限";
// if (freeLimit > 0) {
// text = "剩余免费挑战次数:" + freeLimit;
// } else if (status == 4 || status == 3) {
// text = "挑战次数已达上限";
// } else {
// text = needCreditsLong + window.CFG.unitName + "/每次";
// }
if (status == 4) {
text = "今日无剩余次数"
} else if (status == 3) {
text = "无剩余次数"
} else if (freeLimit >= 1) {
text = "剩余免费挑战次数:" + freeLimit
} else {
if (status == 1) {
text = "积分不足"
} else {
text = needCreditsLong + window.CFG.unitName + "/每次";
}
}
that.setState({
myGameCountText: text
})
......@@ -126,6 +140,7 @@ class PageIndex extends Component {
return;
}
const { freeLimit, status } = dataCenter.getData("ajaxElement").element
if (freeLimit >= 1) {
that.startGame();
} else if (status == 4 || status == 3) {
......@@ -136,6 +151,7 @@ class PageIndex extends Component {
// ViewCtrl.showWin(Enum.Com.ComspendPoints, {}, that.startGame.bind(that));
return;
}
}
//参与游戏进行轮询检查
......
......@@ -3005,6 +3005,12 @@ import * as FYGE from "fyge-tbmini";
if (this.pause) {
return;
}
var now = Date.now();
var delta = this.lastTime ? now - this.lastTime : 16.7;
this.lastTime = now;
if (delta > 1000)
delta = 16.7;
var scale = delta / 16.7;
this.checkGetRain();
this.count++;
var rainNum = layers_1.layers.stageHeight >= 1334 ? 30 : 20;
......@@ -3044,7 +3050,7 @@ import * as FYGE from "fyge-tbmini";
}
if (this.rains.length > 0) {
for (var i = this.rains.length - 1; i >= 0; i--) {
this.rains[i].y += this.rains[i].speed;
this.rains[i].y += this.rains[i].speed * scale;
this.rains[i].speed += this.ADDSPEED;
this.rains[i].alpha = (this.rains[i].y < layers_1.layers.stageHeight - 300 ? 1 : (layers_1.layers.stageHeight - this.rains[i].y - 100) / 300);
if (this.rains[i].y > 1800) {
......
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