Commit f4182e09 authored by 李维's avatar 李维

添加用户协议

parent d9a07b89
{
"ver": "1.2.9",
"uuid": "0d5c0c4b-3afc-4ba2-8a5a-26cd83652deb",
"uuid": "9a98b77e-f201-4654-abac-6794df033872",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
......
{
"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
......@@ -71,8 +71,8 @@ export default class NewClass extends cc.Component {
clickAgreement() {
this.isAgreement = !this.isAgreement;
const icon = cc.find("/agreement/icon_agree", this.panelNode);
const bgRect = cc.find("/agreement/bg_agree", this.panelNode);
const icon = cc.find("/agreementSection/icon_agree", this.panelNode);
const bgRect = cc.find("/agreementSection/bg_agree", this.panelNode);
icon.active = this.isAgreement;
cc.tween(bgRect)
......@@ -90,7 +90,7 @@ export default class NewClass extends cc.Component {
webNode: cc.Node = null;
closeWeb () {
if(!this.webNode) {
this.webNode = cc.find("/agreement_web", this.panelNode)
this.webNode = cc.find("/agreementSection/web_view", this.panelNode)
}
this.webNode.active = false;
......@@ -100,7 +100,7 @@ export default class NewClass extends cc.Component {
openWeb(evt: cc.Event, data) {
if(!this.webNode) {
this.webNode = cc.find("/agreement_web", this.panelNode)
this.webNode = cc.find("/agreementSection/web_view", this.panelNode)
}
this.webNode.active = true;
cc.find(`${data}_web`, this.webNode).active = true;
......@@ -115,10 +115,16 @@ export default class NewClass extends cc.Component {
if(!this.isAgreement) {
global.middleLayer.showTips("请勾选《用户协议》和《隐私声明》");
const agreementNode = cc.find("/agreement", this.panelNode);
const agreementNode = cc.find("/agreementSection", this.panelNode);
const baseX = agreementNode.x
cc.tween(agreementNode)
.to(0.2 / 3, { scale: agreementNode.scale * 1.2 })
.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 })
.to(0.2 / 4, { x: baseX + 50 })
.call(()=>{
agreementNode.x = baseX;
})
.start()
return
}
......
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