Commit 6df9fe6f authored by 李维's avatar 李维

添加用户协议

parent 6023657a
{
"ver": "1.1.2",
"uuid": "67d24819-0541-470e-81c7-6521b3c70c66",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"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
{
"ver": "1.2.9",
"uuid": "0d5c0c4b-3afc-4ba2-8a5a-26cd83652deb",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -43,6 +43,8 @@ export default class NewClass extends cc.Component { ...@@ -43,6 +43,8 @@ export default class NewClass extends cc.Component {
yellowBtn: cc.Node; yellowBtn: cc.Node;
greyBtn: cc.Node; greyBtn: cc.Node;
isAgreement: boolean = false;
start () { start () {
this.initData(); this.initData();
...@@ -67,15 +69,60 @@ export default class NewClass extends cc.Component { ...@@ -67,15 +69,60 @@ 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);
icon.active = this.isAgreement;
cc.tween(bgRect)
.to(0.2 / 3, { scale: bgRect.scale * 1.2 })
.to(0.2 / 3, { scale: bgRect.scale * 1 })
.start()
cc.tween(icon)
.to(0.2 / 3, { scale: icon.scale * 1.2 })
.to(0.2 / 3, { scale: icon.scale * 0.8 })
.to(0.2 / 3, { scale: icon.scale * 1 })
.start()
}
async enterBtnClick() { webNode: cc.Node = null;
closeWeb () {
if(!this.webNode) {
this.webNode = cc.find("/agreement_web", this.panelNode)
}
this.webNode.active = false;
cc.find(`/policy_web`, this.webNode).active = false;
cc.find(`/privacy_web`, this.webNode).active = false;
}
openWeb(evt: cc.Event, data) {
if(!this.webNode) {
this.webNode = cc.find("/agreement_web", this.panelNode)
}
this.webNode.active = true;
cc.find(`${data}_web`, this.webNode).active = true;
}
async enterBtnClick() {
const phone = this.phoneNum; const phone = this.phoneNum;
if (!this.checkPhone(phone)) { if (!this.checkPhone(phone)) {
global.middleLayer.showTips('请输入正确的手机号码'); global.middleLayer.showTips('请输入正确的手机号码');
return; return;
} }
if(!this.isAgreement) {
global.middleLayer.showTips("请勾选《用户协议》和《隐私声明》");
const agreementNode = cc.find("/agreement", this.panelNode);
cc.tween(agreementNode)
.to(0.2 / 3, { scale: agreementNode.scale * 1.2 })
.to(0.2 / 3, { scale: agreementNode.scale * 1 })
.start()
return
}
const res = await asyncCallNetworkApiPost('/api/kyxq/v1/login', { const res = await asyncCallNetworkApiPost('/api/kyxq/v1/login', {
phone: phone, phone: phone,
}); });
......
{
"ver": "2.3.5",
"uuid": "85a71ebf-8234-4f60-9aa7-42d7d05782c2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 74,
"height": 60,
"platformSettings": {},
"subMetas": {
"btn_agree": {
"ver": "1.0.4",
"uuid": "fe4c0a35-1049-4921-9585-e85ca3532ad3",
"rawTextureUuid": "85a71ebf-8234-4f60-9aa7-42d7d05782c2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -9,
"offsetY": -2,
"trimX": 0,
"trimY": 4,
"width": 56,
"height": 56,
"rawWidth": 74,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a11ebb71-dc6c-4ad8-96e8-02e0f7cec522",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 74,
"height": 60,
"platformSettings": {},
"subMetas": {
"icon_agree": {
"ver": "1.0.4",
"uuid": "276d7c2f-ad58-4481-8945-2c3940b3ca49",
"rawTextureUuid": "a11ebb71-dc6c-4ad8-96e8-02e0f7cec522",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 0,
"trimY": 0,
"width": 74,
"height": 58,
"rawWidth": 74,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5702c6f0-d6d7-49b0-838d-d46cec2b8e53",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 617,
"height": 31,
"platformSettings": {},
"subMetas": {
"text_arrangement": {
"ver": "1.0.4",
"uuid": "81cb014c-efdd-405e-b206-ff725efeb60b",
"rawTextureUuid": "5702c6f0-d6d7-49b0-838d-d46cec2b8e53",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 617,
"height": 31,
"rawWidth": 617,
"rawHeight": 31,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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