1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 |
|
8 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
9 |
|
10 | var _wepy = require('./npm/wepy/lib/wepy.js');
|
11 |
|
12 | var _wepy2 = _interopRequireDefault(_wepy);
|
13 |
|
14 | require('./npm/wepy-async-function/index.js');
|
15 |
|
16 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17 |
|
18 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
19 |
|
20 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
21 |
|
22 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
23 |
|
24 | var _default = function (_wepy$app) {
|
25 | _inherits(_default, _wepy$app);
|
26 |
|
27 | function _default() {
|
28 | _classCallCheck(this, _default);
|
29 |
|
30 | var _this = _possibleConstructorReturn(this, (_default.__proto__ || Object.getPrototypeOf(_default)).call(this));
|
31 |
|
32 | _this.config = {
|
33 | pages: ['pages/demo', 'pages/webpage'],
|
34 | window: {
|
35 | backgroundTextStyle: 'light',
|
36 | navigationBarBackgroundColor: '#fff',
|
37 | navigationBarTitleText: 'WeChat',
|
38 | navigationBarTextStyle: 'black'
|
39 | }
|
40 | };
|
41 | _this.globalData = {
|
42 | userInfo: null
|
43 | };
|
44 |
|
45 | _this.use('requestfix');
|
46 | return _this;
|
47 | }
|
48 |
|
49 | _createClass(_default, [{
|
50 | key: 'onLaunch',
|
51 | value: function onLaunch() {}
|
52 | }, {
|
53 | key: 'sleep',
|
54 | value: function sleep(s) {
|
55 | return new Promise(function (resolve, reject) {
|
56 | setTimeout(function () {
|
57 | resolve('promise resolved');
|
58 | }, s * 1000);
|
59 | });
|
60 | }
|
61 | }]);
|
62 |
|
63 | return _default;
|
64 | }(_wepy2.default.app);
|
65 |
|
66 |
|
67 | App(require('./npm/wepy/lib/wepy.js').default.$createApp(_default, {"noPromiseAPI":["createSelectorQuery"]}));
|
68 | require('./_wepylogs.js')
|
69 |
|
70 |
|
\ | No newline at end of file |