wxr
2023-06-06 592974441a4df95fffd9167c90192da1a390b1c2
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-inverter-index"],{"1d41":function(t,e,i){var r=i("8ad4");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=i("4f06").default;a("6f1a64bf",r,!0,{sourceMap:!1,shadowMode:!1})},"27ab":function(t,e,i){"use strict";i.r(e);var r=i("7d60"),a=i.n(r);for(var v in r)"default"!==v&&function(t){i.d(e,t,(function(){return r[t]}))}(v);e["default"]=a.a},"4d8a":function(t,e,i){"use strict";i.r(e);var r=i("c285"),a=i("27ab");for(var v in a)"default"!==v&&function(t){i.d(e,t,(function(){return a[t]}))}(v);i("500e");var n,s=i("f0c5"),_=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"0f82aaa3",null,!1,r["a"],n);e["default"]=_.exports},"500e":function(t,e,i){"use strict";var r=i("1d41"),a=i.n(r);a.a},"7d60":function(t,e,i){"use strict";i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i("4daf"),a={data:function(){return{titleStyle:{"font-family":"SourceHanSerifSC","font-weight":400,color:"#1B2D4D","font-size":"18px"},inverterStrInfo:{on_off:"",work_mode:"",battery_soc:"",total_electricity:"",total_electricity_buy:"",battery_charge_total_electricity:"",system_status:"",power_load:"",total_electricity_sale:"",voltage_r:"",current_r:"",power_r:"",inv:"",voltage_pv1:"",current_pv1:"",power_pv1:"",voltage_pv2:"",current_pv2:"",power_pv2:"",total_electricity_pv:"",battery_charge_discharge_power:"",battery_discharge_total_electricity:"",battery_soh:"",battery_rated_capacity:"",inv_voltage_r:"",inv_current_r:"",inv_power_r:"",inv_hz_r:"",inv_voltage_s:"",inv_current_s:"",inv_power_s:"",inv_voltage_t:"",inv_current_t:"",inv_power_t:""},topMarginHeight:"60px",showOutput:!1}},onLoad:function(t){if(t.spk&&(this.showOutput="energy.inverter_rst"===t.spk),t.inverterStrData){var e=JSON.parse(t.inverterStrData);this.formattingStatus(e),this.setPage(),this.initData()}},methods:{formattingStatus:function(t){var e=this;t.forEach((function(t){switch(t.key){case"on_off":var i="on"===t.value?e.$t("switchOn"):e.$t("switchOff");e.inverterStrInfo["on_off"]=i;break;case"work_mode":var r="";"self_use"===t.value?r=e.$t("selfUse"):"peak_load_shifting"===t.value?r=e.$t("peakLoadShift"):"battery_priority"===t.value&&(r=e.$t("batteryPriority")),e.inverterStrInfo["work_mode"]=r;break;default:e.inverterStrInfo[t.key]=t.value;break}}))},setPage:function(){var t={method:"setPageIndex",data:2};if((0,r.isIos)())window.webkit.messageHandlers.call.postMessage(t);else{var e=JSON.stringify(t);window.JsToNative.call(e)}},initData:function(){(0,r.isIos)(),window.nativeToJs=this.nativeToUni},nativeToUni:function(t){var e=JSON.parse(t);"backPrePage"===e.method&&(this.$router.back(1),this.$bus.$emit("upParams",{}))}}};e.default=a},"8ad4":function(t,e,i){var r=i("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 边框颜色 */\n/* uni.scss */.inverter-main[data-v-0f82aaa3]{padding:0 16px 16px 16px;background:#fff;margin:16px 16px 16px 16px;border-radius:17px;display:flex;flex-direction:column}.inverter-main .item-inverter[data-v-0f82aaa3]{margin-top:16px;display:flex;justify-content:space-between;align-items:center}.inverter-main .item-inverter .item-str[data-v-0f82aaa3]{color:#a5aebc;font-size:12px;font-family:PingFang SC-Regular,PingFang SC;font-weight:Regular;width:60%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-break:break-all}.inverter-main .item-inverter .item-value[data-v-0f82aaa3]{color:#1b2d4d;font-size:12px;font-family:PingFang SC-Regular,PingFang SC;font-weight:Regular;text-overflow:ellipsis;flex:1;text-align:right;overflow:hidden;white-space:nowrap;word-break:break-all}.inverter-main .output-text[data-v-0f82aaa3]{font-size:14px;font-family:PingFang SC-Bold,PingFang SC;font-weight:700;color:#1b2d4d;margin:16px 0 0 0;line-height:22px}.inverter-main .table-header[data-v-0f82aaa3]{display:flex;flex-direction:row;margin:20px 12px 0 12px}.inverter-main .table-header uni-view[data-v-0f82aaa3]{width:25%;text-align:center;font-size:12px;font-family:PingFang SC-Bold,PingFang SC;font-weight:700;color:#1b2d4d}.inverter-main .table-item[data-v-0f82aaa3]{display:flex;flex-direction:row;margin:15px 12px 0 12px}.inverter-main .table-item uni-view[data-v-0f82aaa3]{width:25%;text-align:center;font-size:12px;font-family:PingFang SC-Regular,PingFang SC;font-weight:400;color:#1b2d4d}',""]),t.exports=e},c285:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return v})),i.d(e,"a",(function(){return r}));var r={uNavbar:i("25b9").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("u-navbar",{attrs:{title:t.$t("inverter"),titleStyle:t.titleStyle,leftIconColor:"#1B2D4D",leftIconSize:"24",autoBack:!0}}),t.showOutput?i("v-uni-view",{staticClass:"inverter-main",style:{"margin-top":t.topMarginHeight}},[i("v-uni-text",{staticClass:"output-text"},[t._v(t._s(t.$t("output")))]),i("v-uni-view",[i("v-uni-view",{staticClass:"table-header"},[i("v-uni-view",[t._v(t._s(t.$t("ac")))]),i("v-uni-view",[t._v(t._s(t.$t("voltage")))]),i("v-uni-view",[t._v(t._s(t.$t("electronCurrent")))]),i("v-uni-view",[t._v(t._s(t.$t("power")))])],1),i("v-uni-view",{staticClass:"table-item"},[i("v-uni-view",[t._v("R")]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_voltage_r))]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_current_r))]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_power_r))])],1),i("v-uni-view",{staticClass:"table-item"},[i("v-uni-view",[t._v("S")]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_voltage_s))]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_current_s))]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_power_s))])],1),i("v-uni-view",{staticClass:"table-item"},[i("v-uni-view",[t._v("T")]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_voltage_t))]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_current_t))]),i("v-uni-view",[t._v(t._s(t.inverterStrInfo.inv_power_t))])],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"inverter-main",style:{"margin-top":t.showOutput?"0":t.topMarginHeight}},[i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("switch")))]),t.inverterStrInfo.on_off?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["on_off"]))]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("workMode")))]),t.inverterStrInfo.work_mode?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["work_mode"]))]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("inv")))]),t.inverterStrInfo.inv?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.$t(t.inverterStrInfo["inv"])))]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("system_status")))]),t.inverterStrInfo.system_status?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.$t(t.inverterStrInfo["system_status"])))]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("frequency")))]),t.inverterStrInfo.inv_hz_r?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.$t(t.inverterStrInfo["inv_hz_r"]))+" Hz")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("totalElectricity")))]),t.inverterStrInfo.total_electricity?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["total_electricity"])+"\n\t\t\t\tkW·h")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("totalElectricityBuy")))]),t.inverterStrInfo.total_electricity_buy?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["total_electricity_buy"])+" kW·h")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("power_load")))]),t.inverterStrInfo.power_load?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["power_load"])+" W")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("total_electricity_sale")))]),t.inverterStrInfo.total_electricity_sale?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["total_electricity_sale"])+" kW·h")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("voltage_r")))]),t.inverterStrInfo.voltage_r?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["voltage_r"])+" V")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("current_r")))]),t.inverterStrInfo.current_r?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["current_r"])+" A")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("power_r")))]),t.inverterStrInfo.power_r?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["power_r"])+" W")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("voltage_pv1")))]),t.inverterStrInfo.voltage_pv1?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["voltage_pv1"])+" V")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("current_pv1")))]),t.inverterStrInfo.current_pv1?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["current_pv1"])+" A")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("power_pv1")))]),t.inverterStrInfo.power_pv1?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["power_pv1"])+" W")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("voltage_pv2")))]),t.inverterStrInfo.voltage_pv2?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["voltage_pv2"])+" V")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("current_pv2")))]),t.inverterStrInfo.current_pv2?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["current_pv2"])+" A")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("power_pv2")))]),t.inverterStrInfo.power_pv2?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["power_pv2"])+" W")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("total_electricity_pv")))]),t.inverterStrInfo.total_electricity_pv?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["total_electricity_pv"])+" kW·h")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("battery_charge_discharge_power")))]),t.inverterStrInfo.battery_charge_discharge_power?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["battery_charge_discharge_power"])+" W")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("battery_discharge_total_electricity")))]),t.inverterStrInfo.battery_discharge_total_electricity?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["battery_discharge_total_electricity"])+" kW·h")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("battery_charge_total_electricity")))]),t.inverterStrInfo.battery_charge_total_electricity?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["battery_charge_total_electricity"])+" kW·h")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("battery_soh")))]),t.inverterStrInfo.battery_soh?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["battery_soh"])+" %")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("batterySoc")))]),t.inverterStrInfo.battery_soc?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["battery_soc"])+" %")]):t._e()],1),i("v-uni-view",{staticClass:"item-inverter"},[i("v-uni-view",{staticClass:"item-str"},[t._v(t._s(t.$t("battery_rated_capacity")))]),t.inverterStrInfo.battery_rated_capacity?i("v-uni-view",{staticClass:"item-value"},[t._v(t._s(t.inverterStrInfo["battery_rated_capacity"])+" Ah")]):t._e()],1)],1)],1)},v=[]}}]);