Commit 45ea2a0a authored by Edwise's avatar Edwise 🍷

保存

parent 5df4ddde
......@@ -2323,7 +2323,7 @@ var Ins = (function () {
var seconds = Math.round(leave3 / 1000);
return minutes + "分" + seconds + "秒";
};
Ins.recoverEnergy = 1 * 60 * 1000;
Ins.recoverEnergy = 10 * 60 * 1000;
Ins.salmonArr = [];
return Ins;
}());
......@@ -2844,12 +2844,14 @@ var Cat = (function (_super) {
setInterval(function () {
if (_this.curActIndex != 0 && _this.curActIndex != 1)
return;
if (!Ins_1.Ins.senceInfo.bubbleTips)
return;
var tips = Ins_1.Ins.senceInfo.bubbleTips;
if (tips && tips.length > 0) {
_this.curBubbleTipIndex = (_this.curBubbleTipIndex + 1) > (tips.length - 1) ? 0 : _this.curBubbleTipIndex + 1;
_this.showDialog(1, tips[_this.curBubbleTipIndex], true);
}
}, 4000);
}, 12000);
}, 6000);
};
Cat.prototype.touchCat = function () {
......@@ -2857,6 +2859,8 @@ var Cat = (function (_super) {
if (this.curActIndex != 0 && this.curActIndex != 1)
return;
console.log("点击猫咪");
if (!Ins_1.Ins.senceInfo.clickBubble)
return;
var tipsArr = Ins_1.Ins.senceInfo.clickBubble;
var index = Math.floor(Math.random() * tipsArr.length);
this.showDialog(5, tipsArr[index]);
......@@ -47459,8 +47463,10 @@ var MainScene = (function (_super) {
that.tlBtn.mouseEnable = true;
that.tlGroup.addChild(that.tlBtn);
that.tlTips1 = Ins_1.Ins.initSprite("c246aaf3-84bc-4f26-ae81-f2311d25be7b", 200, -25);
that.tlTips1.mouseEnable = true;
that.tlGroup.addChild(that.tlTips1);
that.tlTips2 = Ins_1.Ins.initSprite("b8959848-40a2-48b6-a0f0-b2311e9e9ec2", 140, -25);
that.tlTips2.mouseEnable = true;
that.tlGroup.addChild(that.tlTips2);
};
MainScene.prototype.initMxqBtnGroup = function () {
......@@ -47473,8 +47479,10 @@ var MainScene = (function (_super) {
that.mxqBtn.mouseEnable = true;
that.mxqGroup.addChild(that.mxqBtn);
that.mxqTips1 = Ins_1.Ins.initSprite("5fe3d0ec-043f-4337-bcbe-e191fe933e92", 35, -50);
that.mxqTips1.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips1);
that.mxqTips2 = Ins_1.Ins.initSprite("0dc71764-0d52-41e2-baa2-53a787db892b", -20, -50);
that.mxqTips2.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips2);
if (Ins_1.Ins.curScene == Enum_1.SCENETYPE.BEADROOM || Ins_1.Ins.curScene == 4) {
that.tlGroup.visible = true;
......@@ -47958,7 +47966,11 @@ var MainScene = (function (_super) {
var that = this;
console.log("主场景添加事件");
that.tlBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips1.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips2.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.mxqBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips1.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips2.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.letter && that.letter.addEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.addEventListener(Enum_1.MSG.CHANGE_SCENE, function () { that.changeMainScene(Enum_1.SCENETYPE.BEADROOM); }, that);
FYGE.GDispatcher.addEventListener(Enum_1.MSG.UPDATE_ENERGY, function (data) { that.updateEnergy(data); }, that);
......@@ -47975,7 +47987,11 @@ var MainScene = (function (_super) {
console.log("主场景移除事件");
that.recoverEnergyHandler && clearInterval(that.recoverEnergyHandler);
that.tlBtn.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips1.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips2.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.mxqBtn.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips1.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips2.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.letter && that.letter.removeEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.removeEventListener(Enum_1.MSG.CHANGE_SCENE, function () { that.changeMainScene(Enum_1.SCENETYPE.BEADROOM); }, that);
FYGE.GDispatcher.removeEventListener(Enum_1.MSG.UPDATE_ENERGY, function (data) { that.updateEnergy(data); }, that);
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2325,7 +2325,7 @@ var Ins = (function () {
var seconds = Math.round(leave3 / 1000);
return minutes + "分" + seconds + "秒";
};
Ins.recoverEnergy = 1 * 60 * 1000;
Ins.recoverEnergy = 10 * 60 * 1000;
Ins.salmonArr = [];
return Ins;
}());
......@@ -2846,12 +2846,14 @@ var Cat = (function (_super) {
setInterval(function () {
if (_this.curActIndex != 0 && _this.curActIndex != 1)
return;
if (!Ins_1.Ins.senceInfo.bubbleTips)
return;
var tips = Ins_1.Ins.senceInfo.bubbleTips;
if (tips && tips.length > 0) {
_this.curBubbleTipIndex = (_this.curBubbleTipIndex + 1) > (tips.length - 1) ? 0 : _this.curBubbleTipIndex + 1;
_this.showDialog(1, tips[_this.curBubbleTipIndex], true);
}
}, 4000);
}, 12000);
}, 6000);
};
Cat.prototype.touchCat = function () {
......@@ -2859,6 +2861,8 @@ var Cat = (function (_super) {
if (this.curActIndex != 0 && this.curActIndex != 1)
return;
console.log("点击猫咪");
if (!Ins_1.Ins.senceInfo.clickBubble)
return;
var tipsArr = Ins_1.Ins.senceInfo.clickBubble;
var index = Math.floor(Math.random() * tipsArr.length);
this.showDialog(5, tipsArr[index]);
......@@ -47461,8 +47465,10 @@ var MainScene = (function (_super) {
that.tlBtn.mouseEnable = true;
that.tlGroup.addChild(that.tlBtn);
that.tlTips1 = Ins_1.Ins.initSprite("c246aaf3-84bc-4f26-ae81-f2311d25be7b", 200, -25);
that.tlTips1.mouseEnable = true;
that.tlGroup.addChild(that.tlTips1);
that.tlTips2 = Ins_1.Ins.initSprite("b8959848-40a2-48b6-a0f0-b2311e9e9ec2", 140, -25);
that.tlTips2.mouseEnable = true;
that.tlGroup.addChild(that.tlTips2);
};
MainScene.prototype.initMxqBtnGroup = function () {
......@@ -47475,8 +47481,10 @@ var MainScene = (function (_super) {
that.mxqBtn.mouseEnable = true;
that.mxqGroup.addChild(that.mxqBtn);
that.mxqTips1 = Ins_1.Ins.initSprite("5fe3d0ec-043f-4337-bcbe-e191fe933e92", 35, -50);
that.mxqTips1.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips1);
that.mxqTips2 = Ins_1.Ins.initSprite("0dc71764-0d52-41e2-baa2-53a787db892b", -20, -50);
that.mxqTips2.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips2);
if (Ins_1.Ins.curScene == Enum_1.SCENETYPE.BEADROOM || Ins_1.Ins.curScene == 4) {
that.tlGroup.visible = true;
......@@ -47960,7 +47968,11 @@ var MainScene = (function (_super) {
var that = this;
console.log("主场景添加事件");
that.tlBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips1.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips2.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.mxqBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips1.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips2.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.letter && that.letter.addEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.addEventListener(Enum_1.MSG.CHANGE_SCENE, function () { that.changeMainScene(Enum_1.SCENETYPE.BEADROOM); }, that);
FYGE.GDispatcher.addEventListener(Enum_1.MSG.UPDATE_ENERGY, function (data) { that.updateEnergy(data); }, that);
......@@ -47977,7 +47989,11 @@ var MainScene = (function (_super) {
console.log("主场景移除事件");
that.recoverEnergyHandler && clearInterval(that.recoverEnergyHandler);
that.tlBtn.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips1.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips2.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.mxqBtn.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips1.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips2.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.letter && that.letter.removeEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.removeEventListener(Enum_1.MSG.CHANGE_SCENE, function () { that.changeMainScene(Enum_1.SCENETYPE.BEADROOM); }, that);
FYGE.GDispatcher.removeEventListener(Enum_1.MSG.UPDATE_ENERGY, function (data) { that.updateEnergy(data); }, that);
......@@ -20,7 +20,7 @@ export class Ins {
public static curScene:SCENETYPE;
/**多长时间恢复精力(ms) */
public static recoverEnergy:number = 1*60*1000;
public static recoverEnergy:number = 10*60*1000;
/**当前游戏中的三文鱼 */
public static salmonArr:Salmon[] = [];
......
......@@ -191,12 +191,13 @@ export class Cat extends Module {
setTimeout(() => {
setInterval(() => {
if (this.curActIndex != 0 && this.curActIndex != 1) return;
if(!Ins.senceInfo.bubbleTips)return;
let tips = Ins.senceInfo.bubbleTips;
if (tips && tips.length > 0) {
this.curBubbleTipIndex = (this.curBubbleTipIndex + 1) > (tips.length - 1) ? 0 : this.curBubbleTipIndex + 1;
this.showDialog(1, tips[this.curBubbleTipIndex], true);
}
}, 4000)
}, 12000)
}, 6000)
}
......@@ -204,6 +205,7 @@ export class Cat extends Module {
touchCat() {
if (this.curActIndex != 0 && this.curActIndex != 1) return;
console.log("点击猫咪")
if(!Ins.senceInfo.clickBubble) return;
var tipsArr = Ins.senceInfo.clickBubble;
var index = Math.floor(Math.random() * tipsArr.length)
this.showDialog(5,tipsArr[index])
......
......@@ -172,9 +172,11 @@ export class MainScene extends Scene {
that.tlGroup.addChild(that.tlBtn);
//台历tips不在教室初始化
that.tlTips1 = Ins.initSprite("c246aaf3-84bc-4f26-ae81-f2311d25be7b", 200, -25);
that.tlTips1.mouseEnable = true;
that.tlGroup.addChild(that.tlTips1);
//台历tips在教室初始化
that.tlTips2 = Ins.initSprite("b8959848-40a2-48b6-a0f0-b2311e9e9ec2", 140, -25);
that.tlTips2.mouseEnable = true;
that.tlGroup.addChild(that.tlTips2);
}
......@@ -192,9 +194,11 @@ export class MainScene extends Scene {
that.mxqGroup.addChild(that.mxqBtn);
//毛线球tips不在操场初始化
that.mxqTips1 = Ins.initSprite("5fe3d0ec-043f-4337-bcbe-e191fe933e92", 35, -50);
that.mxqTips1.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips1);
//毛线球tips在操场初始化
that.mxqTips2 = Ins.initSprite("0dc71764-0d52-41e2-baa2-53a787db892b", -20, -50);
that.mxqTips2.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips2);
if (Ins.curScene == SCENETYPE.BEADROOM || Ins.curScene == 4) {
......@@ -745,7 +749,13 @@ export class MainScene extends Scene {
var that = this;
console.log("主场景添加事件")
that.tlBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.tlTips1.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.tlTips2.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.mxqBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.mxqTips1.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.mxqTips2.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.letter && that.letter.addEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.addEventListener(MSG.CHANGE_SCENE, () => { that.changeMainScene(SCENETYPE.BEADROOM) }, that);
FYGE.GDispatcher.addEventListener(MSG.UPDATE_ENERGY, (data) => { that.updateEnergy(data) }, that)
......@@ -762,8 +772,15 @@ export class MainScene extends Scene {
var that = this;
console.log("主场景移除事件")
that.recoverEnergyHandler && clearInterval(that.recoverEnergyHandler);
that.tlBtn.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.tlTips1.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.tlTips2.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.mxqBtn.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.mxqTips1.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.mxqTips2.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.letter && that.letter.removeEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.removeEventListener(MSG.CHANGE_SCENE, () => { that.changeMainScene(SCENETYPE.BEADROOM) }, that);
FYGE.GDispatcher.removeEventListener(MSG.UPDATE_ENERGY, (data) => { that.updateEnergy(data) }, that)
......
import cloud from '@tbmp/mp-cloud-sdk';
import tbcc from './tbcc-sdk';
const env = 'test' // 云函数环境 test 测试环境 online 线上环境
const env = 'online' // 云函数环境 test 测试环境 online 线上环境
cloud.init({
env: env
});
......@@ -29,10 +29,10 @@ App({
const { activityId } = query;
// this.activityId = activityId || '5f81841def5071b132fd5e21'; //赵然
// this.activityId = activityId || '5f8022919da671f3b6d5fb14'; //小婷1
// this.activityId = activityId || '5f8d47218e6a0888fc426fad'; //小婷2zhengshi
this.activityId = activityId || '5f8d47218e6a0888fc426fad'; //小婷2zhengshi
// this.activityId = activityId || '5f87e8a29897b4e0ce0ada02'; //ceshi
// this.activityId = activityId || '5fd42308c3ad34a8ccdeb141'; //迭代v2赵然测试1
this.activityId = activityId || '5fd48529964f9752747927f4'; //迭代v2赵然测试2
// this.activityId = activityId || '5fd48529964f9752747927f4'; //迭代v2赵然测试2
}
......
<view class="shop">
<view class="shop-page" style="{{{'background':`url(${resList['e2616129-e292-4333-b107-98c102328165'].url}) no-repeat center top/cover`}}}">
<!-- <view class="shop_gold_div"> -->
<view class="shop_gold_div">
<label class="shop_gold">{{happyCoin}}</label>
<!-- </view> -->
</view>
<image a:if={{false}} class="shop_backbtn" src={{resList['bdab9777-8a4d-4659-ba23-66aaddb7fa5b'].url}} />
<view class="shop-wrap">
......
......@@ -2325,7 +2325,7 @@ var Ins = (function () {
var seconds = Math.round(leave3 / 1000);
return minutes + "分" + seconds + "秒";
};
Ins.recoverEnergy = 1 * 60 * 1000;
Ins.recoverEnergy = 10 * 60 * 1000;
Ins.salmonArr = [];
return Ins;
}());
......@@ -2846,12 +2846,14 @@ var Cat = (function (_super) {
setInterval(function () {
if (_this.curActIndex != 0 && _this.curActIndex != 1)
return;
if (!Ins_1.Ins.senceInfo.bubbleTips)
return;
var tips = Ins_1.Ins.senceInfo.bubbleTips;
if (tips && tips.length > 0) {
_this.curBubbleTipIndex = (_this.curBubbleTipIndex + 1) > (tips.length - 1) ? 0 : _this.curBubbleTipIndex + 1;
_this.showDialog(1, tips[_this.curBubbleTipIndex], true);
}
}, 4000);
}, 12000);
}, 6000);
};
Cat.prototype.touchCat = function () {
......@@ -2859,6 +2861,8 @@ var Cat = (function (_super) {
if (this.curActIndex != 0 && this.curActIndex != 1)
return;
console.log("点击猫咪");
if (!Ins_1.Ins.senceInfo.clickBubble)
return;
var tipsArr = Ins_1.Ins.senceInfo.clickBubble;
var index = Math.floor(Math.random() * tipsArr.length);
this.showDialog(5, tipsArr[index]);
......@@ -47461,8 +47465,10 @@ var MainScene = (function (_super) {
that.tlBtn.mouseEnable = true;
that.tlGroup.addChild(that.tlBtn);
that.tlTips1 = Ins_1.Ins.initSprite("c246aaf3-84bc-4f26-ae81-f2311d25be7b", 200, -25);
that.tlTips1.mouseEnable = true;
that.tlGroup.addChild(that.tlTips1);
that.tlTips2 = Ins_1.Ins.initSprite("b8959848-40a2-48b6-a0f0-b2311e9e9ec2", 140, -25);
that.tlTips2.mouseEnable = true;
that.tlGroup.addChild(that.tlTips2);
};
MainScene.prototype.initMxqBtnGroup = function () {
......@@ -47475,8 +47481,10 @@ var MainScene = (function (_super) {
that.mxqBtn.mouseEnable = true;
that.mxqGroup.addChild(that.mxqBtn);
that.mxqTips1 = Ins_1.Ins.initSprite("5fe3d0ec-043f-4337-bcbe-e191fe933e92", 35, -50);
that.mxqTips1.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips1);
that.mxqTips2 = Ins_1.Ins.initSprite("0dc71764-0d52-41e2-baa2-53a787db892b", -20, -50);
that.mxqTips2.mouseEnable = true;
that.mxqGroup.addChild(that.mxqTips2);
if (Ins_1.Ins.curScene == Enum_1.SCENETYPE.BEADROOM || Ins_1.Ins.curScene == 4) {
that.tlGroup.visible = true;
......@@ -47960,7 +47968,11 @@ var MainScene = (function (_super) {
var that = this;
console.log("主场景添加事件");
that.tlBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips1.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips2.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.mxqBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips1.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips2.addEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.letter && that.letter.addEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.addEventListener(Enum_1.MSG.CHANGE_SCENE, function () { that.changeMainScene(Enum_1.SCENETYPE.BEADROOM); }, that);
FYGE.GDispatcher.addEventListener(Enum_1.MSG.UPDATE_ENERGY, function (data) { that.updateEnergy(data); }, that);
......@@ -47977,7 +47989,11 @@ var MainScene = (function (_super) {
console.log("主场景移除事件");
that.recoverEnergyHandler && clearInterval(that.recoverEnergyHandler);
that.tlBtn.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips1.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.tlTips2.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.CLASSROOM); }, that);
that.mxqBtn.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips1.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.mxqTips2.removeEventListener(FYGE.MouseEvent.CLICK, function () { that.changeMainScene(Enum_1.SCENETYPE.PLAYGROUND); }, that);
that.letter && that.letter.removeEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.removeEventListener(Enum_1.MSG.CHANGE_SCENE, function () { that.changeMainScene(Enum_1.SCENETYPE.BEADROOM); }, that);
FYGE.GDispatcher.removeEventListener(Enum_1.MSG.UPDATE_ENERGY, function (data) { that.updateEnergy(data); }, that);
......@@ -367,11 +367,11 @@ Page({
if (success) {
my.hideLoading();
app.openId = data.openId;
if(data.loadValue != 1){
if(data.customValue != 1){
this.initCanvas();
}
this.setData({
customValue:data.loadValue
customValue:data.customValue
})
this.getActivityBaseInfoById();
}
......
......@@ -134,26 +134,28 @@
white-space: nowrap;
}
.shop .shop_gold_div {
width: 406rpx;
opacity: 1;
height: 54rpx;
left: 370rpx;
top: 320rpx;
height: 698rpx;
left: 365rpx;
/* margin-top: 320rpx; */
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
vertical-align: middle;
display: flex;
align-items: center;
/* align-items: center; */
justify-content: space-around;
flex-direction: column;
pointer-events: none;
}
.shop .shop_gold {
.shop .shop_gold_div .shop_gold {
opacity: 1;
height: 54rpx;
left: 370rpx;
top: 320rpx;
/* left: 370rpx;
top: 320rpx; */
position: absolute;
transform-origin: 0rpx 0rpx 0rpx;
font-size: 23.47394rpx;
font-size: 24rpx;
color: #7b644e;
vertical-align: middle;
display: flex;
......
{
"code": "000000",
"data": {
"happyCoin": 90,
"happyCoin": 1,
"list": [
{
"_id": "5f6c3e7d114fbbc8c98bffae",
......
......@@ -156,6 +156,426 @@
"updateTime": 1601295237953,
"userNick": "tb80525668"
},
{
"_id": "5f71d3849897b412b5a4fa47",
"activityId": "5f7183e852bbded304b27d71",
"asac": "1A202010JWPLV3428VWIEP",
"can_win": true,
"code": "7254115b0fcc4c77bdbb35ed658c1db2",
"createDay": "2020/09/28",
"createTime": 1601295236035,
"drawStatus": 1,
"effective_interval": 31,
"effective_time_mode": "RELATIVE",
"ename": "",
"end_date": "2020-12-23 23:59:59",
"expiredTime": 1601628302000,
"feature": {
"couponTag": "49534003",
"description": "酒店信用住立减券",
"sellerId": "4064563648",
"spreadId": "3465672059",
"subActId": "34922",
"templateCode": "3545184060",
"title": "酒店信用住优惠券",
"uuid": "6ff76ab7cf3c4002be6f64902e659322"
},
"has_inventory": true,
"id": "5f71d3849897b412b5a4fa47",
"image": "",
"interval_time_unit": "DAYS",
"material": {
"benefitBigPic": "https://gw.alicdn.com/tfs/TB1aF67RFP7gK0jSZFjXXc5aXXa-895-703.png",
"benefitSmallPic": "https://gw.alicdn.com/tfs/TB1aF67RFP7gK0jSZFjXXc5aXXa-895-703.png",
"benefitUrl": "https://h5.m.taobao.com/trip/hotel/search/index.html?ttid=12zfb000000416"
},
"name": "fuckyou2",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6c3e7d114fbbc8c98bffae",
"remark": "",
"send_life_cycle_state": "running",
"show_rules": {
"show_rule_dto": [
{
"passed": true,
"type": "WIN_LIMIT"
}
]
},
"start_date": "2020-07-15 15:45:12",
"strategyCode": "08c6f4e89c7b412792a2395fa3d0fd4a",
"test": false,
"title": "酒店最高减50元券",
"type": 1,
"type_desc": "飞猪资格券",
"updateTime": 1601295236035,
"userNick": "tb80525668"
},
{
"_id": "5f71d38a67f1375241ab6b2b",
"activityId": "5f7183e852bbded304b27d71",
"amount": 20000,
"amount_unit": "分",
"asac": "1A202010JWPLV3428VWIEP",
"can_win": true,
"code": "a66621ec7c434842bfe4d01082128f1d",
"createDay": "2020/09/28",
"createTime": 1601295242020,
"display_amount": "200",
"display_amount_unit": "元",
"display_start_fee": "2000",
"drawStatus": 1,
"effective_end": "2020-10-11 00:00:00",
"effective_start": "2020-08-24 00:00:00",
"effective_time_mode": "ABSOLUTE",
"ename": "",
"end_date": "2020-09-25 23:59:59",
"expiredTime": 1601628302000,
"feature": {
"bcType": "B",
"couponTag": "1002",
"itemIds": "611952670190",
"sellerId": "2838892713",
"shopId": "150920153",
"shopLogo": "/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg",
"shopName": "华为官方旗舰店",
"shopSiteCategory": "3",
"shopUrl": "//store.taobao.com/shop/view_shop.htm?shop_id=150920153",
"spreadId": "4327893208",
"templateCode": "15398721100",
"title": "MatePro",
"uuid": "1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory": true,
"id": "5f71d38a67f1375241ab6b2b",
"image": "",
"material": {
"SHORT_NAME": "华为MatePad Pro",
"brandLogo": "T1bOKxFoFcXXb1upjX.jpg",
"itemIDTianHe": "611952670190",
"itemMainPicture": "O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png",
"mamaCouponValue": "学生专享200元",
"mamaShopItemurl": "https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name": "fuckyou",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6c3e7d114fbbc8c98bffae",
"remark": "",
"send_life_cycle_state": "running",
"show_rules": {
"show_rule_dto": [
{
"passed": true,
"type": "WIN_LIMIT"
}
]
},
"start_date": "2020-08-27 16:21:56",
"start_fee": 200000,
"strategyCode": "08c6f4e89c7b412792a2395fa3d0fd4a",
"test": false,
"title": "MatePro",
"type": 1,
"type_desc": "商品优惠券",
"updateTime": 1601295242020,
"userNick": "tb80525668"
},
{
"_id": "5f71d38852bbded304b3f8a3",
"activityId": "5f7183e852bbded304b27d71",
"createDay": "2020/09/28",
"createTime": 1601295240072,
"drawStatus": 1,
"ename": "",
"expiredTime": 1601628302000,
"id": "5f71d38852bbded304b3f8a3",
"image": "https://img.alicdn.com/imgextra/i2/2208492139886/O1CN01XlNdWj2Mtq8E9OEw1_!!2208492139886-2-miniprogram.png",
"name": "兑换奖励235",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6b09b39897b412b595a32b",
"remark": "",
"type": 3,
"updateTime": 1601295240072,
"userNick": "tb80525668"
},
{
"_id": "5f71d38567f1375241ab6b20",
"activityId": "5f7183e852bbded304b27d71",
"amount": 10000,
"amount_unit": "分",
"asac": "1A202010JWPLV3428VWIEP",
"can_win": true,
"code": "f8564ef50a86418b9226ce1d9bb6ace6",
"createDay": "2020/09/28",
"createTime": 1601295237953,
"display_amount": "100",
"display_amount_unit": "元",
"display_start_fee": "200",
"drawStatus": 1,
"effective_end": "2020-09-30 00:00:00",
"effective_start": "2020-08-28 00:00:00",
"effective_time_mode": "ABSOLUTE",
"ename": "",
"end_date": "2020-09-26 23:59:59",
"expiredTime": 1601628302000,
"feature": {
"bcType": "B",
"couponTag": "1002",
"itemIds": "611439436633",
"sellerId": "2838892713",
"shopId": "150920153",
"shopLogo": "/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg",
"shopName": "华为官方旗舰店",
"shopSiteCategory": "3",
"shopUrl": "//store.taobao.com/shop/view_shop.htm?shop_id=150920153",
"spreadId": "4328244590",
"templateCode": "15417747656",
"title": "freebuds 3",
"uuid": "ea9a79c0459640f8aeb94c24530e4141"
},
"has_inventory": true,
"id": "5f71d38567f1375241ab6b20",
"image": "",
"material": {
"brandLogo": "T1bOKxFoFcXXb1upjX.jpg"
},
"name": "fuckyou3",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6c3e7d114fbbc8c98bffae",
"remark": "",
"send_life_cycle_state": "running",
"show_rules": {
"show_rule_dto": [
{
"passed": true,
"type": "WIN_LIMIT"
}
]
},
"start_date": "2020-08-28 11:04:24",
"start_fee": 20000,
"strategyCode": "08c6f4e89c7b412792a2395fa3d0fd4a",
"test": false,
"title": "freebuds 3",
"type": 1,
"type_desc": "商品优惠券",
"updateTime": 1601295237953,
"userNick": "tb80525668"
},
{
"_id": "5f71d3849897b412b5a4fa47",
"activityId": "5f7183e852bbded304b27d71",
"asac": "1A202010JWPLV3428VWIEP",
"can_win": true,
"code": "7254115b0fcc4c77bdbb35ed658c1db2",
"createDay": "2020/09/28",
"createTime": 1601295236035,
"drawStatus": 1,
"effective_interval": 31,
"effective_time_mode": "RELATIVE",
"ename": "",
"end_date": "2020-12-23 23:59:59",
"expiredTime": 1601628302000,
"feature": {
"couponTag": "49534003",
"description": "酒店信用住立减券",
"sellerId": "4064563648",
"spreadId": "3465672059",
"subActId": "34922",
"templateCode": "3545184060",
"title": "酒店信用住优惠券",
"uuid": "6ff76ab7cf3c4002be6f64902e659322"
},
"has_inventory": true,
"id": "5f71d3849897b412b5a4fa47",
"image": "",
"interval_time_unit": "DAYS",
"material": {
"benefitBigPic": "https://gw.alicdn.com/tfs/TB1aF67RFP7gK0jSZFjXXc5aXXa-895-703.png",
"benefitSmallPic": "https://gw.alicdn.com/tfs/TB1aF67RFP7gK0jSZFjXXc5aXXa-895-703.png",
"benefitUrl": "https://h5.m.taobao.com/trip/hotel/search/index.html?ttid=12zfb000000416"
},
"name": "fuckyou2",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6c3e7d114fbbc8c98bffae",
"remark": "",
"send_life_cycle_state": "running",
"show_rules": {
"show_rule_dto": [
{
"passed": true,
"type": "WIN_LIMIT"
}
]
},
"start_date": "2020-07-15 15:45:12",
"strategyCode": "08c6f4e89c7b412792a2395fa3d0fd4a",
"test": false,
"title": "酒店最高减50元券",
"type": 1,
"type_desc": "飞猪资格券",
"updateTime": 1601295236035,
"userNick": "tb80525668"
},
{
"_id": "5f71d38a67f1375241ab6b2b",
"activityId": "5f7183e852bbded304b27d71",
"amount": 20000,
"amount_unit": "分",
"asac": "1A202010JWPLV3428VWIEP",
"can_win": true,
"code": "a66621ec7c434842bfe4d01082128f1d",
"createDay": "2020/09/28",
"createTime": 1601295242020,
"display_amount": "200",
"display_amount_unit": "元",
"display_start_fee": "2000",
"drawStatus": 1,
"effective_end": "2020-10-11 00:00:00",
"effective_start": "2020-08-24 00:00:00",
"effective_time_mode": "ABSOLUTE",
"ename": "",
"end_date": "2020-09-25 23:59:59",
"expiredTime": 1601628302000,
"feature": {
"bcType": "B",
"couponTag": "1002",
"itemIds": "611952670190",
"sellerId": "2838892713",
"shopId": "150920153",
"shopLogo": "/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg",
"shopName": "华为官方旗舰店",
"shopSiteCategory": "3",
"shopUrl": "//store.taobao.com/shop/view_shop.htm?shop_id=150920153",
"spreadId": "4327893208",
"templateCode": "15398721100",
"title": "MatePro",
"uuid": "1094cefe51a348698e6647f5e6ba4181"
},
"has_inventory": true,
"id": "5f71d38a67f1375241ab6b2b",
"image": "",
"material": {
"SHORT_NAME": "华为MatePad Pro",
"brandLogo": "T1bOKxFoFcXXb1upjX.jpg",
"itemIDTianHe": "611952670190",
"itemMainPicture": "O1CN01HHEnRU1KZ6mud3VjW_!!6000000001177-2-yinhe.png",
"mamaCouponValue": "学生专享200元",
"mamaShopItemurl": "https://detail.tmall.com/item.htm?spm=a1z10.1-b-s.w20163031-21766675787.18.10577597DWdOA0&id=611952670190&scene=taobao_shop&sku_properties=5919063:6536025"
},
"name": "fuckyou",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6c3e7d114fbbc8c98bffae",
"remark": "",
"send_life_cycle_state": "running",
"show_rules": {
"show_rule_dto": [
{
"passed": true,
"type": "WIN_LIMIT"
}
]
},
"start_date": "2020-08-27 16:21:56",
"start_fee": 200000,
"strategyCode": "08c6f4e89c7b412792a2395fa3d0fd4a",
"test": false,
"title": "MatePro",
"type": 1,
"type_desc": "商品优惠券",
"updateTime": 1601295242020,
"userNick": "tb80525668"
},
{
"_id": "5f71d38852bbded304b3f8a3",
"activityId": "5f7183e852bbded304b27d71",
"createDay": "2020/09/28",
"createTime": 1601295240072,
"drawStatus": 1,
"ename": "",
"expiredTime": 1601628302000,
"id": "5f71d38852bbded304b3f8a3",
"image": "https://img.alicdn.com/imgextra/i2/2208492139886/O1CN01XlNdWj2Mtq8E9OEw1_!!2208492139886-2-miniprogram.png",
"name": "兑换奖励235",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6b09b39897b412b595a32b",
"remark": "",
"type": 3,
"updateTime": 1601295240072,
"userNick": "tb80525668"
},
{
"_id": "5f71d38567f1375241ab6b20",
"activityId": "5f7183e852bbded304b27d71",
"amount": 10000,
"amount_unit": "分",
"asac": "1A202010JWPLV3428VWIEP",
"can_win": true,
"code": "f8564ef50a86418b9226ce1d9bb6ace6",
"createDay": "2020/09/28",
"createTime": 1601295237953,
"display_amount": "100",
"display_amount_unit": "元",
"display_start_fee": "200",
"drawStatus": 1,
"effective_end": "2020-09-30 00:00:00",
"effective_start": "2020-08-28 00:00:00",
"effective_time_mode": "ABSOLUTE",
"ename": "",
"end_date": "2020-09-26 23:59:59",
"expiredTime": 1601628302000,
"feature": {
"bcType": "B",
"couponTag": "1002",
"itemIds": "611439436633",
"sellerId": "2838892713",
"shopId": "150920153",
"shopLogo": "/5a/f4/TB16vpHhER1BeNjy0FmSuv0wVXa.jpg",
"shopName": "华为官方旗舰店",
"shopSiteCategory": "3",
"shopUrl": "//store.taobao.com/shop/view_shop.htm?shop_id=150920153",
"spreadId": "4328244590",
"templateCode": "15417747656",
"title": "freebuds 3",
"uuid": "ea9a79c0459640f8aeb94c24530e4141"
},
"has_inventory": true,
"id": "5f71d38567f1375241ab6b20",
"image": "",
"material": {
"brandLogo": "T1bOKxFoFcXXb1upjX.jpg"
},
"name": "fuckyou3",
"openId": "AAHaNvjuAMaJc3uyPjfEGuv9",
"prizeDataType": 2,
"prizeId": "5f6c3e7d114fbbc8c98bffae",
"remark": "",
"send_life_cycle_state": "running",
"show_rules": {
"show_rule_dto": [
{
"passed": true,
"type": "WIN_LIMIT"
}
]
},
"start_date": "2020-08-28 11:04:24",
"start_fee": 20000,
"strategyCode": "08c6f4e89c7b412792a2395fa3d0fd4a",
"test": false,
"title": "freebuds 3",
"type": 1,
"type_desc": "商品优惠券",
"updateTime": 1601295237953,
"userNick": "tb80525668"
},
{
"_id": "5f71d3849897b412b5a4fa47",
"activityId": "5f7183e852bbded304b27d71",
......
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