1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-fullHouseWifi-index"],{"10ae":function(t,e,n){var i=n("89fd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("177ef808",i,!0,{sourceMap:!1,shadowMode:!1})},"6d6c":function(t,e,n){"use strict";var i=n("10ae"),a=n.n(i);a.a},8480:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("00b4");var a=i(n("c7eb")),o=i(n("1da1")),s=n("531c"),r=n("5757"),d={components:{},data:function(){return{picUrl:this.$picUrl,picBase:this.$picBase,showFixInfo:!1,addOrLessIcon1:"/static/index/shortLine.png",addOrLessIcon2:"/static/index/add.png",addOrLessIcon3:"/static/index/add.png",addOrLessIcon4:"/static/index/add.png",addOrLessIcon5:"/static/index/add.png",show1:!0,show2:!1,show3:!1,show4:!1,show5:!1,currHouseIndex:-1,houseTypeList:[],selHx:null,totalPrice:0,name:"",phone:"",addr:"",remark:"",orderId:"",pConfig:-1,orderSuc:!1,cutdownRatio:1,rule:"",topPic:""}},onLoad:function(t){var e=this;return(0,o.default)((0,a.default)().mark((function t(){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.topPic=getApp().noMainImg.head_image,console.log("4this.topPic",e.topPic),t.next=4,(0,s.getIndexConfigReq)({type:4});case 4:n=t.sent,0==n.code&&(console.log("获取首页配置返回值-全屋WiFi: ",n),e.houseTypeList=n.data.house_type,e.rule=n.data.rule.content);case 6:case"end":return t.stop()}}),t)})))()},onShow:function(){this.cutdownRatio=this.$getCutDown()},onShareAppMessage:function(t){var e=this;return(0,o.default)((0,a.default)().mark((function n(){var i,o;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("button"!==t.from&&"menu"!==t.from){n.next=15;break}if(i=/^[1][3,4,5,7,8,9][0-9]{9}$/,!e.phone||i.test(e.phone)){n.next=4;break}return n.abrupt("return",e.$toast("手机号格式不正确"));case 4:return n.next=6,(0,s.postOrderReq)({address:e.addr,phone:e.phone,name:e.name,remark:e.remark,config_id:e.pConfig,type:4});case 6:if(o=n.sent,0!=o.code){n.next=14;break}return console.log("提交订单返回值: ",o),e.orderId=o.data.orderId,e.showFixInfo=!1,n.abrupt("return",{title:"定制我家的全屋WiFi",imageUrl:e.picBase+e.topPic,path:"/pages/index/fullHouseWifi_step2/index?orderId="+e.orderId,mpId:e.$appId,type:e.$shareType});case 14:uni.showToast({title:o.message,icon:"none"});case 15:case"end":return n.stop()}}),n)})))()},methods:{confirmConfig:function(){if(!this.selHx)return this.$toast("请选择户型");this.showFixInfo=!0},toRule:function(){getApp().content=this.rule,uni.navigateTo({url:"/pages/index/rule/index?type=wifi"})},postOrder:function(){var t=this;return(0,o.default)((0,a.default)().mark((function e(){var n;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.postOrderReq)({address:t.addr,phone:t.phone,name:t.name,remark:t.remark,config_id:t.pConfig,type:4});case 2:n=e.sent,0==n.code?(console.log("提交订单返回值: ",n),t.$toast("提交成功"),t.orderId=n.data.orderId,t.showFixInfo=!1,t.orderSuc=!0):uni.showToast({title:n.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},sel:function(t,e){this.currHouseIndex=e,this.selHx=t,this.getPrice(4,this.selHx.id)},getPrice:function(){var t=arguments,e=this;return(0,o.default)((0,a.default)().mark((function n(){var i,o,s;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:4,o=t.length>1?t[1]:void 0,n.next=4,(0,r.getDataMoneyReq)({type:i,house_type:o});case 4:s=n.sent,0==s.code?(console.log("配置价格-wifi: ",s),e.totalPrice=s.data.money*e.cutdownRatio,e.pConfig=s.data.id):uni.showToast({title:s.message,icon:"none"});case 6:case"end":return n.stop()}}),n)})))()},handleOpenOrClose:function(t){"/static/index/shortLine.png"==this["addOrLessIcon"+t]?(this["addOrLessIcon"+t]="/static/index/add.png",this["show"+t]=!1):"/static/index/add.png"==this["addOrLessIcon"+t]&&(this["addOrLessIcon"+t]="/static/index/shortLine.png",this["show"+t]=!0)}}};e.default=d},"89fd":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */[data-v-4014b848] uni-button::after{border:none!important}[data-v-4014b848] uni-button{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500}.orderBtn[data-v-4014b848]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#fff;background:#333;border-radius:%?4?%}.page[data-v-4014b848]{padding-bottom:%?160?%;overflow-x:hidden}.topBg[data-v-4014b848]{width:100vw;height:%?850?%;position:relative;z-index:0}.content[data-v-4014b848]{height:calc(100vh - %?800?% - %?160?% - %?20?%);padding:0 %?36?%}.content .topBox[data-v-4014b848]{width:%?678?%;height:%?120?%;background:#fff;box-shadow:%?0?% %?12?% %?56?% %?-4?% rgba(220,212,205,.5);border-radius:%?24?% %?24?% %?24?% %?4?%;margin-top:%?-60?%;margin-left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:1;position:relative;display:flex;align-items:center;justify-content:space-between}.content .topBox .lTxt .water[data-v-4014b848]{font-size:%?56?%;font-family:Arial-BoldMT,Arial;font-weight:400;color:#eee;position:absolute;top:0;z-index:0}.content .topBox .lTxt .water1[data-v-4014b848]{position:absolute;top:0;z-index:0;height:%?56?%}.content .topBox .lTxt .main[data-v-4014b848]{height:100%;display:flex;align-items:center;justify-content:center;position:relative;z-index:1;margin-left:%?52?%}.content .topBox .lTxt .main uni-image[data-v-4014b848]{position:absolute;z-index:2;left:-10%;top:%?-20?%}.content .topBox .rDes[data-v-4014b848]{margin-right:%?32?%;width:%?132?%;height:%?48?%;border:%?1?% solid #333;display:flex;justify-content:center;align-items:center}.content .topBox .rDes .con[data-v-4014b848]{font-size:%?24?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333}.content .topBox .rDes uni-image[data-v-4014b848]{margin-left:%?8?%}.content .label[data-v-4014b848]{font-size:%?36?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:500;color:#333;margin-top:%?44?%;display:flex;align-items:center;justify-content:space-between}.content .parms[data-v-4014b848]{display:flex;flex-wrap:wrap;border-bottom:%?1?% solid #eaeaea;padding-bottom:%?46?%;position:relative}.content .parms .item[data-v-4014b848]{width:%?325?%;height:%?96?%;border-radius:%?4?%;border:%?1?% solid #999;margin-right:%?18?%;margin-bottom:%?18?%;display:flex;align-items:center;justify-content:center;font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#999}.content .parms .act[data-v-4014b848]{color:#333;border:%?1?% solid #000}.content .parms .item[data-v-4014b848]:nth-of-type(2n){margin-right:0!important}.bot[data-v-4014b848]{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-4014b848]{display:flex;align-items:center}.bot .left .price[data-v-4014b848]{font-size:%?42?%;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333}.bot .left uni-image[data-v-4014b848]{width:%?23?%;height:%?12?%;margin-left:%?16?%}.bot .right[data-v-4014b848]{width:%?282?%;height:%?96?%;background:#fff;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;margin-right:%?96?%;box-sizing:border-box}.rule[data-v-4014b848]{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-4014b848]{width:%?32?%;height:%?32?%;margin-bottom:%?8?%}.rule .txt[data-v-4014b848]{font-size:%?16?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.topBar[data-v-4014b848]{height:%?112?%;background:#f9f9f9;border-radius:%?24?% %?24?% %?0?% %?0?%;display:flex;align-items:center;justify-content:space-between}.topBar .left[data-v-4014b848]{width:10%;display:flex;align-items:center;justify-content:center;height:100%}.topBar .cen[data-v-4014b848]{font-size:%?32?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.topBar .close[data-v-4014b848]{width:%?24?%;height:%?24?%;color:#666;width:10%;display:flex;align-items:center;justify-content:center;height:100%}.pupopCon[data-v-4014b848]{padding:%?48?% %?32?%;box-sizing:border-box}.pupopCon .item[data-v-4014b848]{margin-bottom:%?40?%;box-sizing:border-box;height:auto}.pupopCon .item .label[data-v-4014b848]{margin-bottom:%?24?%;font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.pupopCon .item .top[data-v-4014b848]{display:flex;justify-content:space-between}.pupopCon .item .top .name[data-v-4014b848]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.pupopCon .item .top .info[data-v-4014b848]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.pupopCon .item .bottom[data-v-4014b848]{display:flex;justify-content:space-between;padding-left:%?24?%}.pupopCon .item .bottom .name[data-v-4014b848]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.pupopCon .item .bottom .info[data-v-4014b848]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}',""]),t.exports=e},"8aa0":function(t,e,n){"use strict";n.r(e);var i=n("8480"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},9436:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uPopup:n("9f39").default,uIcon:n("abd3").default,"u-Input":n("d45f").default,"u-Textarea":n("7fd8").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("navBar",{attrs:{title:"网络规划-全屋WiFi",back:!0,color:"black",background:"white"}}),n("v-uni-image",{staticClass:"topBg",attrs:{src:t.picBase+t.topPic,mode:""}}),n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"topBox"},[n("v-uni-view",{staticClass:"lTxt"},[n("v-uni-image",{staticClass:"water1",attrs:{src:"/static/index/water.png",mode:""}}),n("v-uni-view",{staticClass:"main"},[n("v-uni-image",{staticStyle:{width:"56rpx",height:"56rpx"},attrs:{src:"/static/index/halfCircle_275.png",mode:""}}),n("v-uni-text",{staticStyle:{"z-index":"3",position:"relative"}},[t._v("定制我家的全屋WiFi")])],1)],1),n("v-uni-view",{staticClass:"rDes",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toRule.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"con"},[t._v("详情")]),n("v-uni-image",{staticStyle:{width:"25rpx",height:"15rpx"},attrs:{src:t.picUrl+"/static/other/halfRight_b.png",mode:""}})],1)],1),n("v-uni-view",{staticClass:"label",style:{"margin-bottom":"/static/index/shortLine.png"==t.addOrLessIcon1?"32rpx":"0"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOpenOrClose(1)}}},[n("v-uni-view",{staticClass:"txt"},[t._v("户型")]),n("v-uni-image",{staticStyle:{width:"22rpx","margin-right":"56rpx"},style:{height:"/static/index/shortLine.png"==t.addOrLessIcon1?"2rpx":"22rpx"},attrs:{src:t.addOrLessIcon1,mode:""}})],1),n("v-uni-view",{staticClass:"parms"},t._l(t.houseTypeList,(function(e,i){return t.show1?n("v-uni-view",{staticClass:"item ",class:[t.currHouseIndex==i?"act":""],style:{"margin-right":1==i?"0":""},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.sel(e,i)}}},[t._v(t._s(e.value))]):t._e()})),1)],1),n("v-uni-view",{staticClass:"bot"},[n("v-uni-view",{staticClass:"left"},[n("v-uni-view",{staticClass:"price"},[t._v("¥"+t._s(t.totalPrice.toFixed(0)))]),n("v-uni-image",{attrs:{src:"/static/index/arrDown.png",mode:""}})],1),t.orderSuc?n("v-uni-button",{staticClass:"right",attrs:{"open-type":"share",plain:!0}},[t._v("分享")]):n("v-uni-view",{staticClass:"right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmConfig.apply(void 0,arguments)}}},[t._v("确认配置")])],1),n("u-popup",{attrs:{show:t.showFixInfo,round:"10"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"topBar"},[n("v-uni-view",{staticClass:"left"}),n("v-uni-view",{staticClass:"cen"},[t._v("信息填写")]),n("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showFixInfo=!1}}},[n("u-icon",{attrs:{name:"close"}})],1)],1),n("v-uni-view",{staticClass:"pupopCon"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"label"},[t._v("收货人")]),n("u--input",{attrs:{clearable:!0,placeholder:"请输入收货人",border:"surround"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"label"},[t._v("电话")]),n("u--input",{attrs:{clearable:!0,placeholder:"请输入电话",border:"surround"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1),n("v-uni-view",{staticClass:"item",staticStyle:{"margin-bottom":"24rpx",height:"auto"}},[n("v-uni-view",{staticClass:"label"},[t._v("收货地址")]),n("u--textarea",{attrs:{placeholder:"请输入收货地址"},model:{value:t.addr,callback:function(e){t.addr=e},expression:"addr"}})],1),n("v-uni-view",{staticClass:"item",staticStyle:{"margin-bottom":"64rpx"}},[n("v-uni-view",{staticClass:"label"},[t._v("备注")]),n("u--input",{attrs:{clearable:!0,placeholder:"请输入备注",border:"surround"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}})],1),n("v-uni-button",{staticClass:"orderBtn",attrs:{"open-type":"share",plain:!0}},[t._v("确认下单")])],1)],1)],1)},o=[]},c9a3:function(t,e,n){"use strict";n.r(e);var i=n("9436"),a=n("8aa0");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("6d6c");var s=n("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"4014b848",null,!1,i["a"],void 0);e["default"]=r.exports}}]);
|