增加输入手机号等信息的弹出窗口
@ -41,8 +41,8 @@
|
|||||||
},
|
},
|
||||||
"_scale": {
|
"_scale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0.446914855228887,
|
"x": 0.6233316637283982,
|
||||||
"y": 0.446914855228887,
|
"y": 0.6233316637283982,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_quat": {
|
"_quat": {
|
||||||
@ -640,6 +640,9 @@
|
|||||||
"topMenuPrefab": {
|
"topMenuPrefab": {
|
||||||
"__uuid__": "a8be5224-3649-4a18-ad8f-ac370073c2d6"
|
"__uuid__": "a8be5224-3649-4a18-ad8f-ac370073c2d6"
|
||||||
},
|
},
|
||||||
|
"infoMenuPrefab": {
|
||||||
|
"__uuid__": "923bb98e-6883-4add-9c53-38a34b4b466c"
|
||||||
|
},
|
||||||
"menuContentPrefab": {
|
"menuContentPrefab": {
|
||||||
"__uuid__": "6c21a659-0cc4-49e6-a4b6-9697e946aaa1"
|
"__uuid__": "6c21a659-0cc4-49e6-a4b6-9697e946aaa1"
|
||||||
},
|
},
|
||||||
|
2382
assets/resources/prefabs/info_menu.prefab
Normal file
7
assets/resources/prefabs/info_menu.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.0",
|
||||||
|
"uuid": "923bb98e-6883-4add-9c53-38a34b4b466c",
|
||||||
|
"optimizationPolicy": "AUTO",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
1003
assets/resources/prefabs/menu_sample.prefab
Normal file
7
assets/resources/prefabs/menu_sample.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.0",
|
||||||
|
"uuid": "de027dd7-a186-4797-b332-2f6e2603d165",
|
||||||
|
"optimizationPolicy": "AUTO",
|
||||||
|
"asyncLoadAssets": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
7
assets/resources/textures/menu.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.1",
|
||||||
|
"uuid": "ec3d0877-1c70-46ff-bfd3-77b4ed843f1c",
|
||||||
|
"isSubpackage": false,
|
||||||
|
"subpackageName": "",
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/captcha_btn.png
Normal file
After Width: | Height: | Size: 12 KiB |
31
assets/resources/textures/menu/captcha_btn.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "7b2f02e9-86d6-4f77-b54b-d0b593a4c588",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"captcha_btn": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "f02db9a3-6a93-4504-b7c5-d9460d20f591",
|
||||||
|
"rawTextureUuid": "7b2f02e9-86d6-4f77-b54b-d0b593a4c588",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 163,
|
||||||
|
"height": 57,
|
||||||
|
"rawWidth": 163,
|
||||||
|
"rawHeight": 57,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/input_bg.png
Normal file
After Width: | Height: | Size: 580 B |
31
assets/resources/textures/menu/input_bg.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "1464b7b1-6a85-4ed2-b432-a047212230f9",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"input_bg": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "ed4c60fd-a3c0-4565-a0e9-9a7d82b14c7a",
|
||||||
|
"rawTextureUuid": "1464b7b1-6a85-4ed2-b432-a047212230f9",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 30,
|
||||||
|
"height": 28,
|
||||||
|
"rawWidth": 30,
|
||||||
|
"rawHeight": 28,
|
||||||
|
"borderTop": 7,
|
||||||
|
"borderBottom": 7,
|
||||||
|
"borderLeft": 7,
|
||||||
|
"borderRight": 8,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/menu_bg.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
31
assets/resources/textures/menu/menu_bg.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "ca35ab6a-86cf-4e1d-b3c9-f57085c800f7",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"menu_bg": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "854b3b06-aa6f-4519-b5fb-4c93555ea4d0",
|
||||||
|
"rawTextureUuid": "ca35ab6a-86cf-4e1d-b3c9-f57085c800f7",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 66,
|
||||||
|
"height": 87,
|
||||||
|
"rawWidth": 66,
|
||||||
|
"rawHeight": 87,
|
||||||
|
"borderTop": 32,
|
||||||
|
"borderBottom": 34,
|
||||||
|
"borderLeft": 16,
|
||||||
|
"borderRight": 16,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/menu_border.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
31
assets/resources/textures/menu/menu_border.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "ec63d24d-35e1-42ee-b904-49899520dcd8",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"menu_border": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "583a83fa-aef9-475f-a2bb-d9034c7701eb",
|
||||||
|
"rawTextureUuid": "ec63d24d-35e1-42ee-b904-49899520dcd8",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 69,
|
||||||
|
"height": 71,
|
||||||
|
"rawWidth": 69,
|
||||||
|
"rawHeight": 71,
|
||||||
|
"borderTop": 20,
|
||||||
|
"borderBottom": 22,
|
||||||
|
"borderLeft": 19,
|
||||||
|
"borderRight": 20,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/menu_btn.png
Normal file
After Width: | Height: | Size: 11 KiB |
31
assets/resources/textures/menu/menu_btn.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "9d826950-7eb5-441c-b528-759c152e778d",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"menu_btn": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "174a1f8b-1afa-48d5-8d3e-801cc6bfca60",
|
||||||
|
"rawTextureUuid": "9d826950-7eb5-441c-b528-759c152e778d",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 213,
|
||||||
|
"height": 71,
|
||||||
|
"rawWidth": 213,
|
||||||
|
"rawHeight": 71,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/menu_close_btn.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
31
assets/resources/textures/menu/menu_close_btn.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "f6d93f7e-5ada-43ab-a77a-ddc5fb418bef",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"menu_close_btn": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "51a67ca8-e497-47b0-94c5-7a9708ff2dc0",
|
||||||
|
"rawTextureUuid": "f6d93f7e-5ada-43ab-a77a-ddc5fb418bef",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 50,
|
||||||
|
"height": 49,
|
||||||
|
"rawWidth": 50,
|
||||||
|
"rawHeight": 49,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/menu_inner_bg.png
Normal file
After Width: | Height: | Size: 801 B |
31
assets/resources/textures/menu/menu_inner_bg.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "9e6c105b-1ce6-4962-a8eb-4728b38bd592",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"menu_inner_bg": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "0062fe68-8e87-4959-a569-f7dcd8509a5c",
|
||||||
|
"rawTextureUuid": "9e6c105b-1ce6-4962-a8eb-4728b38bd592",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 39,
|
||||||
|
"height": 48,
|
||||||
|
"rawWidth": 39,
|
||||||
|
"rawHeight": 48,
|
||||||
|
"borderTop": 19,
|
||||||
|
"borderBottom": 18,
|
||||||
|
"borderLeft": 10,
|
||||||
|
"borderRight": 11,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/resources/textures/menu/menu_title_03.png
Normal file
After Width: | Height: | Size: 24 KiB |
31
assets/resources/textures/menu/menu_title_03.png.meta
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.2.0",
|
||||||
|
"uuid": "7f8325a2-6865-4b6d-bb7d-08955ed1e4e7",
|
||||||
|
"type": "sprite",
|
||||||
|
"wrapMode": "clamp",
|
||||||
|
"filterMode": "bilinear",
|
||||||
|
"premultiplyAlpha": false,
|
||||||
|
"subMetas": {
|
||||||
|
"menu_title_03": {
|
||||||
|
"ver": "1.0.3",
|
||||||
|
"uuid": "d628f6bf-f16e-49e4-af45-05dfee539e77",
|
||||||
|
"rawTextureUuid": "7f8325a2-6865-4b6d-bb7d-08955ed1e4e7",
|
||||||
|
"trimType": "auto",
|
||||||
|
"trimThreshold": 1,
|
||||||
|
"rotated": false,
|
||||||
|
"offsetX": 0,
|
||||||
|
"offsetY": 0,
|
||||||
|
"trimX": 0,
|
||||||
|
"trimY": 0,
|
||||||
|
"width": 553,
|
||||||
|
"height": 64,
|
||||||
|
"rawWidth": 553,
|
||||||
|
"rawHeight": 64,
|
||||||
|
"borderTop": 0,
|
||||||
|
"borderBottom": 0,
|
||||||
|
"borderLeft": 0,
|
||||||
|
"borderRight": 0,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
24
assets/scripts/infoMenu.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
cc.Class({
|
||||||
|
extends: cc.Component,
|
||||||
|
|
||||||
|
properties: {
|
||||||
|
closeBtn: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Node
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// LIFE-CYCLE CALLBACKS:
|
||||||
|
|
||||||
|
onLoad () {
|
||||||
|
let self = this;
|
||||||
|
this.closeBtn.on('click', function () {
|
||||||
|
self.node.removeFromParent(true);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
start () {
|
||||||
|
},
|
||||||
|
|
||||||
|
// update (dt) {},
|
||||||
|
});
|
9
assets/scripts/infoMenu.js.meta
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "1.0.5",
|
||||||
|
"uuid": "8fe4a451-a8f8-4a7d-b54e-bbe42edd5da2",
|
||||||
|
"isPlugin": false,
|
||||||
|
"loadPluginInWeb": true,
|
||||||
|
"loadPluginInNative": true,
|
||||||
|
"loadPluginInEditor": false,
|
||||||
|
"subMetas": {}
|
||||||
|
}
|
@ -26,6 +26,10 @@ cc.Class({
|
|||||||
default: null,
|
default: null,
|
||||||
type: cc.Prefab
|
type: cc.Prefab
|
||||||
},
|
},
|
||||||
|
infoMenuPrefab: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Prefab
|
||||||
|
},
|
||||||
menuContentPrefab: {
|
menuContentPrefab: {
|
||||||
default: null,
|
default: null,
|
||||||
type: cc.Prefab
|
type: cc.Prefab
|
||||||
@ -39,9 +43,12 @@ cc.Class({
|
|||||||
// LIFE-CYCLE CALLBACKS:
|
// LIFE-CYCLE CALLBACKS:
|
||||||
|
|
||||||
onLoad () {
|
onLoad () {
|
||||||
|
let self = this;
|
||||||
this.mainScrollContent = cc.instantiate(this.mainScrollPrefab);
|
this.mainScrollContent = cc.instantiate(this.mainScrollPrefab);
|
||||||
this.scrollContent.addChild(this.mainScrollContent);
|
this.scrollContent.addChild(this.mainScrollContent);
|
||||||
let self = this;
|
this.mainScrollContent.getComponent('scrollContent').joinBtn.on('click', function () {
|
||||||
|
self.showInfoMenu();
|
||||||
|
});
|
||||||
let topHeader = cc.instantiate(this.topMenuPrefab);
|
let topHeader = cc.instantiate(this.topMenuPrefab);
|
||||||
this.node.addChild(topHeader, 10);
|
this.node.addChild(topHeader, 10);
|
||||||
topHeader.getComponent('topMenu').menuBtn.on('click', function () {
|
topHeader.getComponent('topMenu').menuBtn.on('click', function () {
|
||||||
@ -89,5 +96,9 @@ cc.Class({
|
|||||||
}
|
}
|
||||||
this.scrollView.scrollToOffset(cc.v2(0, y), 0.1);
|
this.scrollView.scrollToOffset(cc.v2(0, y), 0.1);
|
||||||
this.topMenu.active = false;
|
this.topMenu.active = false;
|
||||||
|
},
|
||||||
|
showInfoMenu() {
|
||||||
|
let infoMenu = cc.instantiate(this.infoMenuPrefab);
|
||||||
|
this.node.addChild(infoMenu, 11);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -41,6 +41,10 @@ cc.Class({
|
|||||||
bottomSwiperPrefab: {
|
bottomSwiperPrefab: {
|
||||||
default: null,
|
default: null,
|
||||||
type: cc.Prefab
|
type: cc.Prefab
|
||||||
|
},
|
||||||
|
joinBtn: {
|
||||||
|
default: null,
|
||||||
|
type: cc.Node
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|