(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/customNoMian_step2/index"],{"0f6a":function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return a})),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}})},a=[]},b629:function(e,n,t){},c73e:function(e,n,t){"use strict";t.r(n);var o=t("dff8"),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},dfc1:function(e,n,t){"use strict";t.r(n);var o=t("0f6a"),r=t("c73e");for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t("f07b");var i=t("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"2e820136",null,!1,o["a"],void 0);n["default"]=u.exports},dff8: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")),a=o(t("c973")),i=t("9ca2"),u={components:{},data:function(){return{picUrl:this.$picUrl,showFixInfo:!1,showPreviewConfig:!1,selHx:null,selKj:null,selPp:null,selXl:null,selBb:null,totalPrice:0,name:"",phone:"",addr:"",remark:"",orderId:"",pConfig:-1,shareCon:null,navBarTitle:"",orderSuc:!1}},onLoad:function(n){var t=this;return(0,a.default)(r.default.mark((function o(){var a;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,i.getOrderDetailReq)({orderId:n.orderId});case 6:a=o.sent,0==a.code?(console.log("邀请订单详情返回值-无主灯: ",a),t.shareCon=a.data,t.selHx=a.data.config.house_type_data,t.selKj=a.data.config.space_data,t.selPp=a.data.config.brand,t.selXl=a.data.config.series_data,t.selBb=a.data.config.version):e.showToast({title:a.message,icon:"none"}),o.next=17;break;case 10:t.selHx=getApp().selHx,t.selKj=getApp().selKj,t.selPp=getApp().selPp,t.selXl=getApp().selXl,t.selBb=getApp().selBb,t.pConfig=getApp().pConfig,t.totalPrice=getApp().totalPrice;case 17:case"end":return o.stop()}}),o)})))()},onShareAppMessage:function(e){if("button"===e.from||"menu"===e.from)return{title:"定制我家的无主灯",imageUrl:this.picUrl+"/static/other/noMain_img4.png",path:"/pages/index/customNoMian_step2/index?orderId="+this.orderId,mpId:this.$appId,type:this.$shareType}},methods:{back:function(){e.navigateBack()},postOrder:function(){var n=this;return(0,a.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.pConfig,type:1}),t.next=3,(0,i.postOrderReq)({address:n.addr,phone:n.phone,name:n.name,remark:n.remark,config_id:n.pConfig,type:1});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)})))()}}};n.default=u}).call(this,t("543d")["default"])},e222:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("d716");o(t("66fd"));var r=o(t("dfc1"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},f07b:function(e,n,t){"use strict";var o=t("b629"),r=t.n(o);r.a}},[["e222","common/runtime","common/vendor"]]]);