(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/fullHouseWifi/index"],{"2a26":function(e,n,t){"use strict";t.r(n);var o=t("b949"),i=t("e182");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("671a");var a=t("f0c5"),s=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"0563c6f0",null,!1,o["a"],void 0);n["default"]=s.exports},"40b7":function(e,n,t){"use strict";(function(e){var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("2eee")),r=o(t("c973")),a=t("9ca2"),s=t("057b"),u={components:{},data:function(){return{picUrl:this.$picUrl,showFixInfo:!1,addOrLessIcon1:"/static/index/add.png",addOrLessIcon2:"/static/index/add.png",addOrLessIcon3:"/static/index/add.png",addOrLessIcon4:"/static/index/add.png",addOrLessIcon5:"/static/index/add.png",show1:!1,show2:!1,show3:!1,show4:!1,show5:!1,currHouseIndex:0,houseTypeList:[],selHx:null,totalPrice:0,name:"",phone:"",addr:"",remark:"",orderId:"",pConfig:-1,orderSuc:!1}},onLoad:function(e){var n=this;return(0,r.default)(i.default.mark((function e(){var t;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,a.getIndexConfigReq)({type:4});case 2:t=e.sent,0==t.code&&(console.log("获取首页配置返回值-全屋WiFi: ",t),n.houseTypeList=t.data.house_type,n.selHx=t.data.house_type[0],n.getPrice(4,n.selHx.id));case 4:case"end":return e.stop()}}),e)})))()},onShareAppMessage:function(e){if("button"===e.from||"menu"===e.from)return{title:"定制我家的全屋WiFi",imageUrl:this.picUrl+"/static/other/c1.png",path:"/pages/index/fullHouseWifi_step2/index?orderId="+this.orderId,mpId:this.$appId,type:this.$shareType}},methods:{postOrder:function(){var n=this;return(0,r.default)(i.default.mark((function t(){var o;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("wifi下单参数",{address:n.addr,phone:n.phone,name:n.name,remark:n.remark,config_id:n.selHx.id,type:4}),t.next=3,(0,a.postOrderReq)({address:n.addr,phone:n.phone,name:n.name,remark:n.remark,config_id:n.pConfig,type:4});case 3:o=t.sent,0==o.code?(console.log("提交订单返回值: ",o),n.$toast("提交成功"),n.orderId=o.data.orderId,n.showFixInfo=!1,n.orderSuc=!0):e.showToast({title:o.message,icon:"none"});case 5:case"end":return t.stop()}}),t)})))()},sel:function(e,n){this.currHouseIndex=n,this.selHx=e,this.getPrice(4,this.selHx.id)},getPrice:function(){var n=arguments,t=this;return(0,r.default)(i.default.mark((function o(){var r,a,u;return i.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return r=n.length>0&&void 0!==n[0]?n[0]:4,a=n.length>1?n[1]:void 0,o.next=4,(0,s.getDataMoneyReq)({type:r,house_type:a});case 4:u=o.sent,0==u.code?(console.log("配置价格-wifi: ",u),t.totalPrice=u.data.money,t.pConfig=u.data.id):e.showToast({title:u.message,icon:"none"});case 6:case"end":return o.stop()}}),o)})))()},handleOpenOrClose:function(e){"/static/index/shortLine.png"==this["addOrLessIcon"+e]?(this["addOrLessIcon"+e]="/static/index/add.png",this["show"+e]=!1):"/static/index/add.png"==this["addOrLessIcon"+e]&&(this["addOrLessIcon"+e]="/static/index/shortLine.png",this["show"+e]=!0)}}};n.default=u}).call(this,t("543d")["default"])},"671a":function(e,n,t){"use strict";var o=t("c57e"),i=t.n(o);i.a},b949:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(t.bind(null,"50d6"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"915a"))},"u-Input":function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u--input/u--input")]).then(t.bind(null,"0824"))},"u-Textarea":function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u--textarea/u--textarea")]).then(t.bind(null,"c71e"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"45b3"))}},i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.totalPrice.toFixed(2));e._isMounted||(e.e0=function(n){e.showFixInfo=!0},e.e1=function(n){e.showFixInfo=!1}),e.$mp.data=Object.assign({},{$root:{g0:t}})},r=[]},c57e:function(e,n,t){},e182:function(e,n,t){"use strict";t.r(n);var o=t("40b7"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},f3b8:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("d716");o(t("66fd"));var i=o(t("2a26"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])}},[["f3b8","common/runtime","common/vendor"]]]);