(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/aiControlSys_step2/index"],{"376e":function(e,n,t){"use strict";(function(e){var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t("2eee")),i=o(t("c973")),a=t("9ca2"),u={components:{},data:function(){return{picUrl:this.$picUrl,showFixInfo:!1,showPreviewConfig:!1,selHx:null,selPp:null,selSuo:null,selMb:null,selCl:null,selKt:null,totalPrice:null,name:"",phone:"",addr:"",remark:"",orderId:"",pConfig:-1,shareCon:null,navBarTitle:"",orderSuc:!1}},onLoad:function(n){var t=this;return(0,i.default)(r.default.mark((function o(){var i;return r.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(!n.orderId){o.next=10;break}return t.orderId=n.orderId,t.navBarTitle="首页",console.log("o.orderId",n.orderId),o.next=6,(0,a.getOrderDetailReq)({orderId:n.orderId});case 6:i=o.sent,0==i.code?(console.log("邀请订单详情返回值-智能控制系统: ",i),t.shareCon=i.data,t.selHx=i.data.config.house_type_data,t.selPp=i.data.config.brand,t.selSuo=i.data.config.mind_lock,t.selMb=i.data.config.mind_switch,t.selCl=i.data.config.mind_curtain,t.selKt=i.data.config.mind_air_conditioner):e.showToast({title:i.message,icon:"none"}),o.next=18;break;case 10:t.selHx=getApp().selHx,t.selPp=getApp().selPp,t.selSuo=getApp().selSuo,t.selMb=getApp().selMb,t.selCl=getApp().selCl,t.selKt=getApp().selKt,t.totalPrice=getApp().totalPrice,t.pConfig=getApp().pConfig;case 18:case"end":return o.stop()}}),o)})))()},onShareAppMessage:function(e){if("button"===e.from||"menu"===e.from)return{title:"定制我家的智能控制系统",imageUrl:this.picUrl+"/static/other/c2.png",path:"/pages/index/aiControlSys_step2/index?orderId="+this.orderId,mpId:this.$appId,type:this.$shareType}},methods:{postOrder:function(){var n=this;return(0,i.default)(r.default.mark((function t(){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("智控下单参数",{address:n.addr,phone:n.phone,name:n.name,remark:n.remark,config_id:n.selHx.id+","+n.selPp.id+","+n.selSuo.id+","+n.selMb.id+","+n.selCl.id+","+n.selKt.id,type:3}),t.next=3,(0,a.postOrderReq)({address:n.addr,phone:n.phone,name:n.name,remark:n.remark,config_id:n.pConfig,type:3});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)})))()},back:function(){e.navigateBack()}}};n.default=u}).call(this,t("543d")["default"])},"3c02":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return i})),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"))}},r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.navBarTitle?null:e.totalPrice.toFixed(2));e._isMounted||(e.e0=function(n){e.showPreviewConfig=!0},e.e1=function(n){e.showPreviewConfig=!1},e.e2=function(n){e.showFixInfo=!0},e.e3=function(n){e.showFixInfo=!1}),e.$mp.data=Object.assign({},{$root:{g0:t}})},i=[]},"4b5f":function(e,n,t){"use strict";t.r(n);var o=t("376e"),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},"6ec4":function(e,n,t){"use strict";t.r(n);var o=t("3c02"),r=t("4b5f");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("ab1b");var a=t("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"841f4122",null,!1,o["a"],void 0);n["default"]=u.exports},7403:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("d716");o(t("66fd"));var r=o(t("6ec4"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},a3ff:function(e,n,t){},ab1b:function(e,n,t){"use strict";var o=t("a3ff"),r=t.n(o);r.a}},[["7403","common/runtime","common/vendor"]]]);