Commit b11d2500 authored by wildfirecode13's avatar wildfirecode13

1

parent 5de3c0f5
......@@ -4,7 +4,7 @@
"needPop":0,
"activityOver": false,
"surplusCount": 1,
"credits": 111110,
"credits": 0,
"needCredits": 1,
"type": 1,
"options": [{
......
......@@ -14,6 +14,7 @@ import { SkinJson } from "./SkinJson";
import { destroyWebNetData, sendWebNet } from "./WebNet";
import { WebNetName } from "./WebNetName";
import {SharePanel} from "./panels/share"
import { notEnoughMoneySharePanel } from "./panels/notEnoughMoneyShare";
/**
* 全局事件,为了和小程序交互
......@@ -93,7 +94,7 @@ export class Main {
sendWebNet(WebNetName.getInviteCode, {}, null, true);
sendWebNet(WebNetName.doAssist, { inviteCode: getQueryParams().inviteCode }, null, true);
// setTimeout(() => {
// showPanel(SharePanel);
showPanel(notEnoughMoneySharePanel);
// }, 4000);
}
......
......@@ -2,697 +2,55 @@ export const ResJson = {
"groups": [
{
"keys": "ruleBg.png,我知道了.png",
"name": "RulePanel",
"atlas": {
"ruleBg.png": {
"x": 2,
"y": 2,
"w": 680,
"h": 1120,
"ox": 0,
"oy": 0,
"sw": 680,
"sh": 1120,
"ro": false
},
"我知道了.png": {
"x": 684,
"y": 2,
"w": 412,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 412,
"sh": 114,
"ro": true
}
}
"name": "RulePanel"
},
{
"keys": "startSceneBg.jpg,奖品按钮.png,底部按钮区背景.png,开始游戏.png,排行榜按钮.png,规则按钮.png,赚次数按钮.png,运动锦鲤按钮.png",
"name": "StartScene",
"atlas": {
"底部按钮区背景.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 191,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 191,
"ro": false
},
"开始游戏.png": {
"x": 2,
"y": 195,
"w": 413,
"h": 149,
"ox": 0,
"oy": 0,
"sw": 413,
"sh": 149,
"ro": false
},
"运动锦鲤按钮.png": {
"x": 417,
"y": 195,
"w": 121,
"h": 117,
"ox": 0,
"oy": 0,
"sw": 121,
"sh": 117,
"ro": true
},
"奖品按钮.png": {
"x": 536,
"y": 195,
"w": 119,
"h": 44,
"ox": 0,
"oy": 0,
"sw": 119,
"sh": 44,
"ro": true
},
"规则按钮.png": {
"x": 582,
"y": 195,
"w": 119,
"h": 44,
"ox": 0,
"oy": 0,
"sw": 119,
"sh": 44,
"ro": true
},
"排行榜按钮.png": {
"x": 628,
"y": 195,
"w": 91,
"h": 117,
"ox": 0,
"oy": 0,
"sw": 91,
"sh": 117,
"ro": true
},
"赚次数按钮.png": {
"x": 2,
"y": 346,
"w": 92,
"h": 117,
"ox": 0,
"oy": 0,
"sw": 92,
"sh": 117,
"ro": true
}
}
"name": "StartScene"
},
{
"keys": "comCloseBtn.png,index_box.png,index_prizeitembg.png,sharemask.png,test.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,知道啦.png,观夏四季香薰.png,音响.png",
"name": "common",
"atlas": {
"toastBg.png": {
"x": 2,
"y": 2,
"w": 460,
"h": 130,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 130,
"ro": false
},
"知道啦.png": {
"x": 2,
"y": 134,
"w": 306,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 306,
"sh": 102,
"ro": false
},
"sharemask.png": {
"x": 2,
"y": 238,
"w": 248,
"h": 298,
"ox": 0,
"oy": 0,
"sw": 248,
"sh": 298,
"ro": true
},
"test.png": {
"x": 464,
"y": 2,
"w": 250,
"h": 231,
"ox": 0,
"oy": 14,
"sw": 250,
"sh": 250,
"ro": true
},
"音响.png": {
"x": 310,
"y": 134,
"w": 240,
"h": 145,
"ox": 3,
"oy": 59,
"sw": 250,
"sh": 250,
"ro": true
},
"观夏四季香薰.png": {
"x": 457,
"y": 254,
"w": 212,
"h": 224,
"ox": 29,
"oy": 18,
"sw": 250,
"sh": 250,
"ro": false
},
"index_box.png": {
"x": 2,
"y": 488,
"w": 181,
"h": 198,
"ox": 0,
"oy": 0,
"sw": 181,
"sh": 198,
"ro": true
},
"waitingBg.png": {
"x": 202,
"y": 488,
"w": 160,
"h": 180,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 180,
"ro": false
},
"index_prizeitembg.png": {
"x": 364,
"y": 480,
"w": 131,
"h": 131,
"ox": 0,
"oy": 0,
"sw": 131,
"sh": 131,
"ro": false
},
"关闭按钮.png": {
"x": 302,
"y": 376,
"w": 60,
"h": 60,
"ox": 0,
"oy": 0,
"sw": 60,
"sh": 60,
"ro": false
},
"waitingRot.png": {
"x": 364,
"y": 613,
"w": 56,
"h": 56,
"ox": 0,
"oy": 0,
"sw": 56,
"sh": 56,
"ro": false
},
"comCloseBtn.png": {
"x": 302,
"y": 438,
"w": 48,
"h": 48,
"ox": 0,
"oy": 0,
"sw": 48,
"sh": 48,
"ro": false
}
}
"name": "common"
},
{
"keys": "cost_bg.png,cost_close.png,cost_open.png",
"name": "cost",
"atlas": {
"cost_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"cost_open.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"cost_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "cost"
},
{
"keys": "getTimes_bg.png,getTimes_close.png,getTimes_go.png",
"name": "getTimes",
"atlas": {
"getTimes_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"getTimes_go.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"getTimes_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "getTimes"
},
{
"keys": "index_bg.png,index_bg2.png,index_logo1.png,index_logo2.png,index_opentips.png,index_prizebg.png,index_record.png,index_rule.png,index_sharehand.png,index_sharetips.png",
"name": "index",
"atlas": {
"index_bg.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 1624,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 1624,
"ro": false
},
"index_bg2.png": {
"x": 754,
"y": 2,
"w": 687,
"h": 751,
"ox": 0,
"oy": 0,
"sw": 687,
"sh": 751,
"ro": false
},
"index_prizebg.png": {
"x": 754,
"y": 755,
"w": 687,
"h": 154,
"ox": 0,
"oy": 0,
"sw": 687,
"sh": 154,
"ro": false
},
"index_logo2.png": {
"x": 754,
"y": 911,
"w": 405,
"h": 76,
"ox": 0,
"oy": 0,
"sw": 405,
"sh": 76,
"ro": false
},
"index_sharetips.png": {
"x": 1161,
"y": 911,
"w": 383,
"h": 54,
"ox": 0,
"oy": 0,
"sw": 383,
"sh": 54,
"ro": true
},
"index_opentips.png": {
"x": 754,
"y": 989,
"w": 350,
"h": 29,
"ox": 0,
"oy": 0,
"sw": 350,
"sh": 29,
"ro": false
},
"index_logo1.png": {
"x": 1106,
"y": 989,
"w": 276,
"h": 39,
"ox": 0,
"oy": 0,
"sw": 276,
"sh": 39,
"ro": true
},
"index_record.png": {
"x": 1217,
"y": 911,
"w": 142,
"h": 35,
"ox": 0,
"oy": 0,
"sw": 142,
"sh": 35,
"ro": false
},
"index_rule.png": {
"x": 1361,
"y": 911,
"w": 140,
"h": 35,
"ox": 0,
"oy": 0,
"sw": 140,
"sh": 35,
"ro": true
},
"index_sharehand.png": {
"x": 1217,
"y": 948,
"w": 70,
"h": 71,
"ox": 0,
"oy": 0,
"sw": 70,
"sh": 71,
"ro": true
}
}
"name": "index"
},
{
"keys": "进度条.png,进度条底.png",
"name": "loading",
"atlas": {
"进度条底.png": {
"x": 2,
"y": 2,
"w": 584,
"h": 24,
"ox": 0,
"oy": 0,
"sw": 584,
"sh": 24,
"ro": false
},
"进度条.png": {
"x": 2,
"y": 28,
"w": 580,
"h": 20,
"ox": 0,
"oy": 0,
"sw": 580,
"sh": 20,
"ro": false
}
}
"name": "loading"
},
{
"keys": "memberGuide_bg.png,memberGuide_btn.png,memberGuide_close.png",
"name": "memberGuide",
"atlas": {
"memberGuide_bg.png": {
"x": 2,
"y": 2,
"w": 493,
"h": 582,
"ox": 0,
"oy": 0,
"sw": 493,
"sh": 582,
"ro": false
},
"memberGuide_btn.png": {
"x": 497,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"memberGuide_close.png": {
"x": 552,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "memberGuide"
},
{
"keys": "newRule_bg.png,newRule_close.png",
"name": "newRule",
"atlas": {
"newRule_bg.png": {
"x": 2,
"y": 2,
"w": 529,
"h": 725,
"ox": 0,
"oy": 0,
"sw": 529,
"sh": 725,
"ro": false
},
"newRule_close.png": {
"x": 533,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "newRule"
},
{
"keys": "noprize_bg.png,noprize_close.png,noprize_ok.png",
"name": "noprize",
"atlas": {
"noprize_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"noprize_ok.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"noprize_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "noprize"
},
{
"keys": "notEnoughMoney_bg.png,notEnoughMoney_btn.png,notEnoughMoney_close.png",
"name": "notEnoughMoney",
"atlas": {
"notEnoughMoney_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"notEnoughMoney_btn.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"notEnoughMoney_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "notEnoughMoney"
},
{
"keys": "notEnoughMoneyShare_bg.png,notEnoughMoneyShare_btn.png,notEnoughMoneyShare_close.png",
"name": "notEnoughMoneyShare",
"atlas": {
"notEnoughMoneyShare_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"notEnoughMoneyShare_btn.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"notEnoughMoneyShare_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "notEnoughMoneyShare"
},
{
"keys": "notEnoughMoneyShareHasTimes_bg.png,notEnoughMoneyShareHasTimes_btn.png,notEnoughMoneyShareHasTimes_close.png",
"name": "notEnoughMoneyShareHasTimes",
"atlas": {
"notEnoughMoneyShareHasTimes_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"notEnoughMoneyShareHasTimes_btn.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"notEnoughMoneyShareHasTimes_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "notEnoughMoneyShareHasTimes"
},
{
"keys": "playBg.jpg",
......@@ -700,92 +58,11 @@ export const ResJson = {
},
{
"keys": "prize_bg.png,prize_bg2.png,prize_close.png,prize_open.png",
"name": "prize",
"atlas": {
"prize_bg2.png": {
"x": 2,
"y": 2,
"w": 731,
"h": 731,
"ox": 0,
"oy": 0,
"sw": 731,
"sh": 731,
"ro": false
},
"prize_bg.png": {
"x": 735,
"y": 2,
"w": 521,
"h": 618,
"ox": 0,
"oy": 0,
"sw": 521,
"sh": 618,
"ro": false
},
"prize_open.png": {
"x": 735,
"y": 622,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": false
},
"prize_close.png": {
"x": 957,
"y": 622,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "prize"
},
{
"keys": "share_bg.png,share_close.png,share_go.png",
"name": "share",
"atlas": {
"share_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"share_go.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"share_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "share"
},
{
"keys": "盲盒开启-打开-输出.svga,盲盒选中-输出.svga,首页元素循环上-输出.svga,首页元素循环下-输出.svga",
......@@ -793,43 +70,8 @@ export const ResJson = {
},
{
"keys": "timesNotEnough_bg.png,timesNotEnough_close.png,timesNotEnough_ok.png",
"name": "timesNotEnough",
"atlas": {
"timesNotEnough_bg.png": {
"x": 2,
"y": 2,
"w": 482,
"h": 580,
"ox": 0,
"oy": 0,
"sw": 482,
"sh": 580,
"ro": false
},
"timesNotEnough_ok.png": {
"x": 486,
"y": 2,
"w": 220,
"h": 53,
"ox": 0,
"oy": 0,
"sw": 220,
"sh": 53,
"ro": true
},
"timesNotEnough_close.png": {
"x": 541,
"y": 2,
"w": 67,
"h": 66,
"ox": 0,
"oy": 0,
"sw": 67,
"sh": 66,
"ro": true
}
}
"name": "timesNotEnough"
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1631958815/resource/"
"path": "./resource/"
}
\ No newline at end of file
......@@ -447,7 +447,7 @@ export const SkinJson = {
"y": 258,
"type": "text",
"props": {
"text": "分享好友/群即可获得",
"text": "分享好友/群",
"size": 32,
"fillColor": "#000000",
"bold": "true",
......@@ -460,7 +460,7 @@ export const SkinJson = {
"y": 303,
"type": "text",
"props": {
"text": "次免费拆盲盒机会",
"text": "好友访问活动首页\n即可增加1次免费拆盲盒机会",
"size": 28,
"fillColor": "#000000",
"textAlpha": 1
......@@ -519,7 +519,7 @@ export const SkinJson = {
"y": 258,
"type": "text",
"props": {
"text": "分享好友/群即可获得",
"text": "分享好友/群",
"size": 32,
"fillColor": "#000000",
"bold": "true",
......@@ -532,7 +532,7 @@ export const SkinJson = {
"y": 303,
"type": "text",
"props": {
"text": "次免费拆盲盒机会",
"text": "好友访问活动首页\n即可增加1次免费拆盲盒机会",
"size": 28,
"fillColor": "#000000",
"textAlpha": 1
......@@ -885,11 +885,11 @@ export const SkinJson = {
{
"name": "prize_tips",
"x": 251,
"y": 565,
"y": 571,
"type": "text",
"props": {
"text": "请在中奖后24小时内领取并填写地址提交~",
"size": 22,
"size": 20,
"fillColor": "#000000",
"textAlpha": 1
}
......
......@@ -48,6 +48,7 @@ export class notEnoughMoneySharePanel extends Panel {
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this, 'notEnoughMoneyShare_tips'), 496);
centerTextField(getObject(this, 'notEnoughMoneyShareFriend_tips'), 496);
}
initEvents() {
......
......@@ -48,6 +48,9 @@ export class notEnoughMoneyShareHasTimesPanel extends Panel {
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this, 'notEnoughMoneyShareHasTimes_tips'), 496);
centerTextField(getObject(this,'notEnoughMoneyShareHasTimesFriend_tips'),496);
}
initEvents() {
......
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