Commit 7d30a9cc authored by haiyoucuv's avatar haiyoucuv

整理代码1

parent 877f765a
This diff is collapsed.
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d5707a6b-e351-49a7-b9ba-f5cabe49af01",
"uuid": "c14532f7-60ff-4c9a-94bc-b8895ab21c45",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d5707a6b-e351-49a7-b9ba-f5cabe49af01@6c48a",
"displayName": "副标题",
"uuid": "c14532f7-60ff-4c9a-94bc-b8895ab21c45@6c48a",
"displayName": "万能球",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d5707a6b-e351-49a7-b9ba-f5cabe49af01",
"imageUuidOrDatabaseUri": "c14532f7-60ff-4c9a-94bc-b8895ab21c45",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d5707a6b-e351-49a7-b9ba-f5cabe49af01@f9941",
"displayName": "副标题",
"uuid": "c14532f7-60ff-4c9a-94bc-b8895ab21c45@f9941",
"displayName": "万能球",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 588,
"height": 37,
"rawWidth": 588,
"rawHeight": 37,
"width": 74,
"height": 91,
"rawWidth": 74,
"rawHeight": 91,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-294,
-18.5,
-37,
-45.5,
0,
294,
-18.5,
37,
-45.5,
0,
-294,
18.5,
-37,
45.5,
0,
294,
18.5,
37,
45.5,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
37,
588,
37,
91,
74,
91,
0,
0,
588,
74,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-294,
-18.5,
-37,
-45.5,
0
],
"maxPos": [
294,
18.5,
37,
45.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d5707a6b-e351-49a7-b9ba-f5cabe49af01@6c48a",
"imageUuidOrDatabaseUri": "c14532f7-60ff-4c9a-94bc-b8895ab21c45@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d5707a6b-e351-49a7-b9ba-f5cabe49af01@6c48a"
"redirect": "c14532f7-60ff-4c9a-94bc-b8895ab21c45@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "851d4e4c-7317-4904-9f5f-cbc80c70701c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "851d4e4c-7317-4904-9f5f-cbc80c70701c@6c48a",
"displayName": "得分_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "851d4e4c-7317-4904-9f5f-cbc80c70701c",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "851d4e4c-7317-4904-9f5f-cbc80c70701c@f9941",
"displayName": "得分_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 287,
"height": 72,
"rawWidth": 287,
"rawHeight": 72,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-143.5,
-36,
0,
143.5,
-36,
0,
-143.5,
36,
0,
143.5,
36,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
72,
287,
72,
0,
0,
287,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-143.5,
-36,
0
],
"maxPos": [
143.5,
36,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "851d4e4c-7317-4904-9f5f-cbc80c70701c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "851d4e4c-7317-4904-9f5f-cbc80c70701c@6c48a"
}
}
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "154c5219-08c4-4784-8920-dc1abc162f03",
"uuid": "2c6b3b06-99f0-4d5a-979a-c5e138acf226",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "154c5219-08c4-4784-8920-dc1abc162f03@6c48a",
"displayName": "明细",
"uuid": "2c6b3b06-99f0-4d5a-979a-c5e138acf226@6c48a",
"displayName": "角标",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "154c5219-08c4-4784-8920-dc1abc162f03",
"imageUuidOrDatabaseUri": "2c6b3b06-99f0-4d5a-979a-c5e138acf226",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "154c5219-08c4-4784-8920-dc1abc162f03@f9941",
"displayName": "明细",
"uuid": "2c6b3b06-99f0-4d5a-979a-c5e138acf226@f9941",
"displayName": "角标",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 90,
"rawWidth": 36,
"rawHeight": 90,
"width": 20,
"height": 20,
"rawWidth": 20,
"rawHeight": 20,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-18,
-45,
-10,
-10,
0,
18,
-45,
10,
-10,
0,
-18,
45,
-10,
10,
0,
18,
45,
10,
10,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
90,
36,
90,
20,
20,
20,
0,
0,
36,
20,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-18,
-45,
-10,
-10,
0
],
"maxPos": [
18,
45,
10,
10,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "154c5219-08c4-4784-8920-dc1abc162f03@6c48a",
"imageUuidOrDatabaseUri": "2c6b3b06-99f0-4d5a-979a-c5e138acf226@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "154c5219-08c4-4784-8920-dc1abc162f03@6c48a"
"redirect": "2c6b3b06-99f0-4d5a-979a-c5e138acf226@6c48a"
}
}
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "59f7e754-1407-4056-8638-f90fe893ef6e",
"uuid": "f482114a-96e1-4e4b-9afd-553d0113945b",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "59f7e754-1407-4056-8638-f90fe893ef6e@6c48a",
"displayName": "奖品",
"uuid": "f482114a-96e1-4e4b-9afd-553d0113945b@6c48a",
"displayName": "锤子",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "59f7e754-1407-4056-8638-f90fe893ef6e",
"imageUuidOrDatabaseUri": "f482114a-96e1-4e4b-9afd-553d0113945b",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "59f7e754-1407-4056-8638-f90fe893ef6e@f9941",
"displayName": "奖品",
"uuid": "f482114a-96e1-4e4b-9afd-553d0113945b@f9941",
"displayName": "锤子",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -46,9 +46,9 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 33,
"width": 74,
"height": 89,
"rawWidth": 33,
"rawWidth": 74,
"rawHeight": 89,
"borderTop": 0,
"borderBottom": 0,
......@@ -61,16 +61,16 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-16.5,
-37,
-44.5,
0,
16.5,
37,
-44.5,
0,
-16.5,
-37,
44.5,
0,
16.5,
37,
44.5,
0
],
......@@ -85,11 +85,11 @@
"uv": [
0,
89,
33,
74,
89,
0,
0,
33,
74,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-16.5,
-37,
-44.5,
0
],
"maxPos": [
16.5,
37,
44.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "59f7e754-1407-4056-8638-f90fe893ef6e@6c48a",
"imageUuidOrDatabaseUri": "f482114a-96e1-4e4b-9afd-553d0113945b@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "59f7e754-1407-4056-8638-f90fe893ef6e@6c48a"
"redirect": "f482114a-96e1-4e4b-9afd-553d0113945b@6c48a"
}
}
......@@ -34,7 +34,6 @@ export default class PrizePanel extends Panel {
img: Sprite = null!;
async start() {
sendLog(LOG_TYPE.EXPOSURE,19)
this.close.on(Button.EventType.CLICK, this.onClose, this);
this.get.on(Button.EventType.CLICK, this.onClose, this);
this.share.on(Button.EventType.CLICK, this.onShare, this);
......
......@@ -2,9 +2,8 @@ import { _decorator, Button, Label, Node } from 'cc';
import Scene from "db://assets/Module/Scene";
import { getWebData, LOG_TYPE, sendLog, WebNetName } from "db://assets/Scripts/Utils/WebNet/WebNet";
import { MainGame } from "./MainGame/MainGame";
import { changeScene, showPanel, showToast } from "db://assets/Module/UIFast";
import { changeScene, showToast } from "db://assets/Module/UIFast";
import GameMgr from "db://assets/Scripts/GameMgr";
import RulePanel from '../Panels/RulePanel';
import store from "../../store/store";
import { observer, render } from "../../store/decorators";
......@@ -21,51 +20,29 @@ export class HomeScene extends Scene {
@property(Node)
startBtn: Node = null;
/** 任务按钮 */
@property(Node)
taskBtn: Node = null;
@property(Node)
shareBtn: Node = null;
/** 规则按钮 */
@property(Node)
ruleBtn: Node = null;
/** 剩余次数 */
@property(Label)
gameCountLabel: Label = null;
onLoad() {
this.startBtn.on(Button.EventType.CLICK, this.clickStart, this);
this.taskBtn.on(Button.EventType.CLICK, this.clickTask, this);
this.shareBtn.on(Button.EventType.CLICK, this.clickShare, this);
this.ruleBtn.on(Button.EventType.CLICK, this.clickRule, this);
}
async start() {
store.getBaseInfo();
store.updateIndex();
}
@render
render() {
const {
remainGameTime = 0, // 剩余挑战次数
} = store.homeInfo || {};
const {} = store.homeInfo || {};
this.gameCountLabel.string = `游戏剩余次数:${remainGameTime}`;
}
/** 校验活动状态 */
checkActStatus = () => {
const {timeStamp} = getWebData(WebNetName.index) || {};
const {activityStartTime, activityEndTime} = store.homeInfo || {};
if (activityStartTime > timeStamp) {
const {actStartTimestamp, actEndTimestamp, currentTimestamp} = store.homeInfo || {};
if (currentTimestamp < actStartTimestamp) {
showToast("活动暂未开始,敬请期待~");
return false;
} else if (activityEndTime <= timeStamp) {
} else if (currentTimestamp >= actEndTimestamp) {
showToast("活动已结束~");
return false;
}
......@@ -74,19 +51,19 @@ export class HomeScene extends Scene {
/** 去挑战 */
clickStart = async () => {
sendLog(LOG_TYPE.CLICK, 5)
if (!this.checkActStatus()) return false;
const {
remainGameTime = 0, // 剩余挑战次数
boolDayPlayLimit, // 今日挑战是否已达上限 true:是 false:不是
leftTimes = 0, // 剩余挑战次数
newGuideFlag = 0, // 新手引导标记(0-未引导,1-已引导)
} = store.homeInfo || {};
if (boolDayPlayLimit) {
if (!leftTimes) {
return showToast("今日挑战已达上限,明天再来吧~");
}
if (!remainGameTime) {
return showToast("没有次数啦~快去做任务吧!\n明日再来还有免费次数哦!");
}
// if (!newGuideFlag) {
// return showToast("新手引导中,暂时无法挑战~");
// }
this.btnEnable(this.startBtn, false);
try {
......@@ -100,23 +77,5 @@ export class HomeScene extends Scene {
this.btnEnable(this.startBtn, true);
}
/** 任务 */
clickTask = async () => {
sendLog(LOG_TYPE.CLICK, 7)
if (!this.checkActStatus()) return false
}
/** 规则 */
clickRule = async () => {
sendLog(LOG_TYPE.CLICK, 11)
showPanel(RulePanel);
}
/** 返回 */
clickShare = async () => {
sendLog(LOG_TYPE.CLICK, 10)
if (!this.checkActStatus()) return false;
}
}
......@@ -3,10 +3,12 @@ import {
EventTouch, Node, input,
Input, instantiate, IPhysics2DContact,
PhysicsSystem2D, Prefab, v2, PHYSICS_2D_PTM_RATIO, UITransform, v3, Vec3, Vec2, tween, Tween, misc,
clamp, view
clamp, view, Button
} from "cc";
import Scene from "db://assets/Module/Scene";
import { Ball } from "./Ball";
import { changeScene } from "../../../Module/UIFast";
import { HomeScene } from "../HomeScene";
const {ccclass, property} = _decorator;
......@@ -21,6 +23,9 @@ export class MainGame extends Scene {
@property(Node)
ballRoot: Node = null;
@property(Node)
backBtn: Node = null;
@property({type: [Prefab]})
ballPrefab: Prefab[] = [];
......@@ -38,6 +43,8 @@ export class MainGame extends Scene {
PhysicsSystem2D.instance.gravity = v2(0, -50 * PHYSICS_2D_PTM_RATIO);
this.backBtn.on(Button.EventType.CLICK, this.clickBack, this);
this.node.on(Node.EventType.TOUCH_START, this.onTouchStart, this);
this.node.on(Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
this.node.on(Node.EventType.TOUCH_END, this.onTouchEC, this);
......@@ -54,8 +61,14 @@ export class MainGame extends Scene {
this.initNewBall();
}
clickBack = () => {
changeScene(HomeScene);
}
initNewBall() {
const ball = instantiate(this.ballPrefab[0]);
const newMaxLevel = Math.ceil(this.maxLevel / 2);
const newLevel = ~~(Math.random() * newMaxLevel);
const ball = instantiate(this.ballPrefab[newLevel]);
ball.setPosition(0, InitY);
ball.setScale(0, 0);
this.ballRoot.addChild(ball);
......@@ -75,13 +88,16 @@ export class MainGame extends Scene {
pos: Vec3
}[] = [];
onBeginContact(selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
/**
* 两个碰撞体开始接触时被调用一次
*/
onBeginContact(self: Collider2D, other: Collider2D, contact: IPhysics2DContact | null) {
// 只在两个碰撞体开始接触时被调用一次
if (selfCollider.node.name === otherCollider.node.name) {
if (self.node.name === other.node.name) {
const selfBall = selfCollider.getComponent(Ball);
const otherBall = otherCollider.getComponent(Ball);
const selfBall = self.getComponent(Ball);
const otherBall = other.getComponent(Ball);
if (selfBall?.preRemove || otherBall?.preRemove) {
return;
......@@ -89,29 +105,35 @@ export class MainGame extends Scene {
selfBall.preRemove = otherBall.preRemove = true;
const worldManifold = contact.getWorldManifold();
const localPos = this.ballRoot.getComponent(UITransform)
.convertToNodeSpaceAR(v3(worldManifold.points[0].x, worldManifold.points[0].y, 0));
const worldManifold = contact.getWorldManifold().points[0];
const collisionPos = this.ballRoot
.getComponent(UITransform)
.convertToNodeSpaceAR(v3(worldManifold.x, worldManifold.y, 0));
this.mergeInfo.push({
ball: [selfCollider.node, otherCollider.node],
pos: localPos
ball: [self.node, other.node],
pos: collisionPos
});
}
}
onEndContact(selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
// 只在两个碰撞体结束接触时被调用一次
/**
* 两个碰撞体结束接触时被调用一次
*/
onEndContact(self: Collider2D, other: Collider2D, contact: IPhysics2DContact | null) {
}
onPreSolve(selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
// 每次将要处理碰撞体接触逻辑时被调用
/**
* 每次将要处理碰撞体接触逻辑时被调用
*/
onPreSolve(self: Collider2D, other: Collider2D, contact: IPhysics2DContact | null) {
}
onPostSolve(selfCollider: Collider2D, otherCollider: Collider2D, contact: IPhysics2DContact | null) {
// 每次处理完碰撞体接触逻辑时被调用
/**
* 处理完碰撞体接触逻辑时被调用
*/
onPostSolve(self: Collider2D, other: Collider2D, contact: IPhysics2DContact | null) {
}
......@@ -168,7 +190,10 @@ export class MainGame extends Scene {
const pos = this.touchToNodePos(this.node, e);
this.setBallPos(pos.x);
this.newBall.getComponent(Ball).sleep = false;
const ballTs = this.newBall.getComponent(Ball);
ballTs.sleep = false;
ballTs.body.applyAngularImpulse(Math.random() * 20 - 10, true);
this.newBall = null;
this.readyDrop = false;
......@@ -187,6 +212,8 @@ export class MainGame extends Scene {
this.mergeInfo.splice(i, 1);
const newLevel = +ball[0].name + 1;
this.maxLevel = Math.max(this.maxLevel, newLevel);
ball.forEach((node) => node.destroy());
const newBall = instantiate(this.ballPrefab[newLevel]);
newBall.setPosition(pos);
......
......@@ -24,87 +24,25 @@ export enum WebNetName {
/**
* 首页
* 参数a 参数b
*/
index = "loop/index.do",
baseInfo = "loop/baseInfo.do",
/**
* 购买天降财神道具接口
*/
buyRichSp = "loop/buyRichSp.do",
index = "game/index.do",
/**
* 开始游戏
*/
start = "loopGame/start.do",
start = "game/start.do",
/**
* 游戏首页
*/
gameIndex = "loopGame/index.do",
/**
* 提交游戏
*/
submit = "loopGame/submit.do",
submit = "game/submit.do",
/**
* completeGuide
*/
completeGuide = "loopGame/completeGuide.do",
/**
* 加时
*/
delay = "loopGame/delay.do",
/**
* 消耗道具
*/
consume = "loopGame/consume.do",
/**
* 切换手
*/
changeHand = "loop/changeHand.do",
/**
* 排行榜
*/
rank = "rank/index.do",
/**
* 次数明细
*/
changeDetails = "loop/changeDetails.do",
prizeRecord = "records.query",
/**
* 游戏明细
*/
gameRecord = "loop/gameRecord.do",
/**
* 查询任务
*/
queryTasks = "task_1/queryTasks.do",
/**
* 完成任务
*/
doCompleted = "task_1/doCompleted.do",
/**
* 领取奖励
*/
sendPrize = "task_1/sendPrize.do",
guide = "game/guide.do",
/**
* 获取规则
......@@ -125,20 +63,6 @@ export enum WebNetName {
getInviteCode = "assist/getInviteCode.do",
doAssist = "assist/doAssist.do",
/**
* 装备接口
*/
equip = "loop/equip.do",
/**
* 更换套圈
*/
changeLoop = "loop/changeLoop.do",
/**
* 选择排行榜奖品
*/
chooseRankPrize = "loop/chooseRankPrize.do",
/**
* 完成行方浏览任务
......@@ -154,9 +78,6 @@ export enum WebNetName {
export const ERR_MESSAGE = {
"100001": "登录过期啦,请重新登录哦~",
"5001033": "该局使用该道具次数已达上限",
"200303": "助力失败,您的助力次数已用完",
"200306": "助力失败,不能给自己助力哦~",
"200304": "助力失败,好友被助力次数已达上限~",
"5001041": "网络异常,请稍后再试",
// "300001": "您的积分不足\n快去获取积分参与游戏吧~",
// "400001": "系统维护中,请稍后尝试",
......
......@@ -61,10 +61,6 @@ export class Start extends Component {
path: "HomeScene",
type: "dir",
},
{
path: "commonSvga",
type: "dir",
},
{
path: "MainGame",
type: "bundle"
......@@ -107,8 +103,6 @@ export class Start extends Component {
return;
}
this.progressBar && (this.progressBar.progress = pro);
const x = lerp(-300, 300, pro);
this.progEffect.setPosition(x, 12);
// this.progressTxt.string = `正在加载中 ${(pro * 100).toFixed(0)}%`;
},
async (error) => {
......
This diff is collapsed.
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "5e65b65e-1218-4160-8190-81fed0beef54",
"uuid": "bd8ba62d-0cb3-40ea-8fa1-0211363900e5",
"files": [
".jpg",
".json"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "5e65b65e-1218-4160-8190-81fed0beef54@6c48a",
"displayName": "背景",
"uuid": "bd8ba62d-0cb3-40ea-8fa1-0211363900e5@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "5e65b65e-1218-4160-8190-81fed0beef54",
"imageUuidOrDatabaseUri": "bd8ba62d-0cb3-40ea-8fa1-0211363900e5",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "5e65b65e-1218-4160-8190-81fed0beef54@f9941",
"displayName": "背景",
"uuid": "bd8ba62d-0cb3-40ea-8fa1-0211363900e5@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -47,9 +47,9 @@
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 1624,
"height": 1623,
"rawWidth": 750,
"rawHeight": 1624,
"rawHeight": 1623,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -62,16 +62,16 @@
"vertices": {
"rawPosition": [
-375,
-812,
-811.5,
0,
375,
-812,
-811.5,
0,
-375,
812,
811.5,
0,
375,
812,
811.5,
0
],
"indexes": [
......@@ -84,9 +84,9 @@
],
"uv": [
0,
1624,
1623,
750,
1624,
1623,
0,
0,
750,
......@@ -104,17 +104,17 @@
],
"minPos": [
-375,
-812,
-811.5,
0
],
"maxPos": [
375,
812,
811.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "5e65b65e-1218-4160-8190-81fed0beef54@6c48a",
"imageUuidOrDatabaseUri": "bd8ba62d-0cb3-40ea-8fa1-0211363900e5@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "5e65b65e-1218-4160-8190-81fed0beef54@6c48a"
"redirect": "bd8ba62d-0cb3-40ea-8fa1-0211363900e5@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4d076acf-4fd9-4e07-905d-30e520af2481",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4d076acf-4fd9-4e07-905d-30e520af2481@6c48a",
"displayName": "logo",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4d076acf-4fd9-4e07-905d-30e520af2481",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "4d076acf-4fd9-4e07-905d-30e520af2481@f9941",
"displayName": "logo",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 101,
"rawWidth": 95,
"rawHeight": 101,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-47.5,
-50.5,
0,
47.5,
-50.5,
0,
-47.5,
50.5,
0,
47.5,
50.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
101,
95,
101,
0,
0,
95,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-47.5,
-50.5,
0
],
"maxPos": [
47.5,
50.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4d076acf-4fd9-4e07-905d-30e520af2481@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4d076acf-4fd9-4e07-905d-30e520af2481@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3e7d44f1-afcc-48ad-974f-be7b25142b40",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3e7d44f1-afcc-48ad-974f-be7b25142b40@6c48a",
"displayName": "rankBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3e7d44f1-afcc-48ad-974f-be7b25142b40",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3e7d44f1-afcc-48ad-974f-be7b25142b40@f9941",
"displayName": "rankBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 530,
"height": 199,
"rawWidth": 530,
"rawHeight": 199,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-265,
-99.5,
0,
265,
-99.5,
0,
-265,
99.5,
0,
265,
99.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
199,
530,
199,
0,
0,
530,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-265,
-99.5,
0
],
"maxPos": [
265,
99.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3e7d44f1-afcc-48ad-974f-be7b25142b40@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3e7d44f1-afcc-48ad-974f-be7b25142b40@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "92c66238-1571-436d-b4fd-ea896729f9e8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "92c66238-1571-436d-b4fd-ea896729f9e8@6c48a",
"displayName": "佩戴财富圈",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "92c66238-1571-436d-b4fd-ea896729f9e8",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "92c66238-1571-436d-b4fd-ea896729f9e8@f9941",
"displayName": "佩戴财富圈",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 176,
"height": 226,
"rawWidth": 176,
"rawHeight": 226,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-88,
-113,
0,
88,
-113,
0,
-88,
113,
0,
88,
113,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
226,
176,
226,
0,
0,
176,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-88,
-113,
0
],
"maxPos": [
88,
113,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "92c66238-1571-436d-b4fd-ea896729f9e8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "92c66238-1571-436d-b4fd-ea896729f9e8@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b0dbe2b3-3f28-4baf-a405-f043c160f2d6",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b0dbe2b3-3f28-4baf-a405-f043c160f2d6@6c48a",
"displayName": "分享",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b0dbe2b3-3f28-4baf-a405-f043c160f2d6",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b0dbe2b3-3f28-4baf-a405-f043c160f2d6@f9941",
"displayName": "分享",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 33,
"height": 89,
"rawWidth": 33,
"rawHeight": 89,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16.5,
-44.5,
0,
16.5,
-44.5,
0,
-16.5,
44.5,
0,
16.5,
44.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
89,
33,
89,
0,
0,
33,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16.5,
-44.5,
0
],
"maxPos": [
16.5,
44.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b0dbe2b3-3f28-4baf-a405-f043c160f2d6@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b0dbe2b3-3f28-4baf-a405-f043c160f2d6@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b3fd8085-1d5b-46b4-8fca-46ac44610930",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b3fd8085-1d5b-46b4-8fca-46ac44610930@6c48a",
"displayName": "天降财神",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b3fd8085-1d5b-46b4-8fca-46ac44610930",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b3fd8085-1d5b-46b4-8fca-46ac44610930@f9941",
"displayName": "天降财神",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 128,
"height": 128,
"rawWidth": 128,
"rawHeight": 128,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-64,
-64,
0,
64,
-64,
0,
-64,
64,
0,
64,
64,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
128,
128,
128,
0,
0,
128,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-64,
-64,
0
],
"maxPos": [
64,
64,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b3fd8085-1d5b-46b4-8fca-46ac44610930@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b3fd8085-1d5b-46b4-8fca-46ac44610930@6c48a"
}
}
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 382,
"height": 198,
"rawWidth": 382,
"rawHeight": 198,
"width": 400,
"height": 108,
"rawWidth": 400,
"rawHeight": 108,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-191,
-99,
-200,
-54,
0,
191,
-99,
200,
-54,
0,
-191,
99,
-200,
54,
0,
191,
99,
200,
54,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
198,
382,
198,
108,
400,
108,
0,
0,
382,
400,
0
],
"nuv": [
......@@ -103,13 +103,13 @@
1
],
"minPos": [
-191,
-99,
-200,
-54,
0
],
"maxPos": [
191,
99,
200,
54,
0
]
},
......
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1da1c45d-fcd2-47fa-a826-1c5d232b2700",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1da1c45d-fcd2-47fa-a826-1c5d232b2700@6c48a",
"displayName": "查看",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1da1c45d-fcd2-47fa-a826-1c5d232b2700",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "1da1c45d-fcd2-47fa-a826-1c5d232b2700@f9941",
"displayName": "查看",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 113,
"height": 39,
"rawWidth": 113,
"rawHeight": 39,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-56.5,
-19.5,
0,
56.5,
-19.5,
0,
-56.5,
19.5,
0,
56.5,
19.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
39,
113,
39,
0,
0,
113,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-56.5,
-19.5,
0
],
"maxPos": [
56.5,
19.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1da1c45d-fcd2-47fa-a826-1c5d232b2700@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1da1c45d-fcd2-47fa-a826-1c5d232b2700@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "38b46f3c-f93f-464f-bd45-cf09306f4f5d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "38b46f3c-f93f-464f-bd45-cf09306f4f5d@6c48a",
"displayName": "积分图标",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "38b46f3c-f93f-464f-bd45-cf09306f4f5d",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "38b46f3c-f93f-464f-bd45-cf09306f4f5d@f9941",
"displayName": "积分图标",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 33,
"height": 32,
"rawWidth": 33,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16.5,
-16,
0,
16.5,
-16,
0,
-16.5,
16,
0,
16.5,
16,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
32,
33,
32,
0,
0,
33,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16.5,
-16,
0
],
"maxPos": [
16.5,
16,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "38b46f3c-f93f-464f-bd45-cf09306f4f5d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "38b46f3c-f93f-464f-bd45-cf09306f4f5d@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "cb788ed8-2a4d-4e15-ba62-250d1bc7416e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cb788ed8-2a4d-4e15-ba62-250d1bc7416e@6c48a",
"displayName": "规则",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cb788ed8-2a4d-4e15-ba62-250d1bc7416e",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cb788ed8-2a4d-4e15-ba62-250d1bc7416e@f9941",
"displayName": "规则",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 36,
"height": 90,
"rawWidth": 36,
"rawHeight": 90,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-18,
-45,
0,
18,
-45,
0,
-18,
45,
0,
18,
45,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
90,
36,
90,
0,
0,
36,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-18,
-45,
0
],
"maxPos": [
18,
45,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cb788ed8-2a4d-4e15-ba62-250d1bc7416e@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cb788ed8-2a4d-4e15-ba62-250d1bc7416e@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "208128a2-5057-434e-8a21-012c9cbcd5fd",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "208128a2-5057-434e-8a21-012c9cbcd5fd@6c48a",
"displayName": "赚次数",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "208128a2-5057-434e-8a21-012c9cbcd5fd",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "208128a2-5057-434e-8a21-012c9cbcd5fd@f9941",
"displayName": "赚次数",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 173,
"height": 249,
"rawWidth": 173,
"rawHeight": 249,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-86.5,
-124.5,
0,
86.5,
-124.5,
0,
-86.5,
124.5,
0,
86.5,
124.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
249,
173,
249,
0,
0,
173,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-86.5,
-124.5,
0
],
"maxPos": [
86.5,
124.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "208128a2-5057-434e-8a21-012c9cbcd5fd@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "208128a2-5057-434e-8a21-012c9cbcd5fd@6c48a"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "c4435bc8-3c4d-4955-a48d-106dde9cdf1b",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "9473d139-b76b-4fef-bfaf-ea039412c752",
"files": [
".json",
".svga"
],
"subMetas": {},
"userData": {}
}
import mobx from "mobx";
import { sendWebNet, WebNetName } from "db://assets/Scripts/Utils/WebNet/WebNet";
import { showPanel, showToast } from "../Module/UIFast";
const {makeAutoObservable} = mobx;
export interface IHomeInfo {
activityStartTime: number;
activityEndTime: number;
boolFirstEnter: boolean;
remainGameTime: number;
boolDayPlayLimit: boolean;
hqLoginSend: number;
assistPopInfo: null | {
newAssistNum: number; // 新助力人数(大于0代表要弹弹窗)
newChallengeNum: number; // 新获得的挑战次数
};
rankPopInfo: null | {
boolShowPop: boolean; // 是否展示排行榜弹窗,true:展示,false:不展示
rank: number; // 排名
prizeName: string; // 奖品名称
boolGetPrize: boolean; // 是否获得奖励 true:中奖 false:未中奖
prizeImg: string; // 奖品图片
};
rank: number;
rankScore: number;
buyRichSpCredits: number;
actStartTimestamp: number;
actEndTimestamp: number;
currentTimestamp: number;
addDailyFreeTimes: number;
leftTimes: number;
newGuideFlag: number;
}
......@@ -41,17 +26,12 @@ class Store {
}
homeInfo: IHomeInfo = {
activityStartTime: 0,
activityEndTime: 0,
boolFirstEnter: false,
remainGameTime: 0, // 剩余挑战次数
boolDayPlayLimit: false, // 今日挑战是否已达上限 true:是 false:不是
hqLoginSend: 0, // 行庆登陆赠送游戏次数
assistPopInfo: null,
rankPopInfo: null,
rank: -1, // 总榜排名(0:未参与 -1:排名超出999)
rankScore: 0, // 总榜积分
buyRichSpCredits: 0, // 购买天降财神道具所需积分
actStartTimestamp: 0, // 活动开始时间戳(精确到毫秒)
actEndTimestamp: 0, // 活动结束时间戳(精确到毫秒)
currentTimestamp: 0, // 当前时间戳(精确到毫秒)
addDailyFreeTimes: 0, // 本次访问新增每日免费游戏次数(为null或0表示本次访问没有新增)
leftTimes: 0, // 剩余游戏次数
newGuideFlag: 0, // 新手引导标记(0-未引导,1-已引导)
}
async updateIndex() {
......@@ -60,56 +40,8 @@ class Store {
return;
}
this.homeInfo = data;
const {
assistPopInfo, // 助力弹窗信息
boolFirstEnter, // 是否首次登录 true:是 false:不是
rankPopInfo, // 总排行榜发奖弹窗信息
} = data || {};
if (assistPopInfo?.newAssistNum && assistPopInfo?.newChallengeNum) {
showToast(`${assistPopInfo.newAssistNum}位好友为你助力~\n已获得${assistPopInfo.newChallengeNum}次挑战次数`);
}
}
baseInfo: {
uid?: string,
} = {};
async getBaseInfo() {
const {success, data} = await sendWebNet(WebNetName.baseInfo);
if (!success) {
return;
}
this.baseInfo = data;
}
taskInfo: [
{
code: string;
title: string;
subTitle: string;
desc: string;
buttonText: string;
taskStatus: 0 | 1 | 2;
jumpUrl: string;
icon: string;
}?
] = [];
async updateTask() {
const {success, data} = await sendWebNet(WebNetName.queryTasks);
if (!success) {
return false;
}
this.taskInfo = data?.item || [];
return true;
}
}
const store: Store = makeAutoObservable(new Store());
......
{
"success": true,
"code": "",
"message": "",
"data": null
}
\ No newline at end of file
{
"success": true,
"code": "",
"message": "",
"data": {
"actStartTimestamp": 1704038400000,
"actEndTimestamp": 1735660799000,
"currentTimestamp": 1723000150448,
"addDailyFreeTimes": 30,
"leftTimes": 30,
"newGuideFlag": 0
}
}
\ No newline at end of file
{
"success":true,
"code":"",
"message":"",
"data":{
"recordId":1234,
"oneGameHammerQuantity":3,
"oneGameProteanQuantity":5
}
}
\ No newline at end of file
{
"success": true,
"code": "",
"message": "",
"data": {
"prize": {
"ruleId": "ru_draw",
"optionId": "aaaadddd",
"optionName": "1Ԫ",
"optionImg": "https://www.baidu.com/hf_1.png",
"prizeId": "sss_3",
"prizeType": 2,
"position": 1,
"userRecordId": 1234,
"url": "https://www.baidu.com/1234",
"sendCount": 1,
"extra": "{}"
}
}
}
\ No newline at end of file
{
"success": true,
"code": "code",
"message": "message",
"data": {
"uid": "test"
}
}
{
"success": true,
"code": "code",
"message": "message",
"data": null
}
{
"data": [
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "AAAAA@1@1@1任务",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
},
{
"source": "culpa do et amet dolor",
"type": "+",
"timestamp": -12505387.003454074,
"num": 999
},
{
"source": "amet exercitation et",
"type": "-",
"timestamp": 5648300.35086979,
"num": 1
}
],
"code": "ea sunt aliquip dolore labore",
"message": "laborum non Excepteur",
"success": true
}
{
"success": true,
"code": "code",
"message": "message",
"data": null
}
{
"code": "nisi occaecat ea tempor",
"message": "irure anim aute minim aliquip",
"success": true
}
{
"success": true,
"code": "code",
"message": "message",
"data": null
}
{
"code": null,
"data": {
"handType": "3",
"taskInfo": [
{
"isUsed": false,
"loopType": 2,
"taskCode": "join_3"
},
{
"isUsed": false,
"loopType": 3,
"taskCode": "login_3"
},
{
"isUsed": false,
"loopType": 4,
"taskCode": "score_300"
},
{
"isUsed": false,
"loopType": 5,
"taskCode": "bank_2201"
},
{
"isUsed": true,
"loopType": 1,
"taskCode": null
}
]
},
"message": null,
"success": true,
"timeStamp": 1720598101102
}
\ No newline at end of file
{
"code": "in",
"message": "do deserunt ad",
"success": true,
"data": [
{
"score": 88549793.32907936,
"ifGetPrize": false,
"timestamp": -24302842.44998981
}
]
}
{
"success": true,
"message": "labore in",
"code": "in ut irure",
"timeStamp": 2705909681820,
"data": {
"weekRankPopInfo": {
"boolShowPop": false,
"prizeImg": "https://yun.duiba.com.cn/polaris/WechatIMG612.abe30f1a9fb5be173d69e78dce6c94150b023b3b.jpg",
"boolGetPrize": false,
"rank": 32,
"prizeName": "奖品名称奖品名称奖品名称奖品名称"
},
"rank": -1,
"rankScore": 558919,
"assistPopInfo": {
"newAssistNum": 8,
"newChallengeNum": 94
},
"activityStartTime": 1705909681820,
"activityEndTime": 3705909681820,
"boolFirstEnter": false,
"remainGameTime": 10,
"boolDayPlayLimit": false,
"boolBeauty": false,
"hqLoginSend": 4,
"rankPopInfo": {
"boolShowPop": false,
"rank": 95,
"prizeName": "排行榜奖品名称",
"boolGetPrize": true,
"prizeImg": "https://yun.duiba.com.cn/polaris/WechatIMG612.abe30f1a9fb5be173d69e78dce6c94150b023b3b.jpg"
},
"boolChooseRankPrize": false,
"buyRichSpCredits": 445
}
}
\ No newline at end of file
{
"data": [
{
"extra": {
"name": "100苏银豆",
"icon": "//yun.duiba.com.cn/polaris/baner2img.189c7e28f22607844fe3c250877ec42b95f97ca6.png",
"refType": "coupon",
"refId": "49354",
"type": 1
},
"strategyId": 11,
"gmtCreate": 1565213353000,
"id": 331,
"prizeId": "sp_syd"
},
{
"boolBankPrize": true,
"bankPrizeReceiveStatus": 0,
"extra": {
"name": "行方实物奖品-未领取",
"icon": "//yun.duiba.com.cn/polaris/%E6%95%B0%E6%8D%AE%E5%86%B3%E7%AD%96%E5%B7%A5%E5%85%B7.531c2dae250ab379fd6216eb038e60bc12ab9dd6.png",
"refType": "coupon",
"refId": "49354",
"type": 1
},
"strategyId": 11,
"gmtCreate": 1565213116000,
"id": 330,
"prizeId": "sp_bank_sw111"
},
{
"boolBankPrize": true,
"bankPrizeReceiveStatus": 0,
"extra": {
"name": "行方实物奖品-已领取",
"icon": "//yun.duiba.com.cn/polaris/%E6%95%B0%E6%8D%AE%E5%86%B3%E7%AD%96%E5%B7%A5%E5%85%B7.531c2dae250ab379fd6216eb038e60bc12ab9dd6.png",
"refType": "coupon",
"refId": "49354",
"type": 1
},
"strategyId": 11,
"gmtCreate": 1565212826000,
"id": 329,
"prizeId": "sp_bank_sw222"
},
{
"extra": {
"name": "优惠券-大转盘01",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565205625000,
"id": 328,
"strategyId": 11,
"prizeId": "g4c7ba888"
},
{
"extra": {
"name": "优惠券-大转盘05",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"strategyId": 11,
"gmtCreate": 1565203101000,
"id": 327,
"prizeId": "g900c8442"
},
{
"extra": {
"name": "优惠券-大转盘03",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"strategyId": 11,
"gmtCreate": 1565203040000,
"id": 326,
"prizeId": "g0e432eeb"
},
{
"extra": {
"name": "优惠券-大转盘04",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197386000,
"id": 325,
"prizeId": "gc1a8c03c"
},
{
"extra": {
"name": "优惠券-大转盘02",
"icon": "//yun.dui88.com/images/201907/tua0um9jjp.jpg",
"refType": "coupon",
"refId": "49354",
"type": 2
},
"gmtCreate": 1565197080000,
"id": 324,
"strategyId": 11,
"prizeId": "g0e432eeb"
}
],
"success": true
}
{
"success": true,
"code": "code",
"message": "message",
"data": true
}
{
"success": true,
"code": "code",
"message": "message",
"data": true
}
{
"success": true,
"code": "code",
"message": "message",
"data": null
}
{
"success": true,
"code": "code",
"message": "message",
"timeStamp": 1705472851407,
"data": {
"richManNum": 1,
"loopType": 5,
"handType": 1,
"hqStartTime": 1706688161917,
"hqEndTime": 1705392157314,
"delaySecond": 30,
"delayConsumeNum": 10
}
}
{
"success": true,
"code": "code",
"message": "message",
"timeStamp": 1704681850000,
"data": {
"startId": "startId",
"isUsedDelay": false,
"newGuide": true,
"difficultyLevel": 1,
"targetNum": 3,
"rongNum": 8
}
}
{
"success": true,
"code": "code",
"message": "message",
"data": {
"prizeId": "prizeId",
"prizeName": "prizeName",
"prizeImg": "//yun.duiba.com.cn/polaris/%E6%95%B0%E6%8D%AE%E5%86%B3%E7%AD%96%E5%B7%A5%E5%85%B7.531c2dae250ab379fd6216eb038e60bc12ab9dd6.png",
"prizeUrl": "https://www.baidu.com/",
"userRecordId": "userRecordId",
"ifReachTarget": true,
"scoreSum": 100
}
}
{
"success": true,
"code": "",
"message": "",
"data": {
"startTimestamp": 1707494400000,
"endTimestamp": 1708790399000,
"currentTimestamp": 1707994799000,
"ruleDesc": "<p>吧啦吧啦一大堆</p>",
"leftTimes": 3,
"haveJoinedFlag": true,
"musicCloseFlag": false,
"rankOpenPop": {
"type": "nc20240214",
"rank": 3,
"score": 185,
"sendPrizeFlag": false,
"prizeId": "sss_101",
"optionId": "aaaabbbb",
"optionName": "30元立减金",
"optionImg": "//yun.duiba.com.cn/polaris/%E6%95%B0%E6%8D%AE%E5%86%B3%E7%AD%96%E5%B7%A5%E5%85%B7.531c2dae250ab379fd6216eb038e60bc12ab9dd6.png"
},
"rankOpenPop": null
}
}
{
"code": null,
"data": {
"myRankInfo": {
"index": 1,
"maxScore": 17,
"nickname": "534***346",
"userId": "100410397"
},
"rankInfoList": [
{
"index": 1,
"maxScore": 17,
"nickname": "534***346",
"userId": "100410397"
}
],
"currentTimestamp": 1704297595000,
"type": "nc20231226",
"endTimestamp": 1703606399999,
"startTimestamp": 1703520000000
},
"message": null,
"success": true,
"timeStamp": 1703561367475
}
{
"success": true,
"code": 0,
"message": "ok",
"data": "9fFje65wX16N0DqPCaq+Kq2778UQhAN87Z4NxSJZ9b7K8y2OMpQ3jwnVguO6tglfe0+YNU9wmM/XRAK9JMoK38OLyNNuYhJMInMrnXm2CGSOBTnw16rJ1cp8FMMlnqB3ubnMstDbomh/5t4hFhDXf4qgsKCJF9H67oM7pooOtT9uGmXLfhXkIZoPL7aWvAHOCCQwtQbJmQ7OVDK/x3mnhI+/7HGWt4D4hu6iIOzN/kYD0WVGAx9JTEKoElCEfcugKF2WQ2szxQ3LrX4jpcjGXhMJFP1Ga1qO/FuGFHT549ySwWMDlhK95BErgf7n/Jlr4BYQmqfrvyNr4m1uYI7tMYjQ0hbfqYtKjGbpRxX3Gke1W2W36nPnPe3VjaSO5x23Ts7kvWmUuSUIjb7Fg5mIWFNtU2bybT/es0Ei8cuorfEFPvF5vtpnxBjeXw2mNBKS"
}
\ No newline at end of file
{
"success": true,
"message": "",
"code": "",
"data": {
"prize": {
"ruleId": "ru_nc_success_draw3",
"optionId": "aaaabbbb",
"optionName": "30元立减金",
"optionImg": "//yun.duiba.com.cn/polaris/%E6%95%B0%E6%8D%AE%E5%86%B3%E7%AD%96%E5%B7%A5%E5%85%B7.531c2dae250ab379fd6216eb038e60bc12ab9dd6.png",
"prizeId": "prize_3",
"prizeType": 2,
"position": 1,
"userRecordId": 1234,
"url": "https://www.baidu.com/order/1234",
"sendCount": 1,
"extra": "{}"
}
}
}
{
"success": true,
"code": "",
"message": "",
"data": "9fFje65wX16N0DqPCaq+KkJ1Ksi6dFLuBHjEFPSCUGJP/NgI3wi7myUjTmJxbaTreWc5ZceCw842AXE7hr+rmQ=="
}
\ No newline at end of file
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