wszhyWx/unpackage/dist/dev/mp-weixin/pages/timeEnvironment/timeEnvironment.js

1296 lines
60 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/timeEnvironment/timeEnvironment"],{
/***/ 67:
/*!***************************************************************************************!*\
!*** D:/前端/云上温室/wszhyWx/main.js?{"page":"pages%2FtimeEnvironment%2FtimeEnvironment"} ***!
\***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
__webpack_require__(/*! uni-pages */ 26);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _timeEnvironment = _interopRequireDefault(__webpack_require__(/*! ./pages/timeEnvironment/timeEnvironment.vue */ 68));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_timeEnvironment.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
/***/ }),
/***/ 68:
/*!********************************************************************!*\
!*** D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./timeEnvironment.vue?vue&type=template&id=34c343d8&scoped=true& */ 69);
/* harmony import */ var _timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timeEnvironment.vue?vue&type=script&lang=js& */ 71);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./timeEnvironment.vue?vue&type=style&index=0&id=34c343d8&lang=scss&scoped=true& */ 73);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
var renderjs
/* normalize component */
var component = Object(_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"34c343d8",
null,
false,
_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pages/timeEnvironment/timeEnvironment.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 69:
/*!***************************************************************************************************************!*\
!*** D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue?vue&type=template&id=34c343d8&scoped=true& ***!
\***************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./timeEnvironment.vue?vue&type=template&id=34c343d8&scoped=true& */ 70);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_template_id_34c343d8_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 70:
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue?vue&type=template&id=34c343d8&scoped=true& ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
uNavbar: function () {
return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-navbar/u-navbar */ "node-modules/uview-ui/components/u-navbar/u-navbar").then(__webpack_require__.bind(null, /*! uview-ui/components/u-navbar/u-navbar.vue */ 175))
},
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
var l1 = _vm.__map(_vm.weatherList, function (item0, __i0__) {
var $orig = _vm.__get_orig(item0)
var l0 = _vm.__map(item0.weatherListChild, function (item, index) {
var $orig = _vm.__get_orig(item)
var m0 = _vm.getTypeList(item.formula)
var m1 =
!(item.equipmentStart == 0) && item.formula == "12"
? _vm.getWindDirection(item.environmentData)
: null
var m2 =
!(item.equipmentStart == 0) && !(item.formula == "12")
? _vm.getTypeList(item.formula)
: null
return {
$orig: $orig,
m0: m0,
m1: m1,
m2: m2,
}
})
var g0 = item0.weatherListChild.length
var g1 = _vm.updateTimeWeather.filter(function (el) {
return el.equipmentId == item0.deviceId
}).length
var g2 =
g1 > 0
? _vm.updateTimeWeather.filter(function (el) {
return el.equipmentId == item0.deviceId
})
: null
return {
$orig: $orig,
l0: l0,
g0: g0,
g1: g1,
g2: g2,
}
})
var l3 = _vm.__map(_vm.equipmentName30List, function (item0, __i1__) {
var $orig = _vm.__get_orig(item0)
var l2 = _vm.__map(item0.equipmentName30ListChild, function (item, index) {
var $orig = _vm.__get_orig(item)
var m3 = _vm.getTypeList(item.formula)
var m4 =
!(item.equipmentStart == 0) && item.formula == "12"
? _vm.getWindDirection(item.environmentData)
: null
var m5 =
!(item.equipmentStart == 0) && !(item.formula == "12")
? _vm.getTypeList(item.formula)
: null
return {
$orig: $orig,
m3: m3,
m4: m4,
m5: m5,
}
})
var g3 = item0.equipmentName30ListChild.length
var g4 = _vm.updateTime30.filter(function (el) {
return el.equipmentId == item0.deviceId
}).length
var g5 =
g4 > 0
? _vm.updateTime30.filter(function (el) {
return el.equipmentId == item0.deviceId
})
: null
return {
$orig: $orig,
l2: l2,
g3: g3,
g4: g4,
g5: g5,
}
})
var l19 = _vm.__map(
_vm.waterAndFertilizerParamsList,
function (item1, index1) {
var $orig = _vm.__get_orig(item1)
var l4 = _vm.__map(item1.childList_mubiao, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m6 = _vm.getTypeList(item2.formula)
var m7 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m8 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m6: m6,
m7: m7,
m8: m8,
}
})
var g6 = item1.childList_mubiao.length
var l5 = _vm.__map(item1.childList_one, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m9 = _vm.getTypeList(item2.formula)
var m10 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m11 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m9: m9,
m10: m10,
m11: m11,
}
})
var g7 = item1.childList_one.length
var l6 = _vm.__map(item1.childList_two, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m12 = _vm.getTypeList(item2.formula)
var m13 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m14 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m12: m12,
m13: m13,
m14: m14,
}
})
var g8 = item1.childList_two.length
var l7 = _vm.__map(item1.childList_three, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m15 = _vm.getTypeList(item2.formula)
var m16 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m17 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m15: m15,
m16: m16,
m17: m17,
}
})
var g9 = item1.childList_three.length
var l8 = _vm.__map(item1.childList_four, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m18 = _vm.getTypeList(item2.formula)
var m19 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m20 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m18: m18,
m19: m19,
m20: m20,
}
})
var g10 = item1.childList_four.length
var l9 = _vm.__map(item1.childList_five, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m21 = _vm.getTypeList(item2.formula)
var m22 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m23 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m21: m21,
m22: m22,
m23: m23,
}
})
var g11 = item1.childList_five.length
var l10 = _vm.__map(item1.childList_six, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m24 = _vm.getTypeList(item2.formula)
var m25 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m26 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m24: m24,
m25: m25,
m26: m26,
}
})
var g12 = item1.childList_six.length
var l11 = _vm.__map(item1.childList_seven, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m27 = _vm.getTypeList(item2.formula)
var m28 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m29 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m27: m27,
m28: m28,
m29: m29,
}
})
var g13 = item1.childList_seven.length
var l12 = _vm.__map(item1.childList_eight, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m30 = _vm.getTypeList(item2.formula)
var m31 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m32 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m30: m30,
m31: m31,
m32: m32,
}
})
var g14 = item1.childList_eight.length
var l13 = _vm.__map(item1.childList_nine, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m33 = _vm.getTypeList(item2.formula)
var m34 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m35 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m33: m33,
m34: m34,
m35: m35,
}
})
var g15 = item1.childList_nine.length
var l14 = _vm.__map(item1.childList_ten, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m36 = _vm.getTypeList(item2.formula)
var m37 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m38 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m36: m36,
m37: m37,
m38: m38,
}
})
var g16 = item1.childList_ten.length
var l15 = _vm.__map(item1.childList_eleven, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m39 = _vm.getTypeList(item2.formula)
var m40 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m41 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m39: m39,
m40: m40,
m41: m41,
}
})
var g17 = item1.childList_eleven.length
var l16 = _vm.__map(item1.childList_twelve, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m42 = _vm.getTypeList(item2.formula)
var m43 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m44 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m42: m42,
m43: m43,
m44: m44,
}
})
var g18 = item1.childList_twelve.length
var l17 = _vm.__map(item1.childList_thirteen, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m45 = _vm.getTypeList(item2.formula)
var m46 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m47 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m45: m45,
m46: m46,
m47: m47,
}
})
var g19 = item1.childList_thirteen.length
var l18 = _vm.__map(item1.childList_fourteen, function (item2, index2) {
var $orig = _vm.__get_orig(item2)
var m48 = _vm.getTypeList(item2.formula)
var m49 = _vm.getStatus(item2.equipmentNumber, item2.targetValue)
var m50 = !(item2.equipmentStart == 0)
? _vm.getTypeList(item2.formula)
: null
return {
$orig: $orig,
m48: m48,
m49: m49,
m50: m50,
}
})
var g20 = item1.childList_fourteen.length
var g21 = _vm.updateTime.filter(function (el) {
return el.equipmentId == item1.deviceId
}).length
var g22 =
g21 > 0
? _vm.updateTime.filter(function (el) {
return el.equipmentId == item1.deviceId
})
: null
return {
$orig: $orig,
l4: l4,
g6: g6,
l5: l5,
g7: g7,
l6: l6,
g8: g8,
l7: l7,
g9: g9,
l8: l8,
g10: g10,
l9: l9,
g11: g11,
l10: l10,
g12: g12,
l11: l11,
g13: g13,
l12: l12,
g14: g14,
l13: l13,
g15: g15,
l14: l14,
g16: g16,
l15: l15,
g17: g17,
l16: l16,
g18: g18,
l17: l17,
g19: g19,
l18: l18,
g20: g20,
g21: g21,
g22: g22,
}
}
)
_vm.$mp.data = Object.assign(
{},
{
$root: {
l1: l1,
l3: l3,
l19: l19,
},
}
)
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 71:
/*!*********************************************************************************************!*\
!*** D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./timeEnvironment.vue?vue&type=script&lang=js& */ 72);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 72:
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue?vue&type=script&lang=js& ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
data: function data() {
return {
// 头部导航背景
background: {
backgroundColor: 'transparent'
},
// 水肥参数
waterAndFertilizerParamsList: [],
// 测试基地
testBaseList: [{
img: "../../static/base1.png",
name: '空气温度',
value: "38.8klux"
}, {
img: "../../static/base2.png",
name: '光亮度',
value: "38.8klux"
}, {
img: "../../static/base3.png",
name: '二氧化碳',
value: "二氧化碳"
}, {
img: "../../static/base3.png",
name: '二氧化碳',
value: "678PPM"
}, {
img: "../../static/base4.png",
name: '土壤温度',
value: "20℃"
}, {
img: "../../static/base4.png",
name: '土壤温度',
value: "30.1℃"
}, {
img: "../../static/base5.png",
name: '土壤湿度',
value: "18.5%"
}, {
img: "../../static/base5.png",
name: '土壤湿度',
value: "18.5%"
}, {
img: "../../static/base6.png",
name: '水肥PH',
value: "0"
}, {
img: "../../static/base6.png",
name: '水肥EC',
value: "0.2mS/cm"
}, {
img: "../../static/base7.png",
name: '3#空气温度',
value: "29.8C"
}, {
img: "../../static/base8.png",
name: '3#空气湿度',
value: "80.6%"
}, {
img: "../../static/base2.png",
name: '3#光亮度',
value: "34.6 klux"
}, {
img: "../../static/base3.png",
name: '3#二氧化碳',
value: "29.8C"
}, {
img: "../../static/base5.png",
name: '3#土壤温度',
value: "31℃"
}],
// 测试基地
testBaseList1: [{
img: "../../static/1.png",
name: '4#光亮度',
value: "43 klux"
}, {
img: "../../static/2.png",
name: '4#二氧化碳',
value: "742 PPM"
}, {
img: "../../static/3.png",
name: '4#土壤温度',
value: "29.3C"
}, {
img: "../../static/4.png",
name: '4#土壤湿度',
value: "4%"
}],
//label是名称 value是code码
//countType计算类型 0是原数据 1是原数据-400 2是原数据/10 3是(原数据-400) / 10
typeList: [],
timer: null,
updateTime: [],
weatherList: [],
weatherDeviceName: '',
updateTimeWeather: [],
equipmentName30List: [],
equipmentName30ListChild: [],
updateTime30: []
};
},
onLoad: function onLoad() {
this.typeList = this.api.typeList;
uni.showLoading({
title: '加载中...'
});
var that = this;
uni.getStorage({
key: 'token',
success: function success(res) {
that.getEquipmentInfo(uni.getStorageSync('userid'));
that.getcontrol_geteqetdata(uni.getStorageSync('userid'));
},
fail: function fail(err) {
uni.reLaunch({
url: '/pages/login/login'
});
}
});
},
onShow: function onShow() {
// console.log('timeEnvironment');
var that = this;
clearInterval(that.timer) && that.timer;
this.timer = setInterval(function () {
uni.getStorage({
key: 'token',
success: function success(res) {
that.getEquipmentInfo(uni.getStorageSync('userid'));
that.getcontrol_geteqetdata(uni.getStorageSync('userid'));
}
});
}, 60000);
},
onHide: function onHide() {
var that = this;
clearInterval(that.timer) && that.timer;
},
onPullDownRefresh: function onPullDownRefresh() {
uni.showLoading({
title: '加载中...'
});
var that = this;
uni.getStorage({
key: 'token',
success: function success(res) {
that.getEquipmentInfo(uni.getStorageSync('userid'));
that.getcontrol_geteqetdata(uni.getStorageSync('userid'));
}
});
},
mounted: function mounted() {
// uni.showLoading({
// title: '加载中...'
// });
// let that = this
// uni.getStorage({
// key: 'token',
// success: function(res) {
// that.getEquipmentInfo(uni.getStorageSync('userid'));
// that.getcontrol_geteqetdata(uni.getStorageSync('userid'))
// },
// fail: function(err) {
// uni.reLaunch({
// url: '/pages/login/login'
// })
// }
// })
},
methods: {
// 根据用户id查询对应的设备数据
getEquipmentInfo: function getEquipmentInfo(userid) {
var _this = this;
var that = this;
// uni.showLoading({
// title: '加载中...'
// });
this.$http({
url: this.api.sel_eqbyid + userid,
// url: this.api.sel_eqbyid + '1730755572975824896',
method: 'GET'
}).then(function (res) {
// console.log(res, '根据用户id查询对应的设备数据');
if (res.code == 200) {
_this.equipmentName30List = [];
res.data.forEach(function (el) {
if (el.equipmentName == 30) {
_this.equipmentName30List.push(el);
}
});
if (_this.equipmentName30List.length != 0) {
_this.getcontrol_rtDatastation1();
}
_this.waterAndFertilizerParamsList = res.data.map(function (item, index) {
return _objectSpread(_objectSpread({}, item), {}, {
childList: [],
childList_mubiao: [],
//目标
childList_1: [],
//平均
childList_2: [],
//平均
childList_one: [],
//1#
childList_two: [],
//2#
childList_three: [],
//3#
childList_four: [],
//4#
childList_five: [],
//5#
childList_six: [],
//6#
childList_seven: [],
//7#
childList_eight: [],
//8#
childList_nine: [],
//9#
childList_ten: [],
//10#
childList_eleven: [],
//11#
childList_twelve: [],
//12#
childList_thirteen: [],
//13#
childList_fourteen: [] //14#
});
});
_this.updateTime = [];
_this.waterAndFertilizerParamsList.forEach(function (i, index) {
_this.$http({
url: (i.equipmentName == 1 ? _this.api.getFs_rtdata : _this.api.getcontrol_rtdata) + "?equipmentId=" + i.deviceId,
method: 'post'
}).then(function (res) {
if (res.code == 200 && res.data.length != 0) {
uni.hideLoading({
title: '完成'
});
uni.stopPullDownRefresh();
i.childList = res.data;
i.childList_mubiao = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == '目标' || _this.getStatus(el.equipmentNumber, el.targetValue) == '目标' + el.equipmentNumber + '#';
});
i.childList_1 = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == '1#平均';
});
i.childList_2 = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == '2#平均';
});
i.childList_one = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 1;
});
i.childList_one = [].concat((0, _toConsumableArray2.default)(i.childList_1), (0, _toConsumableArray2.default)(i.childList_one));
i.childList_two = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 2;
});
i.childList_two = [].concat((0, _toConsumableArray2.default)(i.childList_2), (0, _toConsumableArray2.default)(i.childList_two));
i.childList_three = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 3;
});
i.childList_four = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 4;
});
i.childList_five = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 5;
});
i.childList_six = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 6;
});
i.childList_seven = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 7;
});
i.childList_eight = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 8;
});
i.childList_nine = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 9;
});
i.childList_ten = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 10;
});
i.childList_eleven = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 11;
});
i.childList_twelve = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 12;
});
i.childList_thirteen = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 13;
});
i.childList_fourteen = res.data.filter(function (el) {
return _this.getStatus(el.equipmentNumber, el.targetValue) == el.equipmentNumber + '#' && el.equipmentNumber == 14;
});
_this.updateTime.push(res.data[0]);
// console.log(this.waterAndFertilizerParamsList);
} else {
_this.updateTime.push('暂无');
}
// console.log(this.updateTime,'this.updateTime');
}).catch(function (err) {
console.log('接口失败');
});
});
// equipmentName==1的
var waterAndFertilizerParamsList_1 = _this.waterAndFertilizerParamsList.filter(function (e) {
return e.equipmentName == 1;
}).sort(function (a, b) {
return a.equipmentStatu - b.equipmentStatu;
});
// equipmentName==10的
var waterAndFertilizerParamsList_10 = _this.waterAndFertilizerParamsList.filter(function (e) {
return e.equipmentName == 10;
}).sort(function (a, b) {
return a.equipmentStatu - b.equipmentStatu;
});
// console.log(waterAndFertilizerParamsList_1,waterAndFertilizerParamsList_10,'00000000000');
_this.waterAndFertilizerParamsList = [].concat((0, _toConsumableArray2.default)(waterAndFertilizerParamsList_1), (0, _toConsumableArray2.default)(waterAndFertilizerParamsList_10));
// console.log(this.waterAndFertilizerParamsList, 'this.waterAndFertilizerParamsList');
}
});
},
// 跳转到折线图
toTarget_water_fertilizer_PH: function toTarget_water_fertilizer_PH(id, data, name, equipmentNumber, targetValue, unit, equipmentName, flag) {
uni.navigateTo({
url: '/pages/target_water_fertilizer_PH/target_water_fertilizer_PH?id=' + id + '&data=' + data + '&name=' + name + '&equipmentNumber=' + equipmentNumber + '&targetValue=' + targetValue + '&unit=' + unit + '&equipmentName=' + equipmentName + '&flag=' + flag
});
},
// 数据单位
getTypeList: function getTypeList(val) {
var typeList1 = [];
typeList1 = this.typeList.filter(function (item) {
return item.value == val;
});
return typeList1[0].unit;
},
// 判断是否是平均或者目标,或者是1#
getStatus: function getStatus(equipmentNumber, targetValue) {
// if (targetValue == 1) {
// return '目标'
// } else if (targetValue == 0 && equipmentNumber == 0) {
// return '1#平均'
// } else if (targetValue == 0 && equipmentNumber == 15) {
// return '2#平均'
// } else if (targetValue == 0 && equipmentNumber != 0 && equipmentNumber != 15) {
// return equipmentNumber + '#'
// }
if (targetValue == 1) {
if (equipmentNumber == 0) {
return '目标';
} else {
return '目标' + equipmentNumber + '#';
}
} else {
if (equipmentNumber == 0) {
return '1#平均';
} else if (equipmentNumber == 15) {
return '2#平均';
} else {
return equipmentNumber + '#';
}
}
},
// 气象站
getcontrol_geteqetdata: function getcontrol_geteqetdata(userId) {
var _this2 = this;
this.$http({
url: this.api.getcontrol_geteqetdata + '?userId=' + userId,
method: 'GET'
}).then(function (res) {
// console.log(res,'小程序气象站显示');
if (res.code == 200) {
_this2.weatherList = res.data;
_this2.weatherList = _this2.weatherList.map(function (item, index) {
return _objectSpread(_objectSpread({}, item), {}, {
weatherListChild: []
});
});
_this2.updateTimeWeather = [];
_this2.weatherList.forEach(function (el) {
// 主页查看控制器气象站实时数据
_this2.$http({
url: _this2.api.getcontrol_rtDatastation + '?equipmentId=' + el.deviceId,
method: 'GET'
}).then(function (res) {
// console.log(res,'主页查看控制器气象站实时数据');
if (res.code == 200) {
el.weatherListChild = res.data;
_this2.updateTimeWeather.push(res.data[0]);
}
});
});
}
});
},
// 主页查看控制器气象站实时数据
getcontrol_rtDatastation: function getcontrol_rtDatastation(equipmentId) {},
// 获取deviceName为30的气象站实时数据
getcontrol_rtDatastation1: function getcontrol_rtDatastation1() {
var _this3 = this;
this.equipmentName30List = this.equipmentName30List.map(function (item, index) {
return _objectSpread(_objectSpread({}, item), {}, {
equipmentName30ListChild: []
});
});
this.updateTime30 = [];
this.equipmentName30List.forEach(function (el) {
_this3.$http({
url: _this3.api.getcontrol_rtDatastation + '?equipmentId=' + el.deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
el.equipmentName30ListChild = res.data;
_this3.updateTime30.push(res.data[0]);
}
});
});
// console.log(this.equipmentName30List,'this.equipmentName30List');
},
// 风向判定
getWindDirection: function getWindDirection(number) {
var num = Number(number);
if (num <= 67 && num >= 22) {
return '东北';
} else if (num > 67 && num < 112) {
return '东';
} else if (num >= 112 && num <= 157) {
return '东南';
} else if (num > 157 && num < 202) {
return '南';
} else if (num >= 202 && num <= 247) {
return '西南';
} else if (num > 247 && num < 292) {
return '西';
} else if (num >= 292 && num <= 337) {
return '西北';
} else if (num < 22) {
return '北';
} else if (num > 337) {
return '北';
}
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/***/ 73:
/*!******************************************************************************************************************************!*\
!*** D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue?vue&type=style&index=0&id=34c343d8&lang=scss&scoped=true& ***!
\******************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./timeEnvironment.vue?vue&type=style&index=0&id=34c343d8&lang=scss&scoped=true& */ 74);
/* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_timeEnvironment_vue_vue_type_style_index_0_id_34c343d8_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 74:
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/前端/云上温室/wszhyWx/pages/timeEnvironment/timeEnvironment.vue?vue&type=style&index=0&id=34c343d8&lang=scss&scoped=true& ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
/***/ })
},[[67,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/timeEnvironment/timeEnvironment.js.map