
                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/__qc_index__.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}
require('./assets/script/changepage');

                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//------QC-SOURCE-SPLIT------

                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/assets/script/changepage.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '74071oM5CJOXpnbiGuz1q+p', 'changepage');
// script/changepage.js

"use strict";

cc.Class({
  "extends": cc.Component,
  properties: {
    A_cahngepagefunction: [cc.Node],
    //定义数组，多个按钮切换至多个页面 
    A_page1: cc.Node,
    //页面1
    A_page2: cc.Node //页面2

  },
  // use this for initialization
  onLoad: function onLoad() {
    this.A_page1.setPosition(0, 0); //设置节点在父节点坐标系中位置 可看Cocos api
    //这里是设置页面1的坐标为0.0

    this.A_page2.active = false; //active 指当前节点的激活状态，简单点就是隐藏和显示
    //隐藏页面2
  },
  onopenpage2: function onopenpage2() {
    //打开页面二
    this.A_page1.active = false; //隐藏页面1

    this.A_page2.active = true; //显示页面2
  },
  returnpage1: function returnpage1() //返回页面1
  {
    this.A_page1.active = true; //显示页面1

    this.A_page2.active = false; //隐藏页面2
  }
});

cc._RF.pop();
                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFzc2V0c1xcc2NyaXB0XFxjaGFuZ2VwYWdlLmpzIl0sIm5hbWVzIjpbImNjIiwiQ2xhc3MiLCJDb21wb25lbnQiLCJwcm9wZXJ0aWVzIiwiQV9jYWhuZ2VwYWdlZnVuY3Rpb24iLCJOb2RlIiwiQV9wYWdlMSIsIkFfcGFnZTIiLCJvbkxvYWQiLCJzZXRQb3NpdGlvbiIsImFjdGl2ZSIsIm9ub3BlbnBhZ2UyIiwicmV0dXJucGFnZTEiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUFBLEVBQUUsQ0FBQ0MsS0FBSCxDQUFTO0FBQ0wsYUFBU0QsRUFBRSxDQUFDRSxTQURQO0FBR0xDLEVBQUFBLFVBQVUsRUFBRTtBQUNSQyxJQUFBQSxvQkFBb0IsRUFBQyxDQUFDSixFQUFFLENBQUNLLElBQUosQ0FEYjtBQUN1QjtBQUMvQkMsSUFBQUEsT0FBTyxFQUFDTixFQUFFLENBQUNLLElBRkg7QUFFUTtBQUNoQkUsSUFBQUEsT0FBTyxFQUFDUCxFQUFFLENBQUNLLElBSEgsQ0FHUTs7QUFIUixHQUhQO0FBU0w7QUFDQUcsRUFBQUEsTUFBTSxFQUFFLGtCQUFZO0FBQ2hCLFNBQUtGLE9BQUwsQ0FBYUcsV0FBYixDQUF5QixDQUF6QixFQUEyQixDQUEzQixFQURnQixDQUNjO0FBQzlCOztBQUNBLFNBQUtGLE9BQUwsQ0FBYUcsTUFBYixHQUFzQixLQUF0QixDQUhnQixDQUdZO0FBQzVCO0FBQ0gsR0FmSTtBQWlCTEMsRUFBQUEsV0FBVyxFQUFDLHVCQUFVO0FBQUM7QUFFbkIsU0FBS0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