UNPKG

minix-template

Version:

minix template

1,586 lines (1,556 loc) 53.2 kB
var Pf1cca34X; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./src/rich/pages/base/getBatteryInfo/index.mxl?entry": /*!************************************************************!*\ !*** ./src/rich/pages/base/getBatteryInfo/index.mxl?entry ***! \************************************************************/ /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { var $app_template$ = __webpack_require__(/*! !!../../../../../node_modules/@minix-iot/minix-loader/lib/json.js!../../../../../node_modules/@minix-iot/minix-loader/lib/template.js!./index.mxl */ "./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/template.js!./src/rich/pages/base/getBatteryInfo/index.mxl") var $app_style$ = __webpack_require__(/*! !!../../../../../node_modules/@minix-iot/minix-loader/lib/json.js!../../../../../node_modules/@minix-iot/minix-loader/lib/style.js!./index.css */ "./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/style.js!./src/rich/pages/base/getBatteryInfo/index.css") var $app_script$ = __webpack_require__(/*! !!../../../../../node_modules/@minix-iot/minix-loader/lib/script.js!../../../../../node_modules/babel-loader?presets[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/preset-env&plugins[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!../../../../../node_modules/@minix-iot/minix-loader/lib/resource-reference-script.js!./index.js */ "./node_modules/@minix-iot/minix-loader/lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/preset-env&plugins[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./node_modules/@minix-iot/minix-loader/lib/resource-reference-script.js!./src/rich/pages/base/getBatteryInfo/index.js") $app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) { $app_script$($app_module$, $app_exports$, $app_require$) if ($app_exports$.__esModule && $app_exports$.default) { $app_module$.exports = $app_exports$.default } $app_module$.exports.template = $app_template$ $app_module$.exports.style = $app_style$ }) $app_bootstrap$('@app-component/index',undefined,undefined) /***/ }), /***/ "./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/style.js!./src/rich/pages/base/getBatteryInfo/index.css": /*!*************************************************************************************************************************************************************!*\ !*** ./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/style.js!./src/rich/pages/base/getBatteryInfo/index.css ***! \*************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { ".main-container": { "fontFamily": "PingFangSC-Medium", "display": "flex", "flexWrap": "wrap", "flexDirection": "column", "justifyContent": "flex-start", "backgroundColor": "#FFD700" }, ".demo": { "flexDirection": "column", "width": "100%" }, ".demo_header": { "alignItems": "center", "marginTop": "20px", "position": "relative" }, ".back_button": { "width": "200px", "height": "40px", "fontSize": "32px", "position": "absolute", "left": "0px", "top": "30px", "textAlign": "left", "zIndex": 2, "backgroundColor": "#ffffff", "color": "#272c34" }, ".demo_title": { "height": "100px", "width": "100%", "alignItems": "center", "fontSize": "32px", "fontWeight": "500", "justifyContent": "center" }, ".demo_block_name": { "backgroundColor": "#daf9ca", "fontSize": "28px", "color": "#8a8a8f", "paddingTop": "0px", "paddingRight": "20px", "paddingBottom": "0px", "paddingLeft": "20px", "width": "100%", "height": "90px", "alignItems": "center" }, ".demo_contain": { "paddingTop": "30px", "paddingRight": "20px", "paddingBottom": "30px", "paddingLeft": "20px", "flexDirection": "column" }, ".sample_contain": { "display": "flex", "flexDirection": "column" }, ".contain_text": { "fontSize": "30px", "lineHeight": "45px" }, ".commom_tcolor": { "color": "#272c34" }, ".contain": { "backgroundColor": "#ffffff", "paddingTop": "40px", "paddingLeft": "30px", "flexDirection": "column" }, ".bg_color": { "backgroundColor": "#000000" }, ".color_blue_d": { "color": "rgb(79,148,208)" }, ".color_blue_l": { "color": "rgb(156,220,254)" }, ".color_yellow_d": { "color": "rgb(230,130,84)" }, ".color_yellow_l": { "color": "rgb(220,220,170)" }, ".color_red": { "color": "rgb(199,0,80)" }, ".margin_b": { "marginBottom": "30px" }, ".style_ta": { "color": "rgb(169,169,169)", "fontSize": "30px", "marginTop": "15px" }, ".color_green": { "color": "rgb(96,153,85)" }, ".text_color": { "color": "#267aff" }, ".circleall": { "width": "100%", "flexDirection": "row", "justifyContent": "center", "paddingTop": "20px", "paddingRight": "20px", "paddingBottom": "20px", "paddingLeft": "20px" }, ".button": { "marginTop": "15px", "width": "90%", "height": "80px", "textAlign": "center", "fontSize": "28px", "borderBottomLeftRadius": "40px", "borderBottomRightRadius": "40px", "borderTopLeftRadius": "40px", "borderTopRightRadius": "40px", "backgroundColor": "#317aff" }, ".perch_none_0": { "width": "10px" }, ".perch_none_1": { "width": "20px" }, ".perch_none_2": { "width": "40px" }, ".perch_none_3": { "width": "60px" }, ".perch_none_4": { "width": "80px" } } /***/ }), /***/ "./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/template.js!./src/rich/pages/base/getBatteryInfo/index.mxl": /*!****************************************************************************************************************************************************************!*\ !*** ./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/template.js!./src/rich/pages/base/getBatteryInfo/index.mxl ***! \****************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:1", "className": "demo" }, "type": "div", "classList": [ "demo" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:2", "className": "demo_title", "value": "getBatteryInfo" }, "type": "text", "classList": [ "demo_title" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:3", "className": "demo_block" }, "type": "div", "classList": [ "demo_block" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:4", "className": "demo_block_name", "value": "接口参数" }, "type": "text", "classList": [ "demo_block_name" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:6", "className": "demo_contain" }, "type": "div", "classList": [ "demo_contain" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:7", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:8", "className": "contain_text commom_tcolor", "value": "N/A" }, "type": "text", "classList": [ "contain_text", "commom_tcolor" ] } ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:11", "className": "demo_block" }, "type": "div", "classList": [ "demo_block" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:12", "className": "demo_block_name", "value": "代码" }, "type": "text", "classList": [ "demo_block_name" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:14", "className": "contain bg_color" }, "type": "div", "classList": [ "contain", "bg_color" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:15", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:15", "className": "color_blue_d contain_text", "value": "this" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:15", "className": "color_blue_l contain_text", "value": ".$native" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:16", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:16", "className": "color_yellow_l contain_text", "value": ".getBatteryInfo" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:16", "className": "color_yellow_d contain_text", "value": "( )" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:17", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:17", "className": "color_yellow_l contain_text", "value": ".then" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:17", "className": "color_yellow_d contain_text", "value": "(" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:17", "className": "color_blue_l contain_text", "value": "res" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:17", "className": "color_blue_d contain_text", "value": "=>" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:17", "className": "color_yellow_l contain_text", "value": "{" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "color_blue_d contain_text", "value": "let" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "color_yellow_d contain_text", "value": "{" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "color_yellow_l contain_text", "value": "level, isCharging" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "color_yellow_d contain_text", "value": "}" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "color_yellow_l contain_text", "value": "=" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:18", "className": "color_blue_l contain_text", "value": "res" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_blue_d contain_text", "value": "this" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_yellow_l contain_text", "value": ".$alert" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_red contain_text", "value": "(" }, "type": "text", "classList": [ "color_red", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_yellow_l contain_text", "value": "`" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_yellow_d contain_text", "value": "接口状态:" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_blue_d contain_text", "value": "$" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_yellow_d contain_text", "value": "{" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_blue_l contain_text", "value": "isCharging ?" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_yellow_l contain_text", "value": "'可用'" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_blue_l contain_text", "value": ":" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:19", "className": "color_yellow_l contain_text", "value": "'不可" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:20", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:20", "className": "color_yellow_l contain_text", "value": "用'" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:20", "className": "color_yellow_d contain_text", "value": "}" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:20", "className": "color_yellow_l contain_text", "value": "`" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:20", "className": "color_red contain_text", "value": ")" }, "type": "text", "classList": [ "color_red", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:21", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:21", "className": "color_yellow_l contain_text", "value": "}" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:21", "className": "color_red contain_text", "value": ")" }, "type": "text", "classList": [ "color_red", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:22", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:22", "className": "color_yellow_l contain_text", "value": ".catch" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:22", "className": "color_red contain_text", "value": "(" }, "type": "text", "classList": [ "color_red", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:22", "className": "color_blue_l contain_text", "value": "err" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:22", "className": "color_blue_d contain_text", "value": "=>" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:22", "className": "color_blue_d contain_text", "value": "{" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:23", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:23", "className": "color_blue_d contain_text", "value": "this" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:23", "className": "color_yellow_l contain_text", "value": ".$toast" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:23", "className": "color_red contain_text", "value": "(" }, "type": "text", "classList": [ "color_red", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:23", "className": "color_blue_l contain_text", "value": "err" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:23", "className": "color_red contain_text", "value": ")" }, "type": "text", "classList": [ "color_red", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:24", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:24", "className": "color_yellow_l contain_text", "value": "}" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:24", "className": "color_red contain_text", "value": ")" }, "type": "text", "classList": [ "color_red", "contain_text" ] } ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:26", "className": "demo_block" }, "type": "div", "classList": [ "demo_block" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:27", "className": "demo_block_name", "value": "调用方式" }, "type": "text", "classList": [ "demo_block_name" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:29", "className": "circleall" }, "type": "div", "classList": [ "circleall" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:30", "type": "button", "value": "getBatteryInfo", "className": "button" }, "type": "input", "classList": [ "button" ], "events": { "click": "getBatteryInfoTouch" } } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:32", "className": "demo_block" }, "type": "div", "classList": [ "demo_block" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:33", "className": "demo_block_name", "value": "调用结果" }, "type": "text", "classList": [ "demo_block_name" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:35", "className": "contain margin_b bg_color" }, "type": "div", "classList": [ "contain", "margin_b", "bg_color" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:36", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:36", "className": "color_green contain_text", "value": "//成功时output" }, "type": "text", "classList": [ "color_green", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:37", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:37", "className": "color_yellow_l contain_text", "value": "{" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:38", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:38", "className": "color_blue_d contain_text", "value": "level:" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:38", "className": "color_yellow_d contain_text", "value": "[1-100]" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:38", "className": "color_yellow_l contain_text", "value": "," }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:39", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:39", "className": "color_blue_d contain_text", "value": "isCharging" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:39", "className": "color_blue_l contain_text", "value": ":" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:39", "className": "color_yellow_d contain_text", "value": "[ true | false ]" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:39", "className": "color_yellow_l contain_text", "value": "," }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:40", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:40", "className": "color_yellow_l contain_text", "value": "}" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:41", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:41", "className": "color_green contain_text", "value": "//调用结果示例" }, "type": "text", "classList": [ "color_green", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:42", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:42", "className": "color_yellow_l contain_text", "value": "{" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:43", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:43", "className": "color_blue_d contain_text", "value": "\"level\"" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:43", "className": "color_blue_l contain_text", "value": ":" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:43", "className": "color_yellow_d contain_text", "value": "48" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:43", "className": "color_yellow_l contain_text", "value": "," }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:44", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:44", "className": "color_blue_d contain_text", "value": "\"isCharging\"" }, "type": "text", "classList": [ "color_blue_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:44", "className": "color_blue_l contain_text", "value": ":" }, "type": "text", "classList": [ "color_blue_l", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:44", "className": "color_yellow_d contain_text", "value": "false" }, "type": "text", "classList": [ "color_yellow_d", "contain_text" ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:44", "className": "color_yellow_l contain_text", "value": "," }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] }, { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:45", "className": "flex_style" }, "type": "div", "classList": [ "flex_style" ], "children": [ { "attr": { "debugLine": "src/rich/pages/base/getBatteryInfo/index:45", "className": "color_yellow_l contain_text", "value": "}" }, "type": "text", "classList": [ "color_yellow_l", "contain_text" ] } ] } ] } ] } /***/ }), /***/ "./node_modules/@minix-iot/minix-loader/lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/preset-env&plugins[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./node_modules/@minix-iot/minix-loader/lib/resource-reference-script.js!./src/rich/pages/base/getBatteryInfo/index.js": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@minix-iot/minix-loader/lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/preset-env&plugins[]=/Users/liangzw7/Downloads/Work/Midea/Gitlab/Minix/DevKits/minix-jsbridge-sdk/example/node_modules/@babel/plugin-transform-modules-commonjs&comments=false!./node_modules/@minix-iot/minix-loader/lib/resource-reference-script.js!./src/rich/pages/base/getBatteryInfo/index.js ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module.exports = function(module, exports, $app_require$){"use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _system = _interopRequireDefault(requireModule("@system.prompt")); var _jsbridgeSdk = _interopRequireDefault(__webpack_require__(/*! @minix-iot/jsbridge-sdk */ "./node_modules/@minix-iot/jsbridge-sdk/dist/index.umd.js")); var _default = { data: {}, getBatteryInfoTouch: function getBatteryInfoTouch() { var _this = this; _jsbridgeSdk["default"].getBatteryInfo().then(function (res) { (0, _newArrowCheck2["default"])(this, _this); _system["default"].showToast({ message: '接口测试成功', duration: 200 }); }.bind(this))["catch"](function (err) { (0, _newArrowCheck2["default"])(this, _this); _system["default"].showToast({ message: '接口测试失败', duration: 200 }); }.bind(this)); } }; exports["default"] = _default; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } var moduleOwn = exports.default || module.exports; var accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function(acc) { var accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (var name in moduleOwn[acc]) { moduleOwn._descriptor[name] = {access : acc}; } } else if (accType === 'function') { console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.'); } }); }} /* generated by ace-loader */ /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ var commonCachedModule = globalThis["__common_module_cache__Mf1cca34N"] ? globalThis["__common_module_cache__Mf1cca34N"][moduleId]: null; /******/ if (commonCachedModule) { return commonCachedModule.exports; } /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.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: {} /******/ }; /******/ /******/ if (globalThis["__common_module_cache__Mf1cca34N"] && moduleId.indexOf("?name=") < 0 && Object.keys(globalThis["__common_module_cache__Mf1cca34N"]).indexOf(moduleId) >= 0) { /******/ globalThis["__common_module_cache__Mf1cca34N"][moduleId] = module; /******/ } /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = __webpack_modules__; /******/ /************************************************************************/ /******/ /* webpack/runtime/chunk loaded */ /******/ (() => { /******/ var deferred = []; /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { /******/ if(chunkIds) { /******/ priority = priority || 0; /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; /******/ deferred[i] = [chunkIds, fn, priority]; /******/ return; /******/ } /******/ var notFulfilled = Infinity; /******/ for (var i = 0; i < deferred.length; i++) { /******/ var [chunkIds, fn, priority] = deferred[i]; /******/ var fulfilled = true; /******/ for (var j = 0; j < chunkIds.length; j++) { /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { /******/ chunkIds.splice(j--, 1); /******/ } else { /******/ fulfilled = false; /******/ if(priority < notFulfilled) notFulfilled = priority; /******/ } /******/ } /******/ if(fulfilled) { /******/ deferred.splice(i--, 1) /******/