(window.webpackJsonp=window.webpackJsonp||[]).push([[24,6],{407:function(t,e,r){var content=r(409);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("03051d40",content,!0,{sourceMap:!1})},408:function(t,e,r){"use strict";r(407)},409:function(t,e,r){var o=r(13)(!1);o.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=o},410:function(t,e,r){"use strict";r.r(e);r(404),r(68),r(252);var o={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:500},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},n=(r(408),r(8)),component=Object(n.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?r("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),r("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?r("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},421:function(t,e,r){var content=r(441);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("0290099d",content,!0,{sourceMap:!1})},435:function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var o=r(117);var n=r(171);function d(t){return function(t){if(Array.isArray(t))return Object(o.a)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},439:function(t,e,r){t.exports=r.p+"img/coupons_img_receive.d691393.png"},440:function(t,e,r){"use strict";r(421)},441:function(t,e,r){var o=r(13),n=r(169),d=r(442),c=r(443),l=o(!1),f=n(d),v=n(c);l.push([t.i,".coupons-list[data-v-686d083c]{padding:0 18px;flex-wrap:wrap;position:relative}.coupons-list .item[data-v-686d083c]{margin-bottom:20px;margin-right:16px;position:relative;cursor:pointer}.coupons-list .item .info[data-v-686d083c]{padding:0 10px;background:url("+f+") no-repeat;width:240px;height:80px;background-size:100%}.coupons-list .item .info.gray[data-v-686d083c]{background-image:url("+v+")}.coupons-list .item .info .info-hd[data-v-686d083c]{overflow:hidden}.coupons-list .item .tips[data-v-686d083c]{position:relative;background-color:#f2f2f2;height:30px;padding:0 8px}.coupons-list .item .tips .tips-con[data-v-686d083c]{width:100%;left:0;background-color:#f2f2f2;position:absolute;top:30px;padding:10px;z-index:99}.coupons-list .item .receice[data-v-686d083c]{position:absolute;top:0;right:0;width:58px;height:45px}.coupons-list .item .choose[data-v-686d083c]{position:absolute;top:0;right:0;background-color:#ffe72c;color:#ff2c3c;padding:1px 5px}.coupons-list .more[data-v-686d083c]{position:absolute;bottom:20px;cursor:pointer;right:30px}",""]),t.exports=l},442:function(t,e,r){t.exports=r.p+"img/bg_coupon_s.3f57cfd.png"},443:function(t,e,r){t.exports=r.p+"img/bg_coupon.b22691e.png"},445:function(t,e,r){"use strict";r.r(e);r(20),r(16),r(19),r(28),r(29);var o=r(435),n=r(3),d=r(6),c=(r(47),r(404),r(17),r(57),r(10));function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var i=1;i=4&&(e.isShow=!1)})),this.couponsList=Object(o.a)(this.list)}}),watch:{list:{handler:function(t){var e=this;t.length&&4==this.type&&(this.id=t[0].id,this.selectId=this.id,this.$emit("use",this.id));var r=t.map((function(t){return 0}));this.showTips=r,this.list.forEach((function(t,r){t.isShow=!0,e.showMore&&r>=4&&(t.isShow=!1)})),this.couponsList=this.list},immediate:!0,deep:!0}}},h=(r(440),r(8)),component=Object(h.a)(v,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"coupons-list row"},[t._l(t.couponsList,(function(e,n){return[o("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"item.isShow"}],key:n,staticClass:"item",on:{"!click":function(r){return t.onHandle(e.id)}}},[o("div",{class:["info white",{gray:2==t.type||1==t.type||e.is_get}]},[o("div",{staticClass:"info-hd row"},[o("div",[o("price-formate",{attrs:{price:e.money,"first-size":38,"second-size":38}})],1),t._v(" "),o("div",{staticClass:"ml8 flex1"},[o("div",{staticClass:"line1"},[t._v(t._s(e.name))]),t._v(" "),o("div",{staticClass:"xs line1"},[t._v(t._s(e.use_condition))])])]),t._v(" "),o("div",{staticClass:"info-time xs"},[t._v(t._s(e.use_time_tips))])]),t._v(" "),o("div",{staticClass:"tips row-between",on:{click:function(e){return e.stopPropagation(),t.onShowTips(n)}}},[o("div",{staticClass:"muted xs"},[t._v(t._s(e.coupon_type))]),t._v(" "),e.tips?o("div",[o("i",{class:t.showTips[n]?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v(" "),e.tips&&t.showTips[n]?o("div",{staticClass:"tips-con xs lighter"},[t._v("\n "+t._s(e.tips)+"\n ")]):t._e()]):t._e(),t._v(" "),3!=t.type||e.is_get?t._e():o("div",{staticClass:"primary sm"},[t._v("\n 立即领取\n ")])]),t._v(" "),e.is_get?o("img",{staticClass:"receice",attrs:{src:r(439),alt:""}}):t._e(),t._v(" "),4==t.type&&t.id==e.id?o("div",{staticClass:"choose xs"},[t._v("已选择")]):t._e()])]})),t._v(" "),t.showMore&&t.list.length>4?o("div",{staticClass:"more muted",on:{click:t.changeShow}},[t._v("\n "+t._s(t.isMore?"收起":"更多")+"\n "),o("i",{class:t.isMore?"el-icon-arrow-up":"el-icon-arrow-down"})]):t._e()],2)}),[],!1,null,"686d083c",null);e.default=component.exports;installComponents(component,{PriceFormate:r(410).default})},447:function(t,e,r){var content=r(466);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("4b71c4bc",content,!0,{sourceMap:!1})},465:function(t,e,r){"use strict";r(447)},466:function(t,e,r){var o=r(13)(!1);o.push([t.i,".address-list[data-v-1d5a717e] .el-dialog__body{height:460px;overflow-y:auto}.address-list .list[data-v-1d5a717e]{margin:0 auto;width:800px}.address-list .list .item[data-v-1d5a717e]{position:relative;cursor:pointer;height:100px;padding:16px 150px 16px 20px;border:1px solid #e5e5e5;border-radius:2px}.address-list .list .item.active[data-v-1d5a717e]{border-color:#ff2c3c}.address-list .list .item .oprate[data-v-1d5a717e]{position:absolute;right:20px;bottom:9px}.address-list .dialog-footer[data-v-1d5a717e]{text-align:center}.address-list .dialog-footer .el-button[data-v-1d5a717e]{width:160px}",""]),t.exports=o},478:function(t,e,r){var content=r(517);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(14).default)("b1f5e2d2",content,!0,{sourceMap:!1})},508:function(t,e,r){"use strict";r.r(e);var o=r(3),n=(r(47),{components:{},props:{value:{type:Boolean,default:!1}},data:function(){return{showDialog:!1,showAddressAdd:!1,addressList:[],selectId:0,editId:""}},methods:{getAddress:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var r,code,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("user_address/lists");case 2:r=e.sent,code=r.code,data=r.data,1==code&&(t.addressList=data);case 6:case"end":return e.stop()}}),e)})))()},setDefault:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o,code,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.$post("user_address/setDefault",{id:t});case 2:o=r.sent,code=o.code,o.data,n=o.msg,1==code&&(e.$message({message:n,type:"success"}),e.getAddress());case 7:case"end":return r.stop()}}),r)})))()},onConfirm:function(){this.$emit("confirm",this.selectId),this.showDialog=!1}},watch:{value:function(t){this.showDialog=t,1==t&&this.getAddress()},showDialog:function(t){this.$emit("input",t)}}}),d=(r(465),r(8)),component=Object(d.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"address-list"},[r("el-dialog",{attrs:{title:"更换地址",visible:t.showDialog,width:"900px"},on:{"update:visible":function(e){t.showDialog=e}}},[r("div",{staticClass:"list black"},t._l(t.addressList,(function(e,o){return r("div",{key:o,class:["item mb16",{active:e.id==t.selectId}],on:{click:function(r){t.selectId=e.id}}},[r("div",[r("span",{staticClass:"bold"},[t._v(t._s(e.contact))]),t._v("\n "+t._s(e.telephone)+"\n "),e.is_default?r("el-tag",{attrs:{size:"mini",type:"warning",effect:"dark"}},[t._v("默认")]):t._e()],1),t._v(" "),r("div",{staticClass:"lighter mt8"},[t._v("\n "+t._s(e.province)+" "+t._s(e.city)+" "+t._s(e.district)+"\n "+t._s(e.address)+"\n ")]),t._v(" "),r("div",{staticClass:"oprate lighter row"},[r("div",{staticClass:"mr16",on:{click:function(r){r.stopPropagation(),t.editId=e.id,t.showAddressAdd=!0}}},[t._v("\n 修改\n ")]),t._v(" "),r("div",{on:{click:function(r){return r.stopPropagation(),t.setDefault(e.id)}}},[t._v("设为默认")])])])})),0),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.onConfirm}},[t._v("确认")]),t._v(" "),r("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取消")])],1)]),t._v(" "),r("address-add",{attrs:{aid:t.editId},on:{success:t.getAddress},model:{value:t.showAddressAdd,callback:function(e){t.showAddressAdd=e},expression:"showAddressAdd"}})],1)}),[],!1,null,"1d5a717e",null);e.default=component.exports;installComponents(component,{AddressAdd:r(461).default})},516:function(t,e,r){"use strict";r(478)},517:function(t,e,r){var o=r(13)(!1);o.push([t.i,".confirm-order[data-v-7af0db6b]{padding:16px 0}.confirm-order .title[data-v-7af0db6b]{padding:12px 20px;font-weight:700}.confirm-order .title>i[data-v-7af0db6b]{cursor:pointer}.confirm-order .order-hd .address[data-v-7af0db6b]{padding:10px 20px 22px}.confirm-order .order-hd .address .address-con[data-v-7af0db6b]{position:relative;cursor:pointer;width:800px;height:100px;padding:16px 150px 16px 20px;border:1px solid #ff2c3c;border-radius:2px}.confirm-order .order-hd .address .address-con:hover .oprate[data-v-7af0db6b]{display:flex}.confirm-order .order-hd .address .address-con .oprate[data-v-7af0db6b]{display:none;position:absolute;right:20px;bottom:9px}.confirm-order .order-hd .address .address-add[data-v-7af0db6b]{cursor:pointer;width:320px;height:100px;border:1px dashed #e5e5e5}.confirm-order .order-con .goods[data-v-7af0db6b]{border-bottom:1px dashed #e5e5e5}.confirm-order .order-con .goods .goods-hd[data-v-7af0db6b]{height:40px;margin:0 20px}.confirm-order .order-con .goods .goods-list .item[data-v-7af0db6b]{padding:10px 20px}.confirm-order .order-con .goods .info[data-v-7af0db6b]{width:500px}.confirm-order .order-con .goods .info .pictrue[data-v-7af0db6b]{margin-right:10px}.confirm-order .order-con .goods .info .pictrue .el-image[data-v-7af0db6b]{width:72px;height:72px}.confirm-order .order-con .goods .info .name[data-v-7af0db6b]{margin-bottom:10px}.confirm-order .order-con .goods .price[data-v-7af0db6b]{width:200px}.confirm-order .order-con .goods .num[data-v-7af0db6b]{width:250px}.confirm-order .order-con .goods .money[data-v-7af0db6b]{width:200px}.confirm-order .order-con .input .textarea[data-v-7af0db6b]{margin:0 20px;width:1000px}.confirm-order .order-con .integral .check-box[data-v-7af0db6b]{padding:0 20px 12px}.confirm-order .order-footer[data-v-7af0db6b]{margin-top:2px;padding:25px 20px;justify-content:flex-end}.confirm-order .order-footer .money>div[data-v-7af0db6b]{text-align:right}.confirm-order .order-footer .money>div[data-v-7af0db6b]:first-of-type{width:80px;margin-right:50px}.confirm-order .order-footer .money>div[data-v-7af0db6b]:last-of-type{flex:1}.confirm-order .order-footer .btn[data-v-7af0db6b]{width:152px;height:44px;margin-top:18px;border-radius:2px;cursor:pointer}",""]),t.exports=o},598:function(t,e,r){"use strict";r.r(e);r(20),r(16),r(19),r(28),r(17),r(29);var o=r(6),n=r(3),d=(r(87),r(404),r(68),r(84),r(47),r(10));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function l(t){for(var i=1;i0&&void 0!==t[0]?t[0]:"info",n={action:o,goods:e.goods,use_integral:Number(e.useIntegral),address_id:e.addressId,coupon_id:e.couponId},"submit"==o&&(n.remark=e.userRemark,n.type=e.type),r.next=5,e.$post("order/buy",n);case 5:d=r.sent,data=d.data,1==d.code&&("info"==o?(address=data.address,e.orderInfo=data,e.address=address):"submit"==o&&(e.getPublicData(),e.$router.replace({path:"/payment",query:{id:data.order_id}})));case 9:case"end":return r.stop()}}),r)})))()}})},v=(r(516),r(8)),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"confirm-order"},[r("div",{staticClass:"order-hd bg-white mb16"},[r("div",{staticClass:"title lg"},[t._v("收货地址")]),t._v(" "),r("div",{staticClass:"address row-between"},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.address.contact,expression:"address.contact"}],staticClass:"address-con"},[r("div",[r("span",{staticClass:"bold"},[t._v(t._s(t.address.contact))]),t._v("\n "+t._s(t.address.telephone)+"\n "),t.address.is_default?r("el-tag",{attrs:{size:"mini",type:"warning",effect:"dark"}},[t._v("默认")]):t._e()],1),t._v(" "),r("div",{staticClass:"lighter mt8"},[t._v("\n "+t._s(t.address.province)+" "+t._s(t.address.city)+" "+t._s(t.address.district)+"\n "+t._s(t.address.address)+"\n ")]),t._v(" "),r("div",{staticClass:"oprate primary row"},[r("div",{staticClass:"mr16",on:{click:function(e){return t.editAddress(t.address.id)}}},[t._v("修改")]),t._v(" "),r("div",{on:{click:function(e){t.showAddress=!0}}},[t._v("更换地址")])])]),t._v(" "),r("div",{staticClass:"address-add row-center",on:{click:function(e){return t.editAddress("")}}},[t._v("\n + 添加地址\n ")])])]),t._v(" "),r("div",{staticClass:"order-con bg-white"},[r("div",{staticClass:"goods mb16"},[r("div",{staticClass:"title lg"},[t._v("商品信息")]),t._v(" "),t._m(0),t._v(" "),r("div",{staticClass:"goods-list"},t._l(t.orderInfo.goods_lists,(function(e,o){return r("div",{key:o,staticClass:"item row"},[r("div",{staticClass:"info row"},[r("div",{staticClass:"pictrue flexnone"},[r("el-image",{attrs:{src:e.image_str}})],1),t._v(" "),r("div",[r("div",{staticClass:"name line2"},[e.is_seckill?r("el-tag",{attrs:{size:"mini",effect:"plain"}},[t._v("秒杀")]):t._e(),t._v("\n "+t._s(e.goods_name)+"\n ")],1),t._v(" "),r("div",{staticClass:"muted"},[t._v(t._s(e.spec_value_str))])])]),t._v(" "),r("div",{staticClass:"price row-center"},[r("price-formate",{attrs:{price:e.goods_price}})],1),t._v(" "),r("div",{staticClass:"num row-center"},[t._v("\n "+t._s(e.goods_num)+"\n ")]),t._v(" "),r("div",{staticClass:"money row-center"},[r("price-formate",{attrs:{price:e.sub_price}})],1)])})),0)]),t._v(" "),r("div",{staticClass:"input",staticStyle:{"padding-bottom":"16px"}},[r("div",{staticClass:"title"},[t._v("买家留言")]),t._v(" "),r("div",{staticClass:"textarea"},[r("el-input",{attrs:{type:"textarea",placeholder:"选填,给商家备注留言,100字以内",maxlength:"100",rows:3,"show-word-limit":"",resize:"none"},model:{value:t.userRemark,callback:function(e){t.userRemark=e},expression:"userRemark"}})],1)]),t._v(" "),0==t.orderInfo.order_type?r("div",{staticClass:"coupons"},[r("el-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[r("el-tab-pane",{attrs:{label:"可用优惠券("+t.coupon.usable.length+")"}},[t.coupon.usable.length?r("div",{staticClass:"coupons-con"},[r("coupons-list",{attrs:{list:t.coupon.usable,"show-more":!0,type:4},on:{use:t.useCoupon}})],1):r("div",{staticClass:"ml20",staticStyle:{"padding-bottom":"40px"}},[t._v("\n 暂无可用优惠券\n ")])]),t._v(" "),r("el-tab-pane",{attrs:{label:"不可用优惠券("+t.coupon.unusable.length+")"}},[t.coupon.unusable.length?r("div",{staticClass:"coupons-con"},[r("coupons-list",{attrs:{list:t.coupon.unusable,"show-more":!0,type:2}})],1):r("div",{staticClass:"ml20 mb20"},[t._v("暂无不可用优惠券")])])],1)],1):t._e(),t._v(" "),t.orderInfo.integral_switch?r("div",{staticClass:"integral"},[r("div",{staticClass:"title"},[t._v("\n 积分抵扣 "),r("i",{staticClass:"el-icon-question",on:{click:t.showTipsDialog}})]),t._v(" "),r("div",{staticClass:"row check-box"},[r("el-checkbox",{attrs:{disabled:t.orderInfo.user_integral