1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-customNoMian_step2-index"],{"24dd":function(e,t,a){"use strict";a.r(t);var n=a("7c2b"),i=a("f7a0");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("6c61");var s=a("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"3e206f1c",null,!1,n["a"],void 0);t["default"]=r.exports},"6c61":function(e,t,a){"use strict";var n=a("e59a"),i=a.n(n);i.a},"7c2b":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.selKj.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.selXl.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.selBb.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",on:{click:function(t){arguments[0]=t=e.$handleEvent(t)}}},[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"},[e.orderSuc?a("v-uni-button",{staticClass:"btn",attrs:{"open-type":"share",plain:!0}},[e._v("分享")]):a("v-uni-view",{staticClass:" btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showFixInfo=!0}}},[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),e.close.apply(void 0,arguments)},open:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}}},[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.showFixInfo=!1}}},[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=[]},"8f55":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"),c={components:{},data:function(){return{picUrl:this.$picUrl,picBase:this.$picBase,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,topPic:""}},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.selKj=o.data.config.space_data,t.selPp=o.data.config.brand_data,t.selXl=o.data.config.series_data,t.selBb=o.data.config.version_data):uni.showToast({title:o.message,icon:"none"}),a.next=21;break;case 14: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 21: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=16;break}if("button"!==e.from&&"menu"!==e.from){a.next=16;break}if(n=/^[1][3,4,5,7,8,9][0-9]{9}$/,!t.phone||n.test(t.phone)){a.next=5;break}return a.abrupt("return",t.$toast("手机号格式不正确"));case 5:return a.next=7,(0,s.postOrderReq)({address:t.addr,phone:t.phone,name:t.name,remark:t.remark,config_id:t.pConfig,type:1});case 7:if(o=a.sent,0!=o.code){a.next=15;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/customNoMian_step2/index?orderId="+t.orderId,mpId:t.$appId,type:t.$shareType});case 15:uni.showToast({title:o.message,icon:"none"});case 16:case"end":return a.stop()}}),a)})))()},methods:{back:function(){uni.navigateBack()},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.pConfig,type:1}),t.next=14,(0,s.postOrderReq)({address:e.addr,phone:e.phone,name:e.name,remark:e.remark,config_id:e.pConfig,type:1});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)})))()}}};t.default=c},e59a:function(e,t,a){var n=a("f99b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("0f5a8f1b",n,!0,{sourceMap:!1,shadowMode:!1})},f7a0:function(e,t,a){"use strict";a.r(t);var n=a("8f55"),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},f99b:function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */[data-v-3e206f1c] uni-button::after{border:none!important}[data-v-3e206f1c] uni-button{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500}.orderBtn[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#fff;background:#333;border-radius:%?4?%}.page[data-v-3e206f1c]{padding-bottom:%?208?%}.topImg[data-v-3e206f1c]{width:100%;height:%?1124?%;border-radius:0 %?0?% 0 %?40?%;margin-bottom:%?60?%}.cen[data-v-3e206f1c]{position:relative;padding-left:%?40?%;font-size:%?36?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.cen .water[data-v-3e206f1c]{width:%?714?%;height:%?50?%;position:absolute;top:%?-24?%;left:0}.cen .halfC[data-v-3e206f1c]{width:%?52?%;height:%?56?%;position:absolute;top:%?-18?%;left:%?16?%}.parmasBox[data-v-3e206f1c]{padding:0 %?32?%}.parmasBox .con[data-v-3e206f1c]{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-3e206f1c]{display:flex;justify-content:space-between;margin-bottom:%?30?%}.parmasBox .con .top .item .name[data-v-3e206f1c]{font-size:%?28?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.parmasBox .con .top .item .des[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.parmasBox .con .top .item[data-v-3e206f1c]:last-child{margin-bottom:%?0?%}.parmasBox .con .type .top2[data-v-3e206f1c]{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-3e206f1c]{padding-left:%?5?%}.parmasBox .con .type .list[data-v-3e206f1c]{display:flex;flex-wrap:wrap}.parmasBox .con .type .list .item[data-v-3e206f1c]{margin-right:%?32?%}.parmasBox .con .type .list .item uni-image[data-v-3e206f1c]{width:%?128?%;height:%?128?%}.parmasBox .con .type .list .item .name[data-v-3e206f1c]{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-3e206f1c]:nth-of-type(4n){margin-right:0}.part2[data-v-3e206f1c]{font-size:%?36?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333;margin-top:%?48?%}.btnBox[data-v-3e206f1c]{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-3e206f1c]{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-3e206f1c]{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-3e206f1c]{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-3e206f1c]{display:flex;align-items:center}.bot .left .price[data-v-3e206f1c]{font-size:%?42?%;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#333}.bot .left uni-image[data-v-3e206f1c]{width:%?23?%;height:%?12?%;margin-left:%?16?%}.bot .right[data-v-3e206f1c]{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-3e206f1c]{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-3e206f1c]{position:fixed;width:%?128?%;height:%?128?%;right:%?18?%;bottom:%?188?%}.rule[data-v-3e206f1c]{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-3e206f1c]{width:%?32?%;height:%?32?%;margin-bottom:%?8?%}.rule .txt[data-v-3e206f1c]{font-size:%?16?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.topBar[data-v-3e206f1c]{height:%?112?%;background:#f9f9f9;border-radius:%?24?% %?24?% %?0?% %?0?%;display:flex;align-items:center;justify-content:space-between}.topBar .left[data-v-3e206f1c]{width:10%;display:flex;align-items:center;justify-content:center;height:100%}.topBar .cen[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.topBar .close[data-v-3e206f1c]{width:%?24?%;height:%?24?%;color:#666;width:10%;display:flex;align-items:center;justify-content:center;height:100%}.pupopCon[data-v-3e206f1c]{padding:%?48?% %?32?%}.pupopCon .item[data-v-3e206f1c]{height:%?184?%}.pupopCon .item .label[data-v-3e206f1c]{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-3e206f1c]{height:%?112?%;background:#f9f9f9;border-radius:%?24?% %?24?% %?0?% %?0?%;display:flex;align-items:center;justify-content:space-between}.topBar .left[data-v-3e206f1c]{width:10%;display:flex;align-items:center;justify-content:center;height:100%}.topBar .cen[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Bold,PingFang-SC;font-weight:700;color:#333}.topBar .close[data-v-3e206f1c]{width:%?24?%;height:%?24?%;color:#666;width:10%;display:flex;align-items:center;justify-content:center;height:100%}.pupopCon[data-v-3e206f1c]{padding:%?48?% %?32?%;box-sizing:border-box}.pupopCon .item[data-v-3e206f1c]{margin-bottom:%?40?%;box-sizing:border-box;height:auto}.pupopCon .item .top[data-v-3e206f1c]{display:flex;justify-content:space-between}.pupopCon .item .top .name[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.pupopCon .item .top .info[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}.pupopCon .item .bottom[data-v-3e206f1c]{display:flex;justify-content:space-between;padding-left:%?24?%}.pupopCon .item .bottom .name[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#666}.pupopCon .item .bottom .info[data-v-3e206f1c]{font-size:%?32?%;font-family:PingFang-SC-Medium,PingFang-SC;font-weight:500;color:#333}',""]),e.exports=t}}]);
|