Commit be2cb536 authored by huangwenjie's avatar huangwenjie

以imgUrl作为判断是否中奖

parent 2de59add
<!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/1609917117299/styles/main.4b1c27b62e9576c7b778.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/1609917117299/js/runtime-main.43f3d6b4.js"></script>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1609917117299/js/vendors.0b926fe5.js"></script>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1609917117299/js/main.2a6ab08b.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/1609917117299/";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.
......@@ -94,7 +94,7 @@ export const ajaxElement = {
//获取参加状态
export const doJoin = {
"success": true,
"code": "E100202007",
"code": "E100201007",
"desc": "OK",
"timestamp": 1548915321930,
"data": 123456
......@@ -117,7 +117,7 @@ export const getNgameStartStatus = {
//新游戏提交
export const gameSubmit = {
"success": false,
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1550646190489,
......
......@@ -2135,7 +2135,7 @@ var StartScene = (function (_super) {
_this.isGameOver = false;
_this.count = 0;
_this.rainLuckyBag = false;
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
return _this;
}
StartScene.prototype.res = function (name) {
......@@ -2520,12 +2520,12 @@ var StartScene = (function (_super) {
rain.x = Math.max(10 * Math.random(), 680 * Math.random());
rain['speed'] = Math.max(this.SPEED * Math.random(), 6);
var type = GameConst_1.arr.getRandomOne(this.rainConfig);
if (type == "luckyBag" && (this.hasLuckyBag || this.rainLuckyBag)) {
type = "redPacket";
}
if (type == "luckyBag") {
this.rainLuckyBag = true;
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket";
}
switch (type) {
case "luckyBag":
rain.texture = this.res("luckyBag");
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2136,7 +2136,7 @@ var StartScene = (function (_super) {
_this.isGameOver = false;
_this.count = 0;
_this.rainLuckyBag = false;
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
return _this;
}
StartScene.prototype.res = function (name) {
......@@ -2521,12 +2521,12 @@ var StartScene = (function (_super) {
rain.x = Math.max(10 * Math.random(), 680 * Math.random());
rain['speed'] = Math.max(this.SPEED * Math.random(), 6);
var type = GameConst_1.arr.getRandomOne(this.rainConfig);
if (type == "luckyBag" && (this.hasLuckyBag || this.rainLuckyBag)) {
type = "redPacket";
}
if (type == "luckyBag") {
this.rainLuckyBag = true;
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket";
}
switch (type) {
case "luckyBag":
rain.texture = this.res("luckyBag");
......
......@@ -485,7 +485,8 @@ export class StartScene extends Scene {
count = 0
rainLuckyBag = false
rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot']
// rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot']
rainConfig = ['redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot']
raining() {
if (this.pause) {
return
......@@ -502,12 +503,13 @@ export class StartScene extends Scene {
rain.x = Math.max(10 * Math.random(), 680 * Math.random())
rain['speed'] = Math.max(this.SPEED * Math.random(), 6)
let type = arr.getRandomOne(this.rainConfig)
if (type == "luckyBag" && (this.hasLuckyBag || this.rainLuckyBag)) {
type = "redPacket"
}
if (type == "luckyBag") {
this.rainLuckyBag = true
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket"
}
switch (type) {
case "luckyBag":
rain.texture = this.res("luckyBag")
......
......@@ -19,7 +19,7 @@
height: 320px;
opacity: 1;
left: 170px;
top: 260px;
top: 300px;
position: absolute;
transform-origin: 0px 0px 0px;
// background-color: rgba(255, 255, 255, 1);
......@@ -30,7 +30,7 @@
opacity: 1;
vertical-center: -65.5;
left: 91px;
top: 594px;
top: 694px;
position: absolute;
transform-origin: 0px 0px 0px;
}
......
......@@ -229,7 +229,7 @@ class PageIndex extends Component {
}
else if (code == "E100201007") {
// ViewCtrl.showWin(Enum.Com.ComgetPoints);
ViewCtrl.showToast("积分不足,去赚积分吧~")
ViewCtrl.showToast((CFG.unitName ? CFG.unitName : "积分") + "不足,去赚积分吧~")
} else if (code == "E100202007" || code == "E100202008" || code == "E100202009" || code == "E100202010") {
ViewCtrl.showWin(Enum.Com.ComnoChance);
// ViewCtrl.showToast("参与次数已达上限")
......
......@@ -2136,7 +2136,7 @@ var StartScene = (function (_super) {
_this.isGameOver = false;
_this.count = 0;
_this.rainLuckyBag = false;
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
return _this;
}
StartScene.prototype.res = function (name) {
......@@ -2521,12 +2521,12 @@ var StartScene = (function (_super) {
rain.x = Math.max(10 * Math.random(), 680 * Math.random());
rain['speed'] = Math.max(this.SPEED * Math.random(), 6);
var type = GameConst_1.arr.getRandomOne(this.rainConfig);
if (type == "luckyBag" && (this.hasLuckyBag || this.rainLuckyBag)) {
type = "redPacket";
}
if (type == "luckyBag") {
this.rainLuckyBag = true;
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket";
}
switch (type) {
case "luckyBag":
rain.texture = this.res("luckyBag");
......
......@@ -103,7 +103,7 @@ class PageCanvas extends Component {
ViewCtrl.hideWaiting();
let { lottery } = getOrderStatus.data;
if (lottery) {
if (lottery.type != "thanks" && lottery.link) {
if (lottery.type != "thanks" && lottery.imgUrl) {
//中奖
ViewCtrl.showWin(Enum.Com.ComGameFinalClear, getOrderStatus.data);
} else {
......@@ -114,7 +114,7 @@ class PageCanvas extends Component {
//未中奖
ViewCtrl.showWin(Enum.Com.ComNoPrize);
}
// ViewCtrl.showWin(Enum.Com.ComGameFinalClear,getOrderStatus.data);
// ViewCtrl.showWin(Enum.Com.ComGameFinalClear, getOrderStatus.data);
} else {
ViewCtrl.hideWaiting();
ViewCtrl.showToast();
......
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