18 lines
455 B
JavaScript
18 lines
455 B
JavaScript
cc.Class({
|
|
extends: cc.Component,
|
|
properties: {
|
|
clickYinSiNode: cc.Node
|
|
},
|
|
start: function () {
|
|
window.qg || window.qq || (this.node.active = false);
|
|
},
|
|
onclickBtn: function () {
|
|
if (cc.sys.platform === cc.sys.ANDROID) {
|
|
GlobData.executeYinSiBtn();
|
|
} else if (this.clickYinSiNode) {
|
|
this.clickYinSiNode.getComponent("UserYinsi").onShow();
|
|
} else {
|
|
console.log("请挂上隐私政策节点");
|
|
}
|
|
}
|
|
}); |