Commit 2ab3aa79 authored by haiyoucuv's avatar haiyoucuv

更改

parent 8b727cfe
......@@ -3,7 +3,4 @@
<component name="RustProjectSettings">
<option name="toolchainHomeDirectory" value="$USER_HOME$/.cargo/bin" />
</component>
<component name="SvnConfiguration">
<configuration>$USER_HOME$/.subversion</configuration>
</component>
</project>
\ No newline at end of file
......@@ -2,19 +2,47 @@ import { _decorator, Node, Label, Button } from 'cc';
import { ScrollListItem } from '../../ScrollList/ScrollListItem';
import TaskCenter from '../../TaskCenter';
import { strFormat } from '../../Utils/Utils';
const { ccclass, property } = _decorator;
const {ccclass, property} = _decorator;
@ccclass("TaskItem")
export class TaskItem extends ScrollListItem {
@property(Label)
title: Label = null;
@property(Label)
subTitle: Label = null;
@property({type: Node, displayName: "去完成"})
goDone: Node = null;
@property({type: Node, displayName: "去邀请"})
goInvite: Node = null;
@property({type: Node, displayName: "已完成"})
done: Node = null;
@property({type: Node, displayName: "明日再来"})
tomorrow: Node = null;
@property({type: Node, displayName: "领取奖励"})
receive: Node = null;
@property({type: Node, displayName: "去报名"})
goSignUp: Node = null;
@property(Node)
doComplete: Node = null;
@property(Node)
receivePrize: Node = null;
@property(Node)
completed: Node = null;
isClick: boolean = false;
/** 任务节点 */
......@@ -23,37 +51,39 @@ export class TaskItem extends ScrollListItem {
/** 任务信息 */
taskInfo = null;
start() {}
start() {
}
onItemRender(data, ...param: any[]) {
// console.log(`index: ${data}`, param);
this.taskNode = param?.[1]?.[0] || {};
this.taskInfo = data
if (data?.code?.startsWith("it")) {
this.node.getChildByName("Title").getComponent(Label).string = strFormat(`${data?.title}(${data?.completedSize}/${data?.intervalLimitSize})`, 24);
this.title.string = strFormat(`${data?.title}(${data?.completedSize}/${data?.intervalLimitSize})`, 24);
} else {
this.node.getChildByName("Title").getComponent(Label).string = strFormat(data?.title, 24);
this.title.string = strFormat(data?.title, 24);
}
// this.node.getChildByName("SubTitle").getComponent(Label).string = `${data?.options?.[0]?.name}+${data?.options?.[0]?.sendCount}`;
this.node.getChildByName("SubTitle").getComponent(Label).string = strFormat(data?.subTitle, 38);
switch(data?.taskStatus + "") {
case "0": {
// this.subTitle.string = `${data?.options?.[0]?.name}+${data?.options?.[0]?.sendCount}`;
this.subTitle.string = strFormat(data?.subTitle, 38);
this.goDone.active = this.goInvite.active = this.done.active
= this.tomorrow.active = this.receive.active = this.goSignUp.active = false;
switch (+data?.taskStatus) {
case 0: {
this.doComplete.on(Button.EventType.CLICK, this.doCompleteFunc(data?.code, data), this);
this.doComplete.active = true;
this.receivePrize.active = false;
this.completed.active = false
if (data?.code?.startsWith("it")) {
this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "去邀请";
this.goInvite.active = true;
} else if (data?.code?.startsWith("bt")) {
this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "去完成";
this.goDone.active = true;
} else if (data?.code?.startsWith("tt") && (data?.extra == 0 || !!!data?.extra)) {
this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "立即报名";
this.goSignUp.active = true;
} else {
this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "去完成";
this.goDone.active = true;
}
break;
}
case "1": {
case 1: {
this.receivePrize.on(Button.EventType.CLICK, this.receivePrizeFunc(data), this);
this.doComplete.active = false;
this.receivePrize.active = true;
......@@ -61,7 +91,7 @@ export class TaskItem extends ScrollListItem {
this.node.getChildByPath("BtnGroup/Name").getComponent(Label).string = "待领取";
break;
}
case "2": {
case 2: {
this.doComplete.active = false;
this.receivePrize.active = false;
this.completed.active = true
......@@ -78,8 +108,6 @@ export class TaskItem extends ScrollListItem {
/** 去完成 */
doCompleteFunc(taskCode: string, item: any) {
return () => {
console.log("****去完成");
this.logClick(this.taskInfo);
if (this.isClick) return;
this.isClick = true;
setTimeout(() => {
......@@ -92,7 +120,6 @@ export class TaskItem extends ScrollListItem {
/** 领取奖励 */
receivePrizeFunc(item: any) {
return () => {
this.logClick(item);
if (this.isClick) return;
this.isClick = true;
setTimeout(() => {
......@@ -102,14 +129,5 @@ export class TaskItem extends ScrollListItem {
}
}
/** 点击埋点 */
logClick(item) {
// switch(true) {
// case item?.code?.startsWith("it") && item?.taskStatus == "0": sendLog(LOG_TYPE.CLICK, 12, 1, 0); break;
// case item?.code?.startsWith("bt") && item?.taskStatus == "0": sendLog(LOG_TYPE.CLICK, 12, 1, 2); break;
// case item?.code?.startsWith("tt") && item?.taskStatus == "0": sendLog(LOG_TYPE.CLICK, 12, 1, 1); break;
// case item?.taskStatus == "1": sendLog(LOG_TYPE.CLICK, 12, 1, 3); break;
// }
}
}
import { _decorator, Component, Node, Button, Label, view, Widget, UITransform, Prefab, instantiate, UIOpacity, Color } from "cc";
import {
_decorator,
Component,
Node,
Button,
Label,
view,
Widget,
UITransform,
Prefab,
instantiate,
UIOpacity,
Color
} from "cc";
import Panel from "db://assets/Module/Panel";
import { ScrollList, SCROLL_VERTICAL } from "../../ScrollList/ScrollList";
import TaskCenter from "../../TaskCenter";
import { unwatchPageVisibility, watchPageVisibility } from "../../Utils/pageVisibilityNotify";
const { ccclass, property } = _decorator;
import { sendWebNet, WebNetName } from "../../Utils/WebNet/WebNet";
const {ccclass, property} = _decorator;
const MD_MAP = {
0: 1,
1: 2,
......@@ -11,125 +26,51 @@ const MD_MAP = {
@ccclass("TaskPanel")
export class TaskPanel extends Panel {
static bundle: string = "";
static skin = "TaskPanel";
static group = "TaskPanel";
@property({ type: ScrollList, tooltip: "竖行滚动容器" })
private vScroll: ScrollList;
/** 关闭按钮 */
@property(Node)
closeBtn: Node = null;
/** tab对象 */
@property(Prefab)
tebItem: Prefab = null;
static bundle: string = "";
static skin = "TaskPanel";
static group = "TaskPanel";
isClick: boolean = false;
@property({type: ScrollList, tooltip: "竖行滚动容器"})
private vScroll: ScrollList;
async start() {
// 20240227 去掉tab
this.node.getChildByName("Tab").active = false
this.closeBtn.on(Button.EventType.CLICK, this.closePannel, this);
this.setTaskBoxHeight();
await TaskCenter.ins.getTaskInfo();
this.pannelRender();
/** 关闭按钮 */
@property(Node)
closeBtn: Node = null;
watchPageVisibility(this.pageVChange)
}
/** 页面显示 */
pageVChange = async (visible) => {
console.log('页面', visible ? '可见' : '不可见')
if (visible) {
await TaskCenter.ins.getTaskInfo();
this.taskRender();
async start() {
this.closeBtn.on(Button.EventType.CLICK, this.closePannel, this);
await this.getTaskInfo();
watchPageVisibility(this.pageVChange)
}
}
/** 渲染 */
async pannelRender() {
this.taskRender();
// 20240227 去掉tab
// this.tabRender();
}
/** 任务区域获取 */
setTaskBoxHeight() {
const taskCanvas = view.getVisibleSize();
let taskHeightX = taskCanvas.height;
/** 弹窗中的可滚动总区域,未减去屏幕差 */
const tab = this.node.getChildByName("Tab");
// let totalHeight = 1624 - tab.getComponent(Widget).top - tab.getComponent(UITransform).height / 2 - 70;
// 20240227 去掉tab
let totalHeight = 1624 - tab.getComponent(Widget).top - 20;
/** 可滚动区域 */
const taskListHeight = Math.max(totalHeight -(1624 - taskHeightX) / 2, 200);
const taskList = this.node.getChildByName("ScrollView");
const viewContent = taskList.getChildByName("view");
viewContent.getComponent(UITransform).height = taskListHeight;
taskList.getComponent(UITransform).height = taskListHeight;
console.log("scrollView高度: ", taskListHeight);
}
/** 任务渲染 */
async taskRender() {
this.vScroll.setDataList(TaskCenter.ins.taskTabInfo, SCROLL_VERTICAL, [0, 0, 20], null, this.node);
this.vScroll.scrollToTop(0);
this.logExposure();
}
/** tab 渲染 */
tabRender() {
for (let key of Object.keys(TaskCenter.ins.taskInfo)) {
const node = instantiate(this.tebItem);
node.getChildByName("TabName").getComponent(Label).string = key;
if (TaskCenter.ins.tab == key) {
node.getChildByName("Select").getComponent(UIOpacity).opacity = 255;
node.getChildByName("TabName").getComponent(Label).color = new Color(195, 98, 12);
}
node.on(Button.EventType.CLICK, this.changeTab(key), this);
this.node.getChildByName("Tab").addChild(node);
/** 页面显示 */
pageVChange = async (visible) => {
console.log('页面', visible ? '可见' : '不可见')
if (visible) {
await this.getTaskInfo();
}
}
}
/** 切换tab */
changeTab(tabName: string) {
return () => {
if (this.isClick) return;
this.isClick = true;
setTimeout(() => {
this.isClick = false;
}, 500)
TaskCenter.ins.setTab(tabName);
/** tab更新 */
for (let node of this.node.getChildByName("Tab").children) {
const tabName = node.getChildByName("TabName");
if (tabName.getComponent(Label).string == TaskCenter.ins.tab) {
node.getChildByName("Select").getComponent(UIOpacity).opacity = 255;
tabName.getComponent(Label).color = new Color(195, 98, 12);
} else {
node.getChildByName("Select").getComponent(UIOpacity).opacity = 0;
tabName.getComponent(Label).color = new Color(255, 255, 255);
async getTaskInfo() {
const {success, data = {}} = await sendWebNet(WebNetName.queryTasks);
if (!success) {
return;
}
}
/** 更新任务展示 */
this.taskRender();
this.vScroll.setDataList(data?.item || [], SCROLL_VERTICAL, [0, 30, 20], null, this.node);
this.vScroll.scrollToTop(0);
}
}
/** 关闭弹窗 */
closePannel() {
this.hidePanel();
unwatchPageVisibility(this.pageVChange)
}
/** 任务渲染 */
async taskRender() {
this.vScroll.setDataList(TaskCenter.ins.taskInfoOrigin, SCROLL_VERTICAL, [0, 30, 20], null, this.node);
this.vScroll.scrollToTop(0);
}
/** 曝光 */
logExposure() {
const list = TaskCenter.ins.taskTabInfo;
for (let item of list) {
/** 关闭弹窗 */
closePannel() {
this.hidePanel();
unwatchPageVisibility(this.pageVChange)
}
}
}
......@@ -87,14 +87,7 @@ export default class TaskCenter {
for (let item of (res?.data?.item || [])) {
const desc = JSON.parse(item?.desc);
// 20240220迭代 desc字段增加返回 taskType 1:装备任务 2:活动任务(前端需要做过滤显示)
if (desc?.taskType == 1) continue
// if (!!temp[desc.tabType]) {
// temp[desc.tabType].push(item);
// } else {
// temp[desc.tabType] = [item];
// }
// 20240227 去掉tab 减少改动点 保持原来有tab的数据格式
if (!!temp['all']) {
temp['all'].push(item);
} else {
......
This diff is collapsed.
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "7a9676de-1652-40cc-ad76-9a66b433d06f",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7a9676de-1652-40cc-ad76-9a66b433d06f@6c48a",
"displayName": "tab_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "7a9676de-1652-40cc-ad76-9a66b433d06f",
"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": "7a9676de-1652-40cc-ad76-9a66b433d06f@f9941",
"displayName": "tab_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 475,
"height": 83,
"rawWidth": 475,
"rawHeight": 83,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-237.5,
-41.5,
0,
237.5,
-41.5,
0,
-237.5,
41.5,
0,
237.5,
41.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
83,
475,
83,
0,
0,
475,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-237.5,
-41.5,
0
],
"maxPos": [
237.5,
41.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "7a9676de-1652-40cc-ad76-9a66b433d06f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "7a9676de-1652-40cc-ad76-9a66b433d06f@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0@6c48a",
"displayName": "tab_select",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0",
"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": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0@f9941",
"displayName": "tab_select",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 140,
"height": 66,
"rawWidth": 140,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-70,
-33,
0,
70,
-33,
0,
-70,
33,
0,
70,
33,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
66,
140,
66,
0,
0,
140,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-70,
-33,
0
],
"maxPos": [
70,
33,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "97fb9389-8c31-4ac2-9551-27eac254da3a",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "97fb9389-8c31-4ac2-9551-27eac254da3a@6c48a",
"displayName": "bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "97fb9389-8c31-4ac2-9551-27eac254da3a",
"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": "97fb9389-8c31-4ac2-9551-27eac254da3a@f9941",
"displayName": "bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 725,
"height": 1015,
"rawWidth": 725,
"rawHeight": 1015,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-362.5,
-507.5,
0,
362.5,
-507.5,
0,
-362.5,
507.5,
0,
362.5,
507.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1015,
725,
1015,
0,
0,
725,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-362.5,
-507.5,
0
],
"maxPos": [
362.5,
507.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "97fb9389-8c31-4ac2-9551-27eac254da3a@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "97fb9389-8c31-4ac2-9551-27eac254da3a@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "01031984-8366-4f71-9972-5a3392ba24bf",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "01031984-8366-4f71-9972-5a3392ba24bf@6c48a",
"displayName": "去完成",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "01031984-8366-4f71-9972-5a3392ba24bf",
"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": "01031984-8366-4f71-9972-5a3392ba24bf@f9941",
"displayName": "去完成",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 55,
"rawWidth": 149,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-74.5,
-27.5,
0,
74.5,
-27.5,
0,
-74.5,
27.5,
0,
74.5,
27.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
55,
149,
55,
0,
0,
149,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-74.5,
-27.5,
0
],
"maxPos": [
74.5,
27.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "01031984-8366-4f71-9972-5a3392ba24bf@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "01031984-8366-4f71-9972-5a3392ba24bf@6c48a"
}
}
......@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d5c4cd47-51f6-4396-ac6a-8ed406aeb0cc",
"uuid": "ddf89097-2f55-40a8-b255-861943780e36",
"files": [
".json",
".png"
......@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d5c4cd47-51f6-4396-ac6a-8ed406aeb0cc@6c48a",
"displayName": "Bg",
"uuid": "ddf89097-2f55-40a8-b255-861943780e36@6c48a",
"displayName": "去邀请",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d5c4cd47-51f6-4396-ac6a-8ed406aeb0cc",
"imageUuidOrDatabaseUri": "ddf89097-2f55-40a8-b255-861943780e36",
"isUuid": true,
"visible": false,
"minfilter": "linear",
......@@ -34,8 +34,8 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d5c4cd47-51f6-4396-ac6a-8ed406aeb0cc@f9941",
"displayName": "Bg",
"uuid": "ddf89097-2f55-40a8-b255-861943780e36@f9941",
"displayName": "去邀请",
"id": "f9941",
"name": "spriteFrame",
"userData": {
......@@ -46,10 +46,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 1104,
"rawWidth": 750,
"rawHeight": 1104,
"width": 149,
"height": 56,
"rawWidth": 149,
"rawHeight": 56,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-375,
-552,
-74.5,
-28,
0,
375,
-552,
74.5,
-28,
0,
-375,
552,
-74.5,
28,
0,
375,
552,
74.5,
28,
0
],
"indexes": [
......@@ -84,12 +84,12 @@
],
"uv": [
0,
1104,
750,
1104,
56,
149,
56,
0,
0,
750,
149,
0
],
"nuv": [
......@@ -103,18 +103,18 @@
1
],
"minPos": [
-375,
-552,
-74.5,
-28,
0
],
"maxPos": [
375,
552,
74.5,
28,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d5c4cd47-51f6-4396-ac6a-8ed406aeb0cc@6c48a",
"imageUuidOrDatabaseUri": "ddf89097-2f55-40a8-b255-861943780e36@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
......@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d5c4cd47-51f6-4396-ac6a-8ed406aeb0cc@6c48a"
"redirect": "ddf89097-2f55-40a8-b255-861943780e36@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "495e70bf-e2d0-4459-9493-0c0c061790b5",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "495e70bf-e2d0-4459-9493-0c0c061790b5@6c48a",
"displayName": "已完成",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "495e70bf-e2d0-4459-9493-0c0c061790b5",
"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": "495e70bf-e2d0-4459-9493-0c0c061790b5@f9941",
"displayName": "已完成",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 55,
"rawWidth": 149,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-74.5,
-27.5,
0,
74.5,
-27.5,
0,
-74.5,
27.5,
0,
74.5,
27.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
55,
149,
55,
0,
0,
149,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-74.5,
-27.5,
0
],
"maxPos": [
74.5,
27.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "495e70bf-e2d0-4459-9493-0c0c061790b5@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "495e70bf-e2d0-4459-9493-0c0c061790b5@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "6de289e4-a80c-4c19-8429-a5da54277b3a",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "6de289e4-a80c-4c19-8429-a5da54277b3a@6c48a",
"displayName": "明日再来",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "6de289e4-a80c-4c19-8429-a5da54277b3a",
"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": "6de289e4-a80c-4c19-8429-a5da54277b3a@f9941",
"displayName": "明日再来",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 55,
"rawWidth": 149,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-74.5,
-27.5,
0,
74.5,
-27.5,
0,
-74.5,
27.5,
0,
74.5,
27.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
55,
149,
55,
0,
0,
149,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-74.5,
-27.5,
0
],
"maxPos": [
74.5,
27.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "6de289e4-a80c-4c19-8429-a5da54277b3a@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "6de289e4-a80c-4c19-8429-a5da54277b3a@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d085b05f-9984-48aa-9308-9f4d3700a230",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d085b05f-9984-48aa-9308-9f4d3700a230@6c48a",
"displayName": "立即报名",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d085b05f-9984-48aa-9308-9f4d3700a230",
"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": "d085b05f-9984-48aa-9308-9f4d3700a230@f9941",
"displayName": "立即报名",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 55,
"rawWidth": 149,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-74.5,
-27.5,
0,
74.5,
-27.5,
0,
-74.5,
27.5,
0,
74.5,
27.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
55,
149,
55,
0,
0,
149,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-74.5,
-27.5,
0
],
"maxPos": [
74.5,
27.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d085b05f-9984-48aa-9308-9f4d3700a230@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d085b05f-9984-48aa-9308-9f4d3700a230@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "0cb53203-9835-48a0-adca-789700f28778",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "0cb53203-9835-48a0-adca-789700f28778@6c48a",
"displayName": "领取奖励",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "0cb53203-9835-48a0-adca-789700f28778",
"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": "0cb53203-9835-48a0-adca-789700f28778@f9941",
"displayName": "领取奖励",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 55,
"rawWidth": 149,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-74.5,
-27.5,
0,
74.5,
-27.5,
0,
-74.5,
27.5,
0,
74.5,
27.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
55,
149,
55,
0,
0,
149,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-74.5,
-27.5,
0
],
"maxPos": [
74.5,
27.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "0cb53203-9835-48a0-adca-789700f28778@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "0cb53203-9835-48a0-adca-789700f28778@6c48a"
}
}
[
{
"__type__": "cc.Prefab",
"_name": "TabItem",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "TabItem",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Select",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 66
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "35MTv5rlpFXrLA5dLBASPm"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "a9e2e819-a68f-40c4-bc31-e7a64ab546c0@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bd+YwlI4xHj5HuB/X9gG8i"
},
{
"__type__": "cc.UIOpacity",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_opacity": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e4oST/BsVD1oH0tKGHbSUw"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d1CIxDw8JBBahYuEsup+rq",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "TabName",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 78,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "093YoJ0MFIf7g46Hos7exx"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "浏览",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 39,
"_fontSize": 39,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "58midqGJBEBr25qvKU9rSN"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c2Xh6I35dNnpgS4fEJZbUl",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f8Qxbt7jhHt4/n8Scv20Hj"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "715eF5DKVCUacPX+L5IumU"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "bdG7Bo/89K34WYnA/BsfrX",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "1b455210-275d-4d7e-a972-d93d374c63c2",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "TabItem"
}
}
......@@ -39,9 +39,6 @@
<script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script>
<script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script>
<script src="//yun.duiba.com.cn/jsbridge-1.0.4_jiangsu.js"></script>
<script src="https://yun.duiba.com.cn/js-libs/jiangsu-bank/5.1.3/jiangsu-bank.js"></script>
<link rel="stylesheet" type="text/css" href="{{__remoteUrl__}}style.css"/>
<style>
......
......@@ -42,7 +42,7 @@
<script src="//yun.duiba.com.cn/jsbridge-1.0.4_jiangsu.js"></script>
<script src="https://yun.duiba.com.cn/js-libs/jiangsu-bank/5.1.3/jiangsu-bank.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718273142301/style.css"/>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718612202944/style.css"/>
<style>
.sui-captcha {
......@@ -97,17 +97,17 @@
</div>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718273142301/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718612202944/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718273142301/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718612202944/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718273142301/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1718612202944/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1718273142301/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1718612202944/index.js').catch(function (err) {
console.error(err);
})
</script>
......
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