wszhyWx/unpackage/dist/build/mp-weixin/pages/preciseWaterAndFertilizer/preciseWaterAndFertilizer.js

1 line
2.0 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/preciseWaterAndFertilizer/preciseWaterAndFertilizer"],{"11b6":function(e,n,t){"use strict";var i=t("6e89"),r=t.n(i);r.a},4957:function(e,n,t){"use strict";(function(e,n){var i=t("4ea4");t("d913");i(t("66fd"));var r=i(t("d291"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},5887:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{background:{backgroundColor:"#24B383"},deviceList:[]}},onLoad:function(){var n=this;e.getStorage({key:"token",success:function(t){n.getEquipmentInfo(e.getStorageSync("userid"))},fail:function(n){e.reLaunch({url:"/pages/login/login"})}})},methods:{toFertilizer:function(n){e.navigateTo({url:"/pages/fertilizer_machine/fertilizer_machine?id="+n.deviceId})},getEquipmentInfo:function(e){var n=this;this.$http({url:this.api.sel_eqbyid+e,method:"GET"}).then((function(e){console.log(e,"根据用户id查询对应的设备数据"),200==e.code&&(n.deviceList=e.data)}))}}};n.default=t}).call(this,t("543d")["default"])},"6e89":function(e,n,t){},7965:function(e,n,t){"use strict";t.r(n);var i=t("5887"),r=t.n(i);for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);n["default"]=r.a},d291:function(e,n,t){"use strict";t.r(n);var i=t("f178"),r=t("7965");for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);t("11b6");var a=t("f0c5"),o=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=o.exports},f178:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return i}));var i={uNavbar:function(){return t.e("node-modules/uview-ui/components/u-navbar/u-navbar").then(t.bind(null,"ce19"))}},r=function(){var e=this.$createElement;this._self._c},u=[]}},[["4957","common/runtime","common/vendor"]]]);