UNPKG

@aiot-toolkit/velasim

Version:

vela for sim

624 lines (593 loc) 17 kB
export default function(global, globalThis, window, $app_exports$){ var createPageHandler = function() { return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=/home/baerg/vela/app/vela-xcz&cacheDirectory&plugins[]=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/packager/babel.config.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./src/pages/ticai/ticai.js?uxType=page": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=/home/baerg/vela/app/vela-xcz&cacheDirectory&plugins[]=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/packager/babel.config.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./src/pages/ticai/ticai.js?uxType=page ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = function __scriptModule__ (module, exports, $app_require$){"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _system = _interopRequireDefault($app_require$("@app-module/system.router")); var _system2 = _interopRequireDefault($app_require$("@app-module/system.storage")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { protected: { img: 0, img1: 1, img2: 1, img3: 1, img4: 1, img5: 1 }, back() { _system.default.replace({ uri: "pages/setting" }); }, imgdj(n) { this.img = 1; this.img1 = 1; this.img2 = 1; this.img3 = 1; this.img4 = 1; this.img5 = 1; if (n == 0) { this.img = 0; this.saveTicai(""); } else if (n == 1) { this.img1 = 0; this.saveTicai("shi"); } else if (n == 2) { this.img2 = 0; this.saveTicai("ci"); } else if (n == 3) { this.saveTicai("wen"); this.img3 = 0; } else if (n == 4) { this.img4 = 0; this.saveTicai("qu"); } else if (n == 5) { this.img5 = 0; this.saveTicai("fu"); } }, saveTicai(zhi) { _system2.default.set({ key: "ticai", value: zhi, success: function () {}, fail: function (data, code) { console.log("call storage.set fail, code: " + code + ", data: " + data); } }); } }; exports.default = _default; const moduleOwn = exports.default || module.exports; const accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('页面VM对象中的属性data不可与"' + accessors.join(',') + '"同时存在,请使用private替换data名称'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function (acc) { const accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (const name in moduleOwn[acc]) { moduleOwn._descriptor[name] = { access: acc }; } } else if (accType === 'function') { console.warn('页面VM对象中的属性' + acc + '的值不能是函数,请使用对象'); } }); }} /***/ }), /***/ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./src/pages/ticai/ticai.css?uxType=page": /*!***********************************************************************************************************************************!*\ !*** ./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./src/pages/ticai/ticai.css?uxType=page ***! \***********************************************************************************************************************************/ /***/ ((module) => { module.exports = [ [ [ [ 0, "container" ] ], { "alignItems": "center", "left": "0px", "top": "0px", "width": "466px", "height": "466px", "flexWrap": "wrap", "flexDirection": "column" } ], [ [ [ 0, "todo" ] ], { "width": "466px", "height": "280px", "justifyContent": "center", "alignItems": "center", "flexDirection": "column", "marginTop": "10px", "marginRight": "0px", "marginBottom": "0px", "marginLeft": "0px" } ], [ [ [ 0, "todo_info" ] ], { "width": "466px", "height": "90px", "justifyContent": "center", "alignItems": "center", "flexDirection": "column", "color": "#ffffff" } ], [ [ [ 0, "top" ] ], { "width": "466px", "height": "40px", "marginTop": "50px", "marginRight": "0px", "marginBottom": "5px", "marginLeft": "0px", "alignItems": "center" } ], [ [ [ 0, "img1" ] ], { "width": "34px", "height": "34px", "marginTop": "0px", "marginRight": "0px", "marginBottom": "0px", "marginLeft": "90px" } ], [ [ [ 0, "tit" ] ], { "width": "80px", "height": "40px", "fontSize": "30px", "color": "#ffffff" } ], [ [ [ 0, "box_item" ] ], { "width": "360px", "height": "80px", "alignItems": "center", "justifyContent": "flex-end", "backgroundColor": "#393939", "borderRadius": "20px", "marginTop": "10px", "marginRight": "0px", "marginBottom": "0px", "marginLeft": "0px" } ], [ [ [ 0, "title" ] ], { "width": "200px", "height": "40px", "fontSize": "30px", "color": "#ffffff", "textAlign": "center" } ], [ [ [ 0, "img" ] ], { "width": "40px", "height": "40px", "marginTop": "0px", "marginRight": "30px", "marginBottom": "0px", "marginLeft": "20px" } ] ] /***/ }), /***/ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./src/pages/ticai/ticai.hml?uxType=page&": /*!**************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./src/pages/ticai/ticai.hml?uxType=page& ***! \**************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = function (vm) { const _vm_ = vm || this return aiot.__ce__("div", { "classList": [ "container" ] }, [ aiot.__ce__("div", { "classList": [ "top" ], "events": { "click": function (evt) {_vm_.back(evt)} } }, [ aiot.__ce__("image", { "src": "/common/ic_back.png", "classList": [ "img1" ], "events": { "click": function (evt) {_vm_.back(evt)} } }), aiot.__ce__("text", { "classList": [ "tit" ], "value": "体裁" }) ]), aiot.__ce__("list", { "classList": [ "todo" ] }, [ aiot.__ce__("list-item", { "classList": [ "todo_info" ] }, [ aiot.__ce__("div", { "classList": [ "box_item" ], "events": { "click": function (evt) { return _vm_.imgdj(0,evt)} } }, [ aiot.__ce__("text", { "classList": [ "title" ], "value": "全部" }), aiot.__ci__({ shown: function () {return _vm_.img==0} }, function () { return aiot.__ce__("image", { "src": "/common/icon_yes.png", "classList": [ "img" ] })}), aiot.__ci__({ shown: function () {return _vm_.img==1} }, function () { return aiot.__ce__("image", { "src": "/common/yes.png", "classList": [ "img" ] })}) ]) ]), aiot.__ce__("list-item", { "classList": [ "todo_info" ], "events": { "click": function (evt) { return _vm_.imgdj(1,evt)} } }, [ aiot.__ce__("div", { "classList": [ "box_item" ] }, [ aiot.__ce__("text", { "classList": [ "title" ], "value": "诗" }), aiot.__ci__({ shown: function () {return _vm_.img1==0} }, function () { return aiot.__ce__("image", { "src": "/common/icon_yes.png", "classList": [ "img" ] })}), aiot.__ci__({ shown: function () {return _vm_.img1==1} }, function () { return aiot.__ce__("image", { "src": "/common/yes.png", "classList": [ "img" ] })}) ]) ]), aiot.__ce__("list-item", { "classList": [ "todo_info" ], "events": { "click": function (evt) { return _vm_.imgdj(2,evt)} } }, [ aiot.__ce__("div", { "classList": [ "box_item" ] }, [ aiot.__ce__("text", { "classList": [ "title" ], "value": "词" }), aiot.__ci__({ shown: function () {return _vm_.img2==0} }, function () { return aiot.__ce__("image", { "src": "/common/icon_yes.png", "classList": [ "img" ] })}), aiot.__ci__({ shown: function () {return _vm_.img2==1} }, function () { return aiot.__ce__("image", { "src": "/common/yes.png", "classList": [ "img" ] })}) ]) ]), aiot.__ce__("list-item", { "classList": [ "todo_info" ], "events": { "click": function (evt) { return _vm_.imgdj(3,evt)} } }, [ aiot.__ce__("div", { "classList": [ "box_item" ] }, [ aiot.__ce__("text", { "classList": [ "title" ], "value": "文" }), aiot.__ci__({ shown: function () {return _vm_.img3==0} }, function () { return aiot.__ce__("image", { "src": "/common/icon_yes.png", "classList": [ "img" ] })}), aiot.__ci__({ shown: function () {return _vm_.img3==1} }, function () { return aiot.__ce__("image", { "src": "/common/yes.png", "classList": [ "img" ] })}) ]) ]), aiot.__ce__("list-item", { "classList": [ "todo_info" ], "events": { "click": function (evt) { return _vm_.imgdj(4,evt)} } }, [ aiot.__ce__("div", { "classList": [ "box_item" ] }, [ aiot.__ce__("text", { "classList": [ "title" ], "value": "曲" }), aiot.__ci__({ shown: function () {return _vm_.img4==0} }, function () { return aiot.__ce__("image", { "src": "/common/icon_yes.png", "classList": [ "img" ] })}), aiot.__ci__({ shown: function () {return _vm_.img4==1} }, function () { return aiot.__ce__("image", { "src": "/common/yes.png", "classList": [ "img" ] })}) ]) ]), aiot.__ce__("list-item", { "classList": [ "todo_info" ], "events": { "click": function (evt) { return _vm_.imgdj(5,evt)} } }, [ aiot.__ce__("div", { "classList": [ "box_item" ] }, [ aiot.__ce__("text", { "classList": [ "title" ], "value": "赋" }), aiot.__ci__({ shown: function () {return _vm_.img5==0} }, function () { return aiot.__ce__("image", { "src": "/common/icon_yes.png", "classList": [ "img" ] })}), aiot.__ci__({ shown: function () {return _vm_.img5==1} }, function () { return aiot.__ce__("image", { "src": "/common/yes.png", "classList": [ "img" ] })}) ]) ]) ]) ]) } /***/ }), /***/ "./src/pages/ticai/ticai.hml?uxType=page": /*!***********************************************!*\ !*** ./src/pages/ticai/ticai.hml?uxType=page ***! \***********************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var $app_style$ = __webpack_require__(/*! !../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./ticai.css?uxType=page */ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./src/pages/ticai/ticai.css?uxType=page") var $app_script$ = __webpack_require__(/*! !../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!../../../node_modules/babel-loader/lib/index.js?cwd=/home/baerg/vela/app/vela-xcz&cacheDirectory&plugins[]=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/packager/babel.config.js!../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./ticai.js?uxType=page */ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=/home/baerg/vela/app/vela-xcz&cacheDirectory&plugins[]=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/baerg/vela/app/vela-xcz/node_modules/@aiot-toolkit/packager/babel.config.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./src/pages/ticai/ticai.js?uxType=page") var $app_template$ = __webpack_require__(/*! !../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./ticai.hml?uxType=page& */ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./src/pages/ticai/ticai.hml?uxType=page&") $app_script$({}, $app_exports$, $app_require$); $app_exports$.default.template = $app_template$; $app_exports$.default.style = $app_style$; module.exports = $app_exports$.default; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(__webpack_module_cache__[moduleId]) { /******/ return __webpack_module_cache__[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("./src/pages/ticai/ticai.hml?uxType=page"); /******/ /******/ })() ; }; return createPageHandler(); };