|
@@ -54,6 +54,7 @@ Game.prototype = {
|
|
|
_this.times--;
|
|
|
_this.countTimesText();
|
|
|
if (_this.times <= 0) {
|
|
|
+ this.gameContainer.innerHTML = '';
|
|
|
_this.finalResult();
|
|
|
$('#speaker_handle').fadeOut('fast');
|
|
|
$('#Jaudio').attr('src', '');
|
|
@@ -129,12 +130,30 @@ Game.prototype = {
|
|
|
},
|
|
|
calcScore: function() {
|
|
|
var score = 0;
|
|
|
- if(!isShare) {
|
|
|
- score = this.count > 70 ? 70 : this.count ;
|
|
|
+
|
|
|
+ // 微信分享后玩第二次, app点击后可以玩第二次
|
|
|
+
|
|
|
+ if(from_app) {
|
|
|
+ if(appClick == 1) {
|
|
|
+ score = this.count * 2 > 70 ? 70 : this.count * 2;
|
|
|
+
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ score = this.count * 2 > 100 ? 100 : this.count * 2;
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
- score = this.count > 100 ? 100 : this.count;
|
|
|
+ if(!isShare) {
|
|
|
+ score = this.count * 2 > 70 ? 70 : this.count * 2;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ score = this.count * 2 > 100 ? 100 : this.count * 2;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// if(!score)return;
|
|
|
if(score < 21) {
|
|
|
this.moneyText = 20;
|
|
@@ -177,12 +196,6 @@ Game.prototype = {
|
|
|
},
|
|
|
finalResult: function() {
|
|
|
this.caclBonus();
|
|
|
- console.log(this.count);
|
|
|
-
|
|
|
- ///
|
|
|
- this.callback && this.callback();return;
|
|
|
- ///
|
|
|
-
|
|
|
if(from_app) {
|
|
|
if(appClick == 1) {
|
|
|
this.select.style.display = 'block';
|