(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d81d038"],{"563c":function(t,e,s){t.exports=s.p+"h5/img/noAddress.d76a1cef.png"},"5f10":function(t,e,s){t.exports=s.p+"h5/img/noCoupon.e524084b.png"},"6c69":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"order-submission"},[s("div",{staticClass:"allAddress",style:t.store_self_mention?"":"padding-top: 0.2rem"},[s("div",{staticClass:"nav acea-row"},[t.store_self_mention?s("div",{staticClass:"item font-color-red",class:0===t.shipping_type?"on":"on2",on:{click:function(e){return t.addressType(0)}}}):t._e(),t.store_self_mention?s("div",{staticClass:"item font-color-red",class:1===t.shipping_type?"on":"on2",on:{click:function(e){return t.addressType(1)}}}):t._e()]),0===t.shipping_type?s("div",{staticClass:"address acea-row row-between-wrapper",on:{click:t.addressTap}},[t.addressInfo.real_name?s("div",{staticClass:"addressCon"},[s("div",{staticClass:"name"},[t._v("\n "+t._s(t.addressInfo.real_name)+"\n "),s("span",{staticClass:"phone"},[t._v(t._s(t.addressInfo.phone))])]),s("div",[t.addressInfo.is_default?s("span",{staticClass:"default font-color-red"},[t._v("[默认]")]):t._e(),t._v("\n "+t._s(t.addressInfo.province)+t._s(t.addressInfo.city)+t._s(t.addressInfo.district)+t._s(t.addressInfo.detail)+"\n ")])]):s("div",{staticClass:"addressCon"},[s("div",{staticClass:"setaddress"},[t._v("设置收货地址")])]),s("div",{staticClass:"iconfont icon-jiantou"})]):s("div",{staticClass:"address acea-row row-between-wrapper",on:{click:t.showStoreList}},[t.storeItem?s("div",{staticClass:"addressCon"},[s("div",{staticClass:"name"},[t._v("\n "+t._s(t.storeItem.name)+"\n "),s("span",{staticClass:"phone",domProps:{textContent:t._s(t.storeItem.phone)}})]),t.storeItem.address&&t.storeItem.detailed_address?s("div",{domProps:{textContent:t._s(t.storeItem.address+","+t.storeItem.detailed_address)}}):t._e()]):t._e(),s("div",{staticClass:"iconfont icon-jiantou"})]),t._m(0)]),s("OrderGoods",{attrs:{evaluate:0,cartInfo:t.orderGroupInfo.cartInfo}}),s("div",{staticClass:"wrapper"},[!1===t.deduction?s("div",{staticClass:"item acea-row row-between-wrapper",on:{click:t.couponTap}},[s("div",[t._v("优惠券")]),s("div",{staticClass:"discount"},[t._v("\n "+t._s(t.usableCoupon.coupon_title||"请选择")+"\n "),s("span",{staticClass:"iconfont icon-jiantou"})])]):t._e(),!1===t.deduction?s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("积分抵扣")]),s("div",{staticClass:"discount"},[s("div",{staticClass:"select-btn"},[s("div",{staticClass:"checkbox-wrapper"},[s("label",{staticClass:"well-check"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.useIntegral,expression:"useIntegral"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.useIntegral)?t._i(t.useIntegral,null)>-1:t.useIntegral},on:{change:function(e){var s=t.useIntegral,i=e.target,n=!!i.checked;if(Array.isArray(s)){var a=null,o=t._i(s,a);i.checked?o<0&&(t.useIntegral=s.concat([a])):o>-1&&(t.useIntegral=s.slice(0,o).concat(s.slice(o+1)))}else t.useIntegral=n}}}),s("i",{staticClass:"icon"}),s("span",{staticClass:"integral"},[t._v("\n 当前积分\n "),s("span",{staticClass:"num font-color-red"},[t._v("\n "+t._s(t.userInfo.integral||0)+"\n ")])])])])])])]):t._e(),t.orderGroupInfo.priceGroup.vipPrice>0&&t.userInfo.vip&&0==t.pinkId&&0==t.orderGroupInfo.bargain_id&&0==t.orderGroupInfo.combination_id&&0==t.orderGroupInfo.seckill_id?s("div",{staticClass:"item acea-row row-between-wrapper"},[t._v("\n 会员优惠\n "),s("div",{staticClass:"discount"},[t._v("-¥"+t._s(t.orderGroupInfo.priceGroup.vipPrice))])]):t._e(),0===t.shipping_type?s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("快递费用")]),s("div",{staticClass:"discount"},[t._v("\n "+t._s(t.orderPrice.pay_postage>0?"¥"+t.orderPrice.pay_postage:"免运费")+"\n ")])]):s("div",[s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("联系人")]),s("div",{staticClass:"discount"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.contacts,expression:"contacts"}],attrs:{type:"text",placeholder:"请填写您的联系姓名"},domProps:{value:t.contacts},on:{input:function(e){e.target.composing||(t.contacts=e.target.value)}}})])]),s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("联系电话")]),s("div",{staticClass:"discount"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.contactsTel,expression:"contactsTel"}],attrs:{type:"text",placeholder:"请填写您的联系电话"},domProps:{value:t.contactsTel},on:{input:function(e){e.target.composing||(t.contactsTel=e.target.value)}}})])])]),s("div",{staticClass:"item"},[s("div",[t._v("备注信息")]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.mark,expression:"mark"}],attrs:{placeholder:"请添加备注(150字以内)"},domProps:{value:t.mark},on:{input:function(e){e.target.composing||(t.mark=e.target.value)}}})])]),s("div",{staticClass:"wrapper"},[s("div",{staticClass:"item"},[s("div",[t._v("支付方式")]),s("div",{staticClass:"list"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isWeixin,expression:"isWeixin"}],staticClass:"payItem acea-row row-middle",class:"weixin"===t.active?"on":"",on:{click:function(e){return t.payItem("weixin")}}},[s("div",{staticClass:"name acea-row row-center-wrapper"},[s("div",{staticClass:"iconfont icon-weixin2",class:"weixin"===t.active?"bounceIn":""}),t._v("\n 微信支付\n ")]),s("div",{staticClass:"tip"},[t._v("微信快捷支付")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.isWeixin,expression:"!isWeixin"}],staticClass:"payItem acea-row row-middle",class:"weixin"===t.active?"on":"",on:{click:function(e){return t.payItem("weixin")}}},[s("div",{staticClass:"name acea-row row-center-wrapper"},[s("div",{staticClass:"iconfont icon-weixin2",class:"weixin"===t.active?"bounceIn":""}),t._v("\n 微信支付\n ")]),s("div",{staticClass:"tip"},[t._v("微信快捷支付")])]),s("div",{staticClass:"payItem acea-row row-middle",class:"yue"===t.active?"on":"",on:{click:function(e){return t.payItem("yue")}}},[s("div",{staticClass:"name acea-row row-center-wrapper"},[s("div",{staticClass:"iconfont icon-icon-test",class:"yue"===t.active?"bounceIn":""}),t._v("\n 余额支付\n ")]),s("div",{staticClass:"tip"},[t._v("可用余额:"+t._s(t.userInfo.now_money||0))])]),1===t.offlinePayStatus&&!1===t.deduction&&0===t.shipping_type?s("div",{staticClass:"payItem acea-row row-middle",class:"offline"===t.active?"on":"",on:{click:function(e){return t.payItem("offline")}}},[s("div",{staticClass:"name acea-row row-center-wrapper"},[s("div",{staticClass:"iconfont icon-yinhangqia",class:"offline"===t.active?"bounceIn":""}),t._v("\n 线下支付\n ")]),s("div",{staticClass:"tip"},[t._v("线下方便支付")])]):t._e()])])]),s("div",{staticClass:"moneyList"},[void 0!==t.orderPrice.total_price?s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("商品总价:")]),s("div",{staticClass:"money"},[t._v("¥"+t._s(t.orderPrice.total_price))])]):t._e(),t.orderPrice.pay_postage>0?s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("运费:")]),s("div",{staticClass:"money"},[t._v("+¥"+t._s(t.orderPrice.pay_postage))])]):t._e(),t.orderPrice.coupon_price>0?s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("优惠券抵扣:")]),s("div",{staticClass:"money"},[t._v("-¥"+t._s(t.orderPrice.coupon_price))])]):t._e(),t.orderPrice.deduction_price>0?s("div",{staticClass:"item acea-row row-between-wrapper"},[s("div",[t._v("积分抵扣:")]),s("div",{staticClass:"money"},[t._v("-¥"+t._s(t.orderPrice.deduction_price))])]):t._e()]),s("div",{staticStyle:{height:"1.2rem"}}),s("div",{staticClass:"footer acea-row row-between-wrapper"},[s("div",[t._v("\n 合计:\n "),s("span",{staticClass:"font-color-red"},[t._v("¥"+t._s(t.orderPrice.pay_price))])]),s("div",{staticClass:"settlement",on:{click:t.createOrder}},[t._v("立即结算")])]),s("CouponListWindow",{attrs:{price:t.orderPrice.total_price,checked:t.usableCoupon.id,cartid:t.cartid},on:{couponchange:function(e){return t.changecoupon(e)},checked:t.changeCoupon},model:{value:t.showCoupon,callback:function(e){t.showCoupon=e},expression:"showCoupon"}}),s("AddressWindow",{ref:"mychild",attrs:{checked:t.addressInfo.id},on:{checked:t.changeAddress,redirect:t.addressRedirect},model:{value:t.showAddress,callback:function(e){t.showAddress=e},expression:"showAddress"}})],1)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"line"},[i("img",{attrs:{src:s("afa3")}})])}],a=(s("5ab2"),s("6d57"),s("e10e"),s("f548"),s("cc57"),s("289c")),o=s("713c"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"coupon-list-window",class:!0===t.value?"on":""},[s("div",{staticClass:"title"},[t._v("\n 优惠券\n "),s("span",{staticClass:"iconfont icon-guanbi",on:{click:t.close}})]),t.couponList.length>0?s("div",[s("div",{staticClass:"coupon-list"},t._l(t.couponList,(function(e){return s("div",{key:e.id,staticClass:"item acea-row row-center-wrapper",on:{click:function(s){return t.click(e)}}},[s("div",{staticClass:"money"},[s("div",[t._v("\n ¥"),s("span",{staticClass:"num"},[t._v(t._s(e.coupon_price))])]),s("div",{staticClass:"pic-num"},[t._v("满"+t._s(e.use_min_price)+"元可用")])]),s("div",{staticClass:"text"},[s("div",{staticClass:"condition line1"},[0===e.type?s("span",{staticClass:"line-title"},[t._v("通用劵")]):1===e.type?s("span",{staticClass:"line-title"},[t._v("品类券")]):s("span",{staticClass:"line-title"},[t._v("商品券")]),s("span",[t._v(t._s(e.title))])]),s("div",{staticClass:"data acea-row row-between-wrapper"},[s("div",[t._v("\n "+t._s(e.start_time?e.start_time+"-":"")+t._s(e.end_time)+"\n ")]),t.checked===e.id?s("div",{staticClass:"iconfont icon-xuanzhong1 font-color-red"}):s("div",{staticClass:"iconfont icon-weixuanzhong"})])])])})),0),s("div",{staticClass:"couponNo bg-color-red",on:{click:t.couponNo}},[t._v("不使用优惠券")])]):t._e(),!t.couponList.length&&t.loaded?s("div",[t._m(0)]):t._e()]),s("div",{staticClass:"mask",attrs:{hidden:!1===t.value},on:{touchmove:function(t){t.preventDefault()},click:t.close}})])},c=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pictrue"},[i("img",{staticClass:"image",attrs:{src:s("5f10")}})])}],d=(s("163d"),s("f8b7")),u={name:"CouponListWindow",props:{value:Boolean,checked:Number,price:{type:[Number,String],default:void 0},cartid:{type:String,default:""}},data:function(){return{couponList:[],loaded:!1,cartids:this.cartid}},watch:{cartid:function(t){void 0!==t&&null!=t&&(this.cartids=t,this.getCoupon())},price:function(t){void 0!==t&&null!=t&&this.getCoupon()}},mounted:function(){},methods:{close:function(){this.$emit("input",!1),this.$emit("close")},getCoupon:function(){var t=this,e={cartId:this.cartids};Object(d["e"])(this.price,e).then((function(e){t.couponList=e.data,t.loaded=!0})).catch((function(e){t.$dialog.error(e.msg)}))},click:function(t){this.$emit("checked",t),this.$emit("input",!1)},couponNo:function(){this.$emit("checked",null),this.$emit("input",!1)}}},l=u,p=(s("c1cb"),s("623f")),f=Object(p["a"])(l,r,c,!1,null,"59c5da06",null),v=f.exports,m=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"address-window",class:!0===t.value?"on":""},[i("div",{staticClass:"title"},[t._v("\n 选择地址"),i("span",{staticClass:"iconfont icon-guanbi",on:{click:t.closeAddress}})]),t.addressList.length?i("div",{staticClass:"list"},t._l(t.addressList,(function(e,s){return i("div",{key:s,staticClass:"item acea-row row-between-wrapper",class:e.id===t.checked?"font-color-red":"",on:{click:function(e){return t.tapAddress(s)}}},[i("span",{staticClass:"iconfont icon-ditu",class:e.id===t.checked?"font-color-red":""}),i("div",{staticClass:"addressTxt"},[i("div",{staticClass:"name",class:e.id===t.checked?"font-color-red":""},[t._v("\n "+t._s(e.real_name)),i("span",{staticClass:"phone"},[t._v(t._s(e.phone))])]),i("div",{staticClass:"line1"},[t._v("\n "+t._s(e.province)+t._s(e.city)+t._s(e.district)+t._s(e.detail)+"\n ")])]),i("span",{staticClass:"iconfont icon-complete",class:e.id===t.checked?"font-color-red":""})])})),0):t._e(),t.addressList.length<1?i("div",{staticClass:"pictrue"},[i("img",{staticClass:"image",attrs:{src:s("563c")}})]):t._e(),i("div",{staticClass:"addressBnt bg-color-red",on:{click:t.goAddressPages}},[t._v("\n 新加地址\n ")])]),i("div",{staticClass:"mask",attrs:{hidden:!1===t.value},on:{touchmove:function(t){t.preventDefault()},click:t.closeAddress}})])},h=[],_=s("c24f"),w={name:"AddressWindow",props:{value:Boolean,checked:Number},data:function(){return{addressList:[],current:0,cartId:0,pinkId:0,couponId:0}},mounted:function(){},methods:{getAddressList:function(){var t=this;Object(_["f"])().then((function(e){t.addressList=e.data}))},closeAddress:function(){this.$emit("input",!1)},goAddressPages:function(){this.$router.push({path:"/user/add_address"}),this.$emit("redirect")},tapAddress:function(t){this.$emit("checked",this.addressList[t]),this.$emit("input",!1)}}},g=w,C=Object(p["a"])(g,m,h,!1,null,null,null),I=C.exports,y=s("73f5"),b=s("74f9"),k=s("ed08"),$=s("08c1"),P=s("d0a4");function x(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function O(t){for(var e=1;e