minix-template
Version:
minix template
1,632 lines (1,600 loc) • 54.9 kB
JavaScript
var Pf1cca34X;
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./src/rich/pages/base/canlUse/index.mxl?entry":
/*!*****************************************************!*\
!*** ./src/rich/pages/base/canlUse/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/canlUse/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/canlUse/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/canlUse/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/canlUse/index.css":
/*!******************************************************************************************************************************************************!*\
!*** ./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/style.js!./src/rich/pages/base/canlUse/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/canlUse/index.mxl":
/*!*********************************************************************************************************************************************************!*\
!*** ./node_modules/@minix-iot/minix-loader/lib/json.js!./node_modules/@minix-iot/minix-loader/lib/template.js!./src/rich/pages/base/canlUse/index.mxl ***!
\*********************************************************************************************************************************************************/
/***/ ((module) => {
module.exports = {
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:1",
"className": "demo"
},
"type": "div",
"classList": [
"demo"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:2",
"className": "demo_header"
},
"type": "div",
"classList": [
"demo_header"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:3",
"type": "button",
"value": "< 返回",
"className": "back_button"
},
"type": "input",
"classList": [
"back_button"
],
"events": {
"click": "goBack"
}
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:4",
"className": "demo_title"
},
"type": "div",
"classList": [
"demo_title"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:5",
"value": "getSystemInfo"
},
"type": "text"
}
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:8",
"className": "demo_block"
},
"type": "div",
"classList": [
"demo_block"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:9",
"className": "demo_block_name",
"value": "接口参数"
},
"type": "text",
"classList": [
"demo_block_name"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:11",
"className": "demo_contain"
},
"type": "div",
"classList": [
"demo_contain"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:12",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:13",
"className": "contain_text commom_tcolor",
"value": "参数类型:"
},
"type": "text",
"classList": [
"contain_text",
"commom_tcolor"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:14",
"className": "contain_text text_color",
"value": "String"
},
"type": "text",
"classList": [
"contain_text",
"text_color"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:16",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:17",
"className": "contain_text commom_tcolor",
"value": "参数示例:"
},
"type": "text",
"classList": [
"contain_text",
"commom_tcolor"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:18",
"className": "color_yellow_d contain_text",
"value": "'getSystemInfo'"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
}
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:21",
"className": "demo_block"
},
"type": "div",
"classList": [
"demo_block"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:22",
"className": "demo_block_name",
"value": "代码"
},
"type": "text",
"classList": [
"demo_block_name"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:24",
"className": "contain bg_color"
},
"type": "div",
"classList": [
"contain",
"bg_color"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:25",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:25",
"className": "color_blue_d contain_text",
"value": "let"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:25",
"className": "perch_none_0"
},
"type": "text",
"classList": [
"perch_none_0"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:25",
"className": "color_blue_l contain_text",
"value": "params"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:25",
"className": "color_yellow_l contain_text",
"value": "="
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:25",
"className": "color_yellow_d contain_text",
"value": "'getSystemInfo'"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:26",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:26",
"className": "color_blue_d contain_text",
"value": "this"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:26",
"className": "color_blue_l contain_text",
"value": ".$native"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:27",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:27",
"className": "perch_none_1"
},
"type": "text",
"classList": [
"perch_none_1"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:27",
"className": "color_yellow_l contain_text",
"value": ".canIUse"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:27",
"className": "color_yellow_d contain_text",
"value": "("
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:27",
"className": "color_blue_l contain_text",
"value": "params"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:27",
"className": "color_yellow_d contain_text",
"value": ")"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "perch_none_1"
},
"type": "text",
"classList": [
"perch_none_1"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "color_yellow_l contain_text",
"value": ".then"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "color_yellow_d contain_text",
"value": "("
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "color_blue_l contain_text",
"value": "res"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "color_blue_d contain_text",
"value": "=>"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:28",
"className": "color_yellow_l contain_text",
"value": "{"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "perch_none_2"
},
"type": "text",
"classList": [
"perch_none_2"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "color_blue_d contain_text",
"value": "let"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "perch_none_0"
},
"type": "text",
"classList": [
"perch_none_0"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "color_yellow_l contain_text",
"value": "{"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "color_yellow_l contain_text",
"value": "enable"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "color_yellow_l contain_text",
"value": "}"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "color_yellow_l contain_text",
"value": "="
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:29",
"className": "color_blue_l contain_text",
"value": "res"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "perch_none_2"
},
"type": "text",
"classList": [
"perch_none_2"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_blue_d contain_text",
"value": "this"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_l contain_text",
"value": ".$toast"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_red contain_text",
"value": "("
},
"type": "text",
"classList": [
"color_red",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_l contain_text",
"value": "`"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_blue_d contain_text",
"value": "$"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_d contain_text",
"value": "{"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_l contain_text",
"value": "params"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_d contain_text",
"value": "} 接口状态:"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_blue_d contain_text",
"value": "$"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_d contain_text",
"value": "{"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_blue_l contain_text",
"value": "enable ?"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_yellow_d contain_text",
"value": "'可用'"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:30",
"className": "color_blue_l contain_text",
"value": ":"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:31",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:31",
"className": "perch_none_4"
},
"type": "text",
"classList": [
"perch_none_4"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:31",
"className": "color_yellow_d contain_text",
"value": "'不可用'}"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:31",
"className": "color_yellow_l contain_text",
"value": "`"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:31",
"className": "color_red contain_text",
"value": ")"
},
"type": "text",
"classList": [
"color_red",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:32",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:32",
"className": "perch_none_1"
},
"type": "text",
"classList": [
"perch_none_1"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:32",
"className": "color_yellow_l contain_text",
"value": "}"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:32",
"className": "color_yellow_d contain_text",
"value": ")"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "perch_none_1"
},
"type": "text",
"classList": [
"perch_none_1"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "color_yellow_l contain_text",
"value": ".catch"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "color_red contain_text",
"value": "("
},
"type": "text",
"classList": [
"color_red",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "color_blue_l contain_text",
"value": "err"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "color_blue_d contain_text",
"value": "=>"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:33",
"className": "color_blue_d contain_text",
"value": "{"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "perch_none_2"
},
"type": "text",
"classList": [
"perch_none_2"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "color_blue_d contain_text",
"value": "this"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "color_yellow_l contain_text",
"value": ".$toast"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "color_red contain_text",
"value": "("
},
"type": "text",
"classList": [
"color_red",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "color_blue_l contain_text",
"value": "err"
},
"type": "text",
"classList": [
"color_blue_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:34",
"className": "color_red contain_text",
"value": ")"
},
"type": "text",
"classList": [
"color_red",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:35",
"className": "flex_style margin_b"
},
"type": "div",
"classList": [
"flex_style",
"margin_b"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:35",
"className": "perch_none_1"
},
"type": "text",
"classList": [
"perch_none_1"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:35",
"className": "color_yellow_l contain_text",
"value": "}"
},
"type": "text",
"classList": [
"color_yellow_l",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:35",
"className": "color_red contain_text",
"value": ")"
},
"type": "text",
"classList": [
"color_red",
"contain_text"
]
}
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:37",
"className": "demo_block"
},
"type": "div",
"classList": [
"demo_block"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:38",
"className": "demo_block_name",
"value": "调用方式"
},
"type": "text",
"classList": [
"demo_block_name"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:40",
"className": "circleall"
},
"type": "div",
"classList": [
"circleall"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:41",
"type": "button",
"value": "canlUse",
"className": "button"
},
"type": "input",
"classList": [
"button"
],
"events": {
"click": "canlUseTouch"
}
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:43",
"className": "demo_block"
},
"type": "div",
"classList": [
"demo_block"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:44",
"className": "demo_block_name",
"value": "调用结果"
},
"type": "text",
"classList": [
"demo_block_name"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:46",
"className": "contain bg_color margin_b"
},
"type": "div",
"classList": [
"contain",
"bg_color",
"margin_b"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:47",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:47",
"className": "color_green contain_text",
"value": "//成功时output"
},
"type": "text",
"classList": [
"color_green",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "color_blue_d contain_text",
"value": "enable"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "color_blue_d contain_text",
"value": ": ["
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "color_yellow_d contain_text",
"value": "true"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "color_blue_d contain_text",
"value": "|"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "color_yellow_d contain_text",
"value": "false"
},
"type": "text",
"classList": [
"color_yellow_d",
"contain_text"
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:48",
"className": "color_blue_d contain_text",
"value": "]"
},
"type": "text",
"classList": [
"color_blue_d",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:49",
"className": "flex_style"
},
"type": "div",
"classList": [
"flex_style"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:49",
"className": "color_green contain_text",
"value": "//调用结果示例"
},
"type": "text",
"classList": [
"color_green",
"contain_text"
]
}
]
},
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:50",
"className": "flex_style margin_b"
},
"type": "div",
"classList": [
"flex_style",
"margin_b"
],
"children": [
{
"attr": {
"debugLine": "src/rich/pages/base/canlUse/index:50",
"className": "color_blue_d contain_text",
"value": "getSystemInfo 接口状态:可用"
},
"type": "text",
"classList": [
"color_blue_d",
"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/canlUse/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/canlUse/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 _system2 = _interopRequireDefault(requireModule("@system.router"));
var _default = {
data: {},
canlUseTouch: function canlUseTouch() {
var _this = this;
var params = "getSystemInfo";
_jsbridgeSdk["default"].canIUse(params).then(function (res) {
(0, _newArrowCheck2["default"])(this, _this);
var enable = res.enable;
_system["default"].showToast({
message: "".concat(params, "\u63A5\u53E3\u72B6\u6001\uFF1A").concat(enable ? "\u53EF\u7528" : "\u4E0D\u53EF\u7528"),
duration: 200
});
}.bind(this))["catch"](function (err) {
(0, _newArrowCheck2["default"])(this, _this);
_system["default"].showToast({
message: '接口测试失败',
duration: 200
});
}.bind(this));
},
goBack: function goBack() {
_system2["default"].back();
}
};
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_mo