// Learn TypeScript: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html import { Privacy_rule, Privacy_user, Privacy_zhengce } from "../Template/Const"; import PopComponet from "../Template/PopComponet"; const { ccclass, property } = cc._decorator; @ccclass export default class Privacy extends PopComponet { @property(cc.Label) Contentlabel: cc.Label = null; @property(cc.Label) Titlelabel: cc.Label = null; start() { // this.InitPrivacy() // this.InitUser() } onLoad() { } Close() { this.node.destroy() } InitPrivacy() { this.Titlelabel.string = '隐私政策' this.Contentlabel.string = Privacy_zhengce } InitUser() { this.Titlelabel.string = '用户协议' this.Contentlabel.string = Privacy_user } InitRule() { this.Titlelabel.string = '规则' this.Contentlabel.string = Privacy_rule } }