1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-aiControlSys_step2-index"],{"3f61":function(e,t,a){"use strict";a.r(t);var n=a("c172"),i=a("9103");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("734e");var s=a("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"099d83e7",null,!1,n["a"],void 0);t["default"]=r.exports},"734e":function(e,t,a){"use strict";var n=a("77ca"),i=a.n(n);i.a},"77ca":function(e,t,a){var n=a("7dae");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("ee88fb72",n,!0,{sourceMap:!1,shadowMode:!1})},"7dae":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */[data-v-099d83e7] uni-button::after{border:none!important}[data-v-099d83e7] uni-button{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500}.orderBtn[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#fff;background:#333;border-radius:%?4?%}.page[data-v-099d83e7]{padding-bottom:%?208?%}.topImg[data-v-099d83e7]{width:100%;height:%?1124?%;border-radius:0 %?0?% 0 %?40?%;margin-bottom:%?60?%}.cen[data-v-099d83e7]{position:relative;padding-left:%?40?%;font-size:%?36?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.cen .water[data-v-099d83e7]{width:%?714?%;height:%?50?%;position:absolute;top:%?-24?%;left:0}.cen .halfC[data-v-099d83e7]{width:%?52?%;height:%?56?%;position:absolute;top:%?-18?%;left:%?16?%}.parmasBox[data-v-099d83e7]{padding:0 %?32?%}.parmasBox .con[data-v-099d83e7]{background:#fff;border-radius:%?0?% %?24?% %?0?% %?24?%;border:%?2?% solid #e2e2e2;margin-top:%?48?%;padding:%?40?% %?24?%;padding-bottom:%?22?%}.parmasBox .con .top .item[data-v-099d83e7]{display:flex;justify-content:space-between;margin-bottom:%?30?%}.parmasBox .con .top .item .name[data-v-099d83e7]{font-size:%?28?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.parmasBox .con .top .item .des[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.parmasBox .con .top .item[data-v-099d83e7]:last-child{margin-bottom:%?0?%}.parmasBox .con .type .top2[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333;display:flex;justify-content:space-between;margin-top:%?24?%;margin-bottom:%?24?%}.parmasBox .con .type .top2 .label[data-v-099d83e7]{padding-left:%?5?%}.parmasBox .con .type .list[data-v-099d83e7]{display:flex;flex-wrap:wrap}.parmasBox .con .type .list .item[data-v-099d83e7]{margin-right:%?32?%}.parmasBox .con .type .list .item uni-image[data-v-099d83e7]{width:%?128?%;height:%?128?%}.parmasBox .con .type .list .item .name[data-v-099d83e7]{font-size:%?28?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333;width:%?128?%;word-break:break-all;word-wrap:break-word;text-align:center;margin-top:%?14?%}.parmasBox .con .type .list .item[data-v-099d83e7]:nth-of-type(4n){margin-right:0}.part2[data-v-099d83e7]{font-size:%?36?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333;margin-top:%?48?%}.btnBox[data-v-099d83e7]{height:%?160?%;background:#fff;box-shadow:%?0?% %?0?% %?8?% %?0?% rgba(0,0,0,.16);position:fixed;bottom:0;width:calc(100% - %?64?%);display:flex;align-items:center;justify-content:space-between;padding:0 %?32?%}.btnBox .lBtn[data-v-099d83e7]{width:%?330?%;height:%?96?%;border-radius:%?4?%;border:%?2?% solid #333;display:flex;justify-content:center;align-items:center;font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.btnBox .rBtn[data-v-099d83e7]{width:%?330?%;height:%?96?%;background:#333;border-radius:%?4?%;border:%?2?% solid #333;display:flex;justify-content:center;align-items:center;font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#fff}.bot[data-v-099d83e7]{height:%?160?%;background:#fff;box-shadow:%?0?% %?0?% %?8?% %?0?% rgba(0,0,0,.16);position:fixed;width:100%;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:0 %?40?%}.bot .left[data-v-099d83e7]{display:flex;align-items:center}.bot .left .price[data-v-099d83e7]{font-size:%?42?%;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333}.bot .left uni-image[data-v-099d83e7]{width:%?23?%;height:%?12?%;margin-left:%?16?%}.bot .right[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333;margin-right:%?96?%;display:flex}.bot .right .btn[data-v-099d83e7]{display:flex;justify-content:center;align-items:center;border-radius:%?4?%;border:%?2?% solid #333;width:%?180?%;height:%?96?%;box-sizing:border-box}.rule_img[data-v-099d83e7]{position:fixed;width:%?128?%;height:%?128?%;right:%?18?%;bottom:%?188?%}.rule[data-v-099d83e7]{position:fixed;width:%?96?%;height:%?96?%;background:#fff;box-shadow:%?0?% %?4?% %?24?% %?-8?% rgba(0,0,0,.28);border:%?2?% solid #fff;right:%?36?%;bottom:%?216?%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.rule uni-image[data-v-099d83e7]{width:%?32?%;height:%?32?%;margin-bottom:%?8?%}.rule .txt[data-v-099d83e7]{font-size:%?16?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.topBar[data-v-099d83e7]{height:%?112?%;background:#f9f9f9;border-radius:%?24?% %?24?% %?0?% %?0?%;display:flex;align-items:center;justify-content:space-between}.topBar .left[data-v-099d83e7]{width:10%;display:flex;align-items:center;justify-content:center;height:100%}.topBar .cen[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.topBar .close[data-v-099d83e7]{width:%?24?%;height:%?24?%;color:#666;width:10%;display:flex;align-items:center;justify-content:center;height:100%}.pupopCon[data-v-099d83e7]{padding:%?48?% %?32?%}.pupopCon .item[data-v-099d83e7]{height:%?184?%}.pupopCon .item .label[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333;display:flex;align-items:center;margin-bottom:%?24?%}.topBar[data-v-099d83e7]{height:%?112?%;background:#f9f9f9;border-radius:%?24?% %?24?% %?0?% %?0?%;display:flex;align-items:center;justify-content:space-between}.topBar .left[data-v-099d83e7]{width:10%;display:flex;align-items:center;justify-content:center;height:100%}.topBar .cen[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.topBar .close[data-v-099d83e7]{width:%?24?%;height:%?24?%;color:#666;width:10%;display:flex;align-items:center;justify-content:center;height:100%}.pupopCon[data-v-099d83e7]{padding:%?48?% %?32?%;box-sizing:border-box}.pupopCon .item[data-v-099d83e7]{margin-bottom:%?40?%;box-sizing:border-box;height:auto}.pupopCon .item .top[data-v-099d83e7]{display:flex;justify-content:space-between}.pupopCon .item .top .name[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.pupopCon .item .top .info[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.pupopCon .item .bottom[data-v-099d83e7]{display:flex;justify-content:space-between;padding-left:%?24?%}.pupopCon .item .bottom .name[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.pupopCon .item .bottom .info[data-v-099d83e7]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}',""]),e.exports=t},9103:function(e,t,a){"use strict";a.r(t);var n=a("9be8"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"9be8":function(e,t,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("7db0"),a("d3b7"),a("ac1f"),a("00b4");var i=n(a("c7eb")),o=n(a("1da1")),s=a("531c"),r=a("5757"),d={components:{},data:function(){return{picUrl:this.$picUrl,picBase:this.$picBase,topPic:"",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(e){var t=this;return(0,o.default)((0,i.default)().mark((function a(){var n,o;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(0,r.getBannerDataReq)();case 2:if(n=a.sent,0==n.code?(console.log("1-----图片配置数据",n),t.topPic=n.data.find((function(e,t){return"智能控制系统"==e.title})).head_image):t.$toast(n.message),!e.orderId){a.next=14;break}return t.orderId=e.orderId,t.navBarTitle="首页",console.log("o.orderId",e.orderId),a.next=10,(0,s.getOrderDetailReq)({orderId:e.orderId});case 10:o=a.sent,0==o.code?(console.log("邀请订单详情返回值-智能控制系统: ",o),t.shareCon=o.data,t.selHx=o.data.config.house_type_data,t.selPp=o.data.config.brand_data,t.selSuo=o.data.config.mind_lock_data,t.selMb=o.data.config.mind_switch_data,t.selCl=o.data.config.mind_curtain_data,t.selKt=o.data.config.mind_air_conditioner_data):uni.showToast({title:o.message,icon:"none"}),a.next=22;break;case 14: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 22:case"end":return a.stop()}}),a)})))()},onShareAppMessage:function(e){var t=this;return(0,o.default)((0,i.default)().mark((function a(){var n,o;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("button"!==e.from&&"menu"!==e.from){a.next=15;break}if(n=/^[1][3,4,5,7,8,9][0-9]{9}$/,!t.phone||n.test(t.phone)){a.next=4;break}return a.abrupt("return",t.$toast("手机号格式不正确"));case 4:return a.next=6,(0,s.postOrderReq)({address:t.addr,phone:t.phone,name:t.name,remark:t.remark,config_id:t.pConfig,type:3});case 6:if(o=a.sent,0!=o.code){a.next=14;break}return console.log("提交订单返回值: ",o),t.orderId=o.data.orderId,t.showFixInfo=!1,a.abrupt("return",{title:"定制我家的智能控制系统",imageUrl:t.picBase+t.topPic,path:"/pages/index/aiControlSys_step2/index?orderId="+t.orderId,mpId:t.$appId,type:t.$shareType});case 14:uni.showToast({title:o.message,icon:"none"});case 15:case"end":return a.stop()}}),a)})))()},methods:{openInfoBox:function(){this.showFixInfo=!0},closeInfoBox:function(){this.showFixInfo=!1},postOrder:function(){var e=this;return(0,o.default)((0,i.default)().mark((function t(){var a,n;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=/^[1][3,4,5,7,8,9][0-9]{9}$/,e.name){t.next=3;break}return t.abrupt("return",e.$toast("请填写收货人"));case 3:if(e.phone){t.next=5;break}return t.abrupt("return",e.$toast("请填写电话"));case 5:if(a.test(e.phone)){t.next=7;break}return t.abrupt("return",e.$toast("手机号格式不正确"));case 7:if(e.addr){t.next=9;break}return t.abrupt("return",e.$toast("请填写收货地址"));case 9:if(e.remark){t.next=11;break}return t.abrupt("return",e.$toast("请填写备注"));case 11:return console.log("智控下单参数",{address:e.addr,phone:e.phone,name:e.name,remark:e.remark,config_id:e.selHx.id+","+e.selPp.id+","+e.selSuo.id+","+e.selMb.id+","+e.selCl.id+","+e.selKt.id,type:3}),t.next=14,(0,s.postOrderReq)({address:e.addr,phone:e.phone,name:e.name,remark:e.remark,config_id:e.pConfig,type:3});case 14:n=t.sent,0==n.code?(console.log("提交订单返回值: ",n),e.$toast("提交成功"),e.orderId=n.data.orderId,e.showFixInfo=!1,e.orderSuc=!0):uni.showToast({title:n.message,icon:"none"});case 16:case"end":return t.stop()}}),t)})))()},back:function(){uni.navigateBack()}}};t.default=d},c172:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var n={uPopup:a("9f39").default,uIcon:a("abd3").default,"u-Input":a("d45f").default,"u-Textarea":a("7fd8").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"page"},[a("navBar",{attrs:{backType:e.navBarTitle,title:e.navBarTitle?e.navBarTitle:"智能控制系统",back:!0,color:"black",background:"white"}}),a("v-uni-image",{staticClass:"topImg",attrs:{src:e.picBase+e.topPic,mode:""}}),a("v-uni-view",{staticClass:"cen"},[a("v-uni-image",{staticClass:"water",attrs:{src:"/static/index/water.png",mode:""}}),a("v-uni-image",{staticClass:"halfC",attrs:{src:"/static/index/halfCircle_275.png",mode:""}}),e._v("定制我家的智能控制系统")],1),a("v-uni-view",{staticClass:"parmasBox"},[a("v-uni-view",{staticClass:"con"},[a("v-uni-view",{staticClass:"top"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("户型")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.selHx.value))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("品牌")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.selPp.value))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("智能锁")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.selSuo.value))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("智能开关")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.selMb.value))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("智能窗帘")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.selCl.value))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("智能空调")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.selKt.value))])],1)],1)],1)],1),e.navBarTitle&&(e.shareCon.name||e.shareCon.phone||e.shareCon.address||e.shareCon.remark)?a("v-uni-view",{staticClass:"parmasBox"},[a("v-uni-view",{staticClass:"con"},[a("v-uni-view",{staticClass:"top"},[e.shareCon.name?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("收货人")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.shareCon.name))])],1):e._e(),e.shareCon.phone?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("电话")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.shareCon.phone))])],1):e._e(),e.shareCon.address?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("收货地址")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.shareCon.address))])],1):e._e(),e.shareCon.remark?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"name"},[e._v("备注")]),a("v-uni-view",{staticClass:"des"},[e._v(e._s(e.shareCon.remark))])],1):e._e()],1)],1)],1):e._e(),e.navBarTitle?e._e():a("v-uni-view",{staticClass:"bot"},[a("v-uni-view",{staticClass:"left"},[a("v-uni-view",{staticClass:"price"},[e._v("¥"+e._s(e.totalPrice.toFixed(0)))]),e.showPreviewConfig?a("v-uni-image",{attrs:{src:"/static/index/arrUp.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPreviewConfig=!1}}}):a("v-uni-image",{attrs:{src:"/static/index/arrDown.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showPreviewConfig=!0}}})],1),a("v-uni-view",{staticClass:"right"},[a("v-uni-view",{staticClass:"btn",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.openInfoBox.apply(void 0,arguments)}}},[e._v("确认配置")]),e.navBarTitle?e._e():a("v-uni-view",{staticClass:"btn",staticStyle:{"margin-left":"20rpx"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.back.apply(void 0,arguments)}}},[e._v("返回")])],1)],1),a("u-popup",{attrs:{show:e.showFixInfo,round:"10"},on:{close:function(t){arguments[0]=t=e.$handleEvent(t)},open:function(t){arguments[0]=t=e.$handleEvent(t)}}},[a("v-uni-view",{staticClass:"topBar"},[a("v-uni-view",{staticClass:"left"}),a("v-uni-view",{staticClass:"cen"},[e._v("信息填写")]),a("v-uni-view",{staticClass:"close",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeInfoBox.apply(void 0,arguments)}}},[a("u-icon",{attrs:{name:"close"}})],1)],1),a("v-uni-view",{staticClass:"pupopCon"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"label"},[e._v("收货人")]),a("u--input",{attrs:{clearable:!0,placeholder:"请输入收货人",border:"surround"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"label"},[e._v("电话")]),a("u--input",{attrs:{clearable:!0,placeholder:"请输入电话",border:"surround"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1),a("v-uni-view",{staticClass:"item",staticStyle:{"margin-bottom":"24rpx",height:"auto"}},[a("v-uni-view",{staticClass:"label"},[e._v("收货地址")]),a("u--textarea",{attrs:{placeholder:"请输入收货地址"},model:{value:e.addr,callback:function(t){e.addr=t},expression:"addr"}})],1),a("v-uni-view",{staticClass:"item",staticStyle:{"margin-bottom":"64rpx"}},[a("v-uni-view",{staticClass:"label"},[e._v("备注")]),a("u--input",{attrs:{clearable:!0,placeholder:"请输入备注",border:"surround"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.change.apply(void 0,arguments)}},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}})],1),a("v-uni-button",{staticClass:"orderBtn",attrs:{"open-type":"share",plain:!0}},[e._v("确认下单")])],1)],1)],1)},o=[]}}]);
|