Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
middleLayer_for_kyxq
Commits
f4182e09
Commit
f4182e09
authored
Nov 07, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户协议
parent
d9a07b89
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5345 additions
and
2000 deletions
+5345
-2000
agreementSection.prefab
assets/middleLayer_for_kyxq/prefab/agreementSection.prefab
+1656
-0
agreementSection.prefab.meta
.../middleLayer_for_kyxq/prefab/agreementSection.prefab.meta
+1
-1
agreement_web.meta
assets/middleLayer_for_kyxq/prefab/agreement_web.meta
+0
-12
middleLayer_for_kyxq.fire
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
+3675
-1980
LoginPage.ts
assets/middleLayer_for_kyxq/script/LoginPage.ts
+13
-7
No files found.
assets/middleLayer_for_kyxq/prefab/agreement
_web/agreement_web
.prefab
→
assets/middleLayer_for_kyxq/prefab/agreement
Section
.prefab
View file @
f4182e09
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_kyxq/prefab/agreement
_web/agreement_web
.prefab.meta
→
assets/middleLayer_for_kyxq/prefab/agreement
Section
.prefab.meta
View file @
f4182e09
{
{
"ver": "1.2.9",
"ver": "1.2.9",
"uuid": "
0d5c0c4b-3afc-4ba2-8a5a-26cd83652deb
",
"uuid": "
9a98b77e-f201-4654-abac-6794df033872
",
"optimizationPolicy": "AUTO",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"asyncLoadAssets": false,
"readonly": false,
"readonly": false,
...
...
assets/middleLayer_for_kyxq/prefab/agreement_web.meta
deleted
100644 → 0
View file @
d9a07b89
{
"ver": "1.1.2",
"uuid": "e31ce917-429b-49cd-acf3-75c18118476a",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
View file @
f4182e09
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_kyxq/script/LoginPage.ts
View file @
f4182e09
...
@@ -71,8 +71,8 @@ export default class NewClass extends cc.Component {
...
@@ -71,8 +71,8 @@ export default class NewClass extends cc.Component {
clickAgreement
()
{
clickAgreement
()
{
this
.
isAgreement
=
!
this
.
isAgreement
;
this
.
isAgreement
=
!
this
.
isAgreement
;
const
icon
=
cc
.
find
(
"
/agreement/icon_agree
"
,
this
.
panelNode
);
const
icon
=
cc
.
find
(
"
/agreement
Section
/icon_agree
"
,
this
.
panelNode
);
const
bgRect
=
cc
.
find
(
"
/agreement/bg_agree
"
,
this
.
panelNode
);
const
bgRect
=
cc
.
find
(
"
/agreement
Section
/bg_agree
"
,
this
.
panelNode
);
icon
.
active
=
this
.
isAgreement
;
icon
.
active
=
this
.
isAgreement
;
cc
.
tween
(
bgRect
)
cc
.
tween
(
bgRect
)
...
@@ -90,7 +90,7 @@ export default class NewClass extends cc.Component {
...
@@ -90,7 +90,7 @@ export default class NewClass extends cc.Component {
webNode
:
cc
.
Node
=
null
;
webNode
:
cc
.
Node
=
null
;
closeWeb
()
{
closeWeb
()
{
if
(
!
this
.
webNode
)
{
if
(
!
this
.
webNode
)
{
this
.
webNode
=
cc
.
find
(
"
/agreement
_web
"
,
this
.
panelNode
)
this
.
webNode
=
cc
.
find
(
"
/agreement
Section/web_view
"
,
this
.
panelNode
)
}
}
this
.
webNode
.
active
=
false
;
this
.
webNode
.
active
=
false
;
...
@@ -100,7 +100,7 @@ export default class NewClass extends cc.Component {
...
@@ -100,7 +100,7 @@ export default class NewClass extends cc.Component {
openWeb
(
evt
:
cc
.
Event
,
data
)
{
openWeb
(
evt
:
cc
.
Event
,
data
)
{
if
(
!
this
.
webNode
)
{
if
(
!
this
.
webNode
)
{
this
.
webNode
=
cc
.
find
(
"
/agreement
_web
"
,
this
.
panelNode
)
this
.
webNode
=
cc
.
find
(
"
/agreement
Section/web_view
"
,
this
.
panelNode
)
}
}
this
.
webNode
.
active
=
true
;
this
.
webNode
.
active
=
true
;
cc
.
find
(
`
${
data
}
_web`
,
this
.
webNode
).
active
=
true
;
cc
.
find
(
`
${
data
}
_web`
,
this
.
webNode
).
active
=
true
;
...
@@ -115,10 +115,16 @@ export default class NewClass extends cc.Component {
...
@@ -115,10 +115,16 @@ export default class NewClass extends cc.Component {
if
(
!
this
.
isAgreement
)
{
if
(
!
this
.
isAgreement
)
{
global
.
middleLayer
.
showTips
(
"
请勾选《用户协议》和《隐私声明》
"
);
global
.
middleLayer
.
showTips
(
"
请勾选《用户协议》和《隐私声明》
"
);
const
agreementNode
=
cc
.
find
(
"
/agreement
"
,
this
.
panelNode
);
const
agreementNode
=
cc
.
find
(
"
/agreementSection
"
,
this
.
panelNode
);
const
baseX
=
agreementNode
.
x
cc
.
tween
(
agreementNode
)
cc
.
tween
(
agreementNode
)
.
to
(
0.2
/
3
,
{
scale
:
agreementNode
.
scale
*
1.2
})
.
to
(
0.2
/
4
,
{
x
:
baseX
-
50
})
.
to
(
0.2
/
3
,
{
scale
:
agreementNode
.
scale
*
1
})
.
to
(
0.2
/
4
,
{
x
:
baseX
+
50
})
.
to
(
0.2
/
4
,
{
x
:
baseX
-
50
})
.
to
(
0.2
/
4
,
{
x
:
baseX
+
50
})
.
call
(()
=>
{
agreementNode
.
x
=
baseX
;
})
.
start
()
.
start
()
return
return
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment