e4be1d0.js 54 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1e3:function(e,t,o){"use strict";o.r(t);o(12),o(16),o(17);var r=o(4),n=(o(29),o(14),o(90),o(34),o(36),o(6),o(47),o(22),o(92),o(11),o(48),o(13),o(24),o(93),o(178),o(40),o(5)),c=o(237);o(412);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}var l={data:function(){return{pay_way:[],order_ids:"",pay_sn:"",balance:0,money:"",uid:"",order_pay_id:0,buttons:[],typename:"",_root_tag:"",_optionsId:"",_goodsId:"",_total:"",_cart_ids:"",total_price:0,goodsInfo:{},order_data:{},dialogVisible:!1,isShowStreet:!1,district_select:[],districtVal:[],addressList:[],dispatch:[],selected:"",currentAddId:"",currentAddress:{},show_address:!0,choose_type:"",form:{address_id:"",username:"",mobile:"",city:"",address:"",province:"",district:"",isdefault:!1,streetName:""},district:[],props:{value:"v",children:"c",label:"n"},checkDeductionList:[],discount_amount_items:[],total_items:[],AgreementPay:"",agreementPay:!1,agreementPayShow:!1,note:[],service_fee:[],for_serviceFee_status:!1,service_fee_items:{},clicktag:0,coupons:[],popupCouponSpecs:!1,coupon_size:0,checkCouponList:[],use_coupon_size:0,isShowCoupon:!0,is_coupon_SELE:!1,coupons_temp:{},timeoutId:null,isCueCoupon:!1,openCueCoupon:!1,invoiceDialogVisible:!1,isShowInvoice:!0,showInvoiceTitle:"",invoicename:"",companyname:"",papery_status:"",electron_status:"",invoice_type:"",iscur:"1",invoice_list:{call:"",company_number:"",email:""},plugin_id:"",isNew:"1",siteDialogVisible:!1,show_domain:!1,shop_domain:"",authcode:"",count:"",timer:null,siteForm:{name:"",domain:"",mobile:""},member_name:"",member_card:"",showMyinfo:!1,popMyinfo:!1,explain_title:"",explain_content:"",mobileDialogVisible:!1,imgcode:"",mobileForm:{code:"",captcha:"",mobile:""},showChangeID:!1,changidInfo:{},domain:""}},components:{payBox:c.default},head:function(){return{title:"下单详情-".concat(this.basicSet.seo.title),meta:[{name:"keywords",content:"".concat(this.basicSet.shop_name,",").concat(this.basicSet.seo.keywords)},{name:"description",content:"".concat(this.basicSet.seo.description)}]}},mounted:function(){var e=this;this._root_tag=this.$route.query.tag,this._root_tag||setTimeout((function(){e.$router.go(-1)}),1e3),this.domain=document.domain,this.getDispatchMethod(),this.getParams(),window.localStorage.getItem("provinceData")?this.district=JSON.parse(window.localStorage.getItem("provinceData")):this._initAddressInfo(),this.getAddress()},computed:function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},Object(n.b)(["basicSet"])),methods:{_initAddressInfo:function(){var e=this;this.fun.$get("member.member-address.address",{},"正在获取").then((function(t){if(1==t.result){var o=[],r=[];t.data.province.map((function(e){o.push({v:e.id,n:e.areaname,c:[]})})),t.data.city.map((function(e){r.push({parentid:e.parentid,v:e.id,n:e.areaname,c:[]})})),t.data.district.map((function(e){r.map((function(t){e.parentid==t.v&&t.c.push({v:e.id,n:e.areaname})}))})),r.map((function(e){o.map((function(t){e.parentid==t.v&&t.c.push({v:e.v,n:e.n,c:e.c})}))})),o.map((function(e){0==e.c.length?e.c="":e.c.map((function(e){0==e.c.length&&(e.c="")}))})),e.district=o,o&&window.localStorage.setItem("provinceData",JSON.stringify(o))}}))},getDispatchMethod:function(e){var t=this,o={goods_id:this.$route.query.goodsId?this.$route.query.goodsId.toString():"",cart_ids:this.$route.query.cart_ids||e};this.fun.$post("memberCart.dispatch-type.index",o).then((function(e){1===e.result?(t.dispatch=e.data||[],t.selected=t.dispatch&&t.dispatch.length>0?t.dispatch[0].dispatch_type_id:0,t.handleBuy()):t.$message.error(e.msg)}),(function(e){console.log(e)})).catch((function(e){console.log(e)}))},handleBuy:function(e){if("-2"==this._root_tag||"appointment_goods"==this._root_tag||"yunqian_api"==this._root_tag||"yun_sign_goods"==this._root_tag||"activity"==this._root_tag)e||(this._goodsId=this.$route.query.goodsId,this._optionsId=this.$route.query.optionsId,this._total=this.$route.query.total),this.getDataActionBuy();else if("-1"==this._root_tag||"-10"==this._root_tag){if(!e&&(this._cart_ids=this.$route.query.cart_ids,this.fun.isTextEmpty(this._cart_ids)))return void this.$router.go(-1);this.getDataActionCart()}},checkTaxGoods:function(data){data.status?this.showMyinfo=data.status:this.showMyinfo=!1},saveInfo:function(){var e=this,t={member_name:this.member_name,member_card:this.member_card};this.fun.$get("from.div-from.updateMemberInfo",t,"添加中").then((function(t){1==t.result?e.popMyinfo=!1:e.$message.error(t.msg)}),(function(e){console.log(e)}))},getMemberInfo:function(data){this.member_name=data.realname,this.member_card=data.idcard},getExplain:function(data){this.explain_title=data.explain_title,this.explain_content=data.explain_content},changeSelect:function(e){this.currentAddId=e.id,this.currentAddress=e,this.requestByAddress()},toSite:function(){this.shop_domain||this.checkData()},checkData:function(){var e=this,t="plugin.product-market.api.client.index";58===this.plugin_id&&(t="plugin.market-sub.api.client.index"),this.fun.$get(t,{},"获取中").then((function(t){1===t.result?(e.count=0,e.siteDialogVisible=!0):e.$message.warning("已经绑定过域名")}))},toOrder:function(){this.$router.push(this.fun.getUrl("order"))},sureIdentify:function(){var e=this;if(this.siteForm.mobile){var t="plugin.product-market.api.client.index.send-code";58===this.plugin_id&&(t="plugin.market-sub.api.client.index.send-code");var o={mobile:this.siteForm.mobile};this.fun.$post(t,o,"...").then((function(t){1===t.result?(e.$message.success("已发送"),e.timer||(e.count=60,e.timer=setInterval((function(){e.count>0&&e.count<=60?e.count--:(clearInterval(e.timer),e.timer=null)}),1e3))):e.$message.error(t.msg)}),(function(t){e.$message.error(t.msg)}))}else this.$message.error("请先填写手机号")},checkDomain:function(){return!(this.siteForm.domain.indexOf("https://")>-1||this.siteForm.domain.indexOf("http://")>-1)},toSave:function(){var e=this;if(2!=this.isNew||this.siteForm.name)if(this.siteForm.domain)if(this.checkDomain())if(this.siteForm.mobile)if(this.authcode){var t="",o={};2==this.isNew?(t="plugin.product-market.api.client.index.add",58===this.plugin_id&&(t="plugin.market-sub.api.client.index.add"),o={domain:this.siteForm.domain,mobile:this.siteForm.mobile,code:this.authcode,name:this.siteForm.name}):(t="plugin.product-market.api.client.index.bind",58===this.plugin_id&&(t="plugin.market-sub.api.client.index.bind"),o={domain:this.siteForm.domain,mobile:this.siteForm.mobile,code:this.authcode}),this.fun.$post(t,o,"...").then((function(t){1===t.result?(e.$message.success(t.msg),e.shop_domain=e.siteForm.domain,e.siteDialogVisible=!1):e.$alert(t.msg,"提示",{confirmButtonText:"确定"})}),(function(t){e.$message.error(t.msg)}))}else this.$message.error("请先填写验证码");else this.$message.error("请填写手机号");else this.$alert("域名格式不正确: 请填写没有https://或http:// 格式的域名","提示",{confirmButtonText:"确定"});else this.$message.error("请填写域名");else this.$message.error("请填写公司/个人名称")},getOrderDomain:function(e){for(var t=0;t<e.length;t++)58===e[t].plugin_id&&(this.plugin_id=58),void 0!==e[t].domain&&(this.show_domain=!0);for(var o=0;o<e.length;o++)if(e[o].domain)return console.log("已绑定域名"),e[o].domain;return""},showCoupon:function(){0!=this.coupon_size?this.popupCouponSpecs=!0:this.$message.error("暂无优惠券使用")},handleSelectionChange:function(e){this.use_coupon_size=this.checkCouponList.length,this.handleBuy(1)},isOrderAddress_M:function(e){for(var t=0;t<e.length;t++)if(!e[t].need_address)return console.log("有订单需要填写地址"),!1;return!0},getIvoice:function(data){this.papery_status=parseInt(data.invoice.papery),this.electron_status=parseInt(data.invoice.electron),this.papery_status||this.electron_status?this.electron_status?this.invoice_type="0":this.papery_status&&(this.invoice_type="1"):this.isShowInvoice=!1},invoice_title:function(){this.invoice_list.call="",this.invoice_list.company_number="",this.email=""},Subinvoice:function(){this.fun.isTextEmpty(this.invoice_list.call)?this.$message.error("请填写抬头"):1!=this.iscur&&this.fun.isTextEmpty(this.invoice_list.company_number)?this.$message.error("请添加纳税人识别号"):(this.invoicename=1==this.invoice_type?"纸质":"电子",this.companyname=1==this.iscur?"个人":"单位",this.showInvoiceTitle=this.invoice_list.call,this.invoiceDialogVisible=!1)},serviceFeesHandle:function(e,t){this.service_fee[e.pre_id]||(this.service_fee[e.pre_id]=[]),t.checked?this.service_fee[e.pre_id].push(t.code):this.service_fee[e.pre_id]&&!t.checked&&this.service_fee[e.pre_id].splice(this.service_fee[e.pre_id].indexOf(t.code),1);var o={};if(this.checkDeductionList.length>0){for(var i=0;i<this.checkDeductionList.length;i++)if(this.checkDeductionList[i].pre_id==e.pre_id)return void(this.checkDeductionList[i].service_fee=this.service_fee[e.pre_id]);o.pre_id=e.pre_id,o.service_fee=this.service_fee[e.pre_id],this.checkDeductionList.push(o)}else o.pre_id=e.pre_id,o.service_fee=this.service_fee[e.pre_id],this.checkDeductionList.push(o)},discountHandle:function(e,t,o){"discount"==o?this.screenDiscount(e,t):"serviceFee"==o&&this.serviceFeesHandle(e,t),this.handleBuy(1)},noteHandle:function(e,t){var o=this;if(t.order_deductions[0])this.screenDiscount(t,t.order_deductions[0]);else{var r=!1;this.checkDeductionList.length>0&&this.checkDeductionList.forEach((function(e,n){e&&e.pre_id==t.pre_id&&(r=!0,e.note=o.note[t.pre_id])})),r||this.checkDeductionList.push({deduction_ids:[],pre_id:t.pre_id,note:this.note[t.pre_id]}),this.checkDeductionList.reverse()}console.log("this.checkDeductionList::::",this.checkDeductionList)},screenDiscount:function(e,t){var o=this,r=!1;this.checkDeductionList.length>0&&this.checkDeductionList.forEach((function(n,c){n&&n.pre_id==e.pre_id&&(r=!0,t.checked?n.deduction_ids&&-1==n.deduction_ids.indexOf(t.code)&&n.deduction_ids.push(t.code):n.deduction_ids&&n.deduction_ids.indexOf(t.code)>-1&&n.deduction_ids.splice(n.deduction_ids.indexOf(t.code),1),n.note=o.note[e.pre_id],n.service_fee=o.service_fee[e.pre_id])})),r||t.checked&&this.checkDeductionList.push({deduction_ids:[t.code],pre_id:e.pre_id,note:this.note[e.pre_id],service_fee:this.service_fee[e.pre_id]}),this.checkDeductionList.reverse()},assembleCoupons:function(){for(var e=[],i=0;i<this.checkCouponList.length;i++)if(this.is_coupon_SELE){console.log("this.checkCouponList[0].num",this.coupons_temp[this.checkCouponList[i].coupon_id].num);var t=this.checkCouponList[i].has_conpon_id;e=e.concat(t.slice(0,this.coupons_temp[this.checkCouponList[i].coupon_id].num)),this.use_coupon_size=e.length}else e.push(this.checkCouponList[i].id);return e},assembleDeduction:function(){for(var e=[],i=0;i<this.checkDeductionList.length;i++)e.push(this.checkDeductionList[i]);return e},assembleGoods:function(){for(var e=[],t=0;t<this.goodsInfo.orders.length;t++)for(var i=0;i<this.goodsInfo.orders[t].order_goods.length;i++){var o={};o.goods_id=this.goodsInfo.orders[t].order_goods[i].goods_id,o.total=this.goodsInfo.orders[t].order_goods[i].total,o.option_id=this.goodsInfo.orders[t].order_goods[i].goods_option_id,e.push(o)}return e},getParams:function(){var e,t=this,o=[];"-2"!=this._root_tag&&"appointment_goods"!=this._root_tag&&"yun_sign_goods"!=this._root_tag&&"yunqian_api"!=this._root_tag&&"activity"!=this._root_tag||(this._goodsId=this.$route.query.goodsId,o.push(this._goodsId)),e={goods_ids:JSON.stringify(o)},this.fun.$get("from.div-from.get-params",e).then((function(e){1===e.result?(t.AgreementPay=e.data.getPayProtocol,t.openCueCoupon=0!=e.data.getCouponSet,t.checkTaxGoods(e.data.isDisplay),e.data.getMemberInfo&&t.getMemberInfo(e.data.getMemberInfo),e.data.explain&&t.getExplain(e.data.explain),t.getIvoice(e.data.sinvoice)):console.log(e.msg)}),(function(e){console.log(e)})).catch((function(e){console.log(e)}))},getDataActionBuy:function(){var e=this,t={goods_id:this._goodsId,total:this._total,option_id:this._optionsId,member_coupon_ids:this.assembleCoupons(),orders:JSON.stringify(this.assembleDeduction()),address:encodeURIComponent(JSON.stringify(this.currentAddress)),dispatch_type_id:this.selected,mark:this.$route.query.mark?this.$route.query.mark:0};this.fun.$post("order.goods-buy",t,"正在获取").then((function(t){1===t.result?(e.goodsInfo=t.data,e.setViewData(t.data),e.initCoupon(t.data.discount)):(e.$message.error(t.msg),e.$router.go(-1)),setTimeout((function(){}),1e3)}),(function(e){console.log(e)}))},getDataActionCart:function(){var e=this,t={cart_ids:this._cart_ids,member_coupon_ids:this.assembleCoupons(),orders:JSON.stringify(this.assembleDeduction()),address:encodeURIComponent(JSON.stringify(this.currentAddress)),dispatch_type_id:this.selected};this.fun.$get("order.cart-buy",t,"正在获取").then((function(t){1===t.result?(e.goodsInfo=t.data,e.setViewData(t.data),e.initCoupon(t.data.discount)):e.$message.error(t.msg)}),(function(e){console.log(e)}))},setViewData:function(data){this.service_fee_items=data.service_fee_items,this.order_data=data.orders,this.shop_domain=this.getOrderDomain(data.orders),this.show_address=this.isOrderAddress_M(data.orders),this.total_price=data.total_price,this.total_items=data.amount_items,this.discount_amount_items=data.discount_amount_items},setAddressViewData:function(e){e&&e.id&&(this.currentAddId=e.id,this.currentAddress=e)},requestByAddress:function(){this.handleBuy(1)},initCoupon:function(e){this.isShowCoupon="1"==e.whether_show_coupon,this.coupon_size=e.member_coupons.length,this.coupons=e.member_coupons,this.checkCouponList=this.coupons.filter((function(e){return e.checked}))},mustSelectCoupon:function(){return!(!(this.openCueCoupon&&this.coupon_size>0&&this.use_coupon_size<1)||this.isCueCoupon)&&(this.isCueCoupon=!0,this.popupCouponSpecs=!0,!0)},initSelectCoupon:function(e){for(var t=e,o=[],r={},i=0;i<t.length;i++){var n=0,c=0,d=[t[i].id];t[i].checked&&n++,t[i].valid&&c++;for(var l=i+1;l<t.length;l++)t[i].coupon_id==t[l].coupon_id&&(t[l].checked&&n++,t[l].valid&&c++,d.push(t[l].id),t.splice(l,1),l--);var _=t[i];_.has_conpon_id=d,_.valid_num=c,o.push(_),r[t[i].coupon_id]={},r[t[i].coupon_id].num=n}this.coupons_temp=r,this.coupons=o,console.log(this.coupons,this.coupons_temp)},changeConpon:function(e,data){var t=this,o=data.name;if(e>o.valid_num)return this.$message.error("使用张数已达上限"),this.stepper_show=1,clearTimeout(this.timer),void(this.timer=setTimeout((function(){t.coupons_temp[o.coupon_id].num=o.valid_num,t.stepper_show=0}),200));if(""!=e&&null!=e&&0!=e){clearTimeout(this.timer),this.coupons_temp[o.coupon_id].num=e;var r={target:{checked:!0}},n=this;this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){n.selectCoupon(r,o)}),1e3)}else this.$message.error("暂不使用请取消勾选")},assembleJson:function(){var e={address:encodeURIComponent(JSON.stringify(this.currentAddress)),goods:JSON.stringify(this.assembleGoods()),member_coupon_ids:JSON.stringify(this.assembleCoupons()),orders:JSON.stringify(this.assembleDeduction()),invoice_type:this.invoice_type,rise_type:this.iscur,call:this.invoice_list.call,email:this.invoice_list.email,company_number:this.invoice_list.company_number,dispatch_type_id:this.selected,mark:this.$route.query.mark||0};return"-1"!=this._root_tag&&"channel"!=this._root_tag&&"channel_Replenishment"!=this._root_tag&&"channel_TCOrder"!=this._root_tag||(e.cart_ids=JSON.stringify(this._cart_ids.split(","))),"8"==this.selected&&(e.package_deliver_id=this.defaultSelfCarry.id,e.realname=this.distributionUserName,e.mobile=this.distributionUserMobile,delete e.address),console.log(e),e},getPrepBind:function(){var e=this;this.mobileForm.mobile?!this.imgcode||this.mobileForm.captcha?this.mobileForm.code?this.fun.$post("member.member.prepBind",this.mobileForm,"绑定中...").then((function(t){1==t.result?t.data.is_show?(e.showChangeID=!0,e.changidInfo.uid=t.data.uid,e.changidInfo.change_uid=t.data.change_uid):e.register():e.$message.error(t.msg)}),(function(t){e.$message.error(t.msg)})):this.$message.error("请填验证码"):this.$message.error("图形验证码不能为空"):this.$message.error("请填写手机号")},register:function(){var e=this,t={country:"86",mobile:this.mobileForm.mobile,captcha:this.mobileForm.captcha,code:this.mobileForm.code,close:1};this.fun.$post("member.member.bindMobile",t,"绑定中...").then((function(t){1==t.result?(e.$message.success("绑定成功"),e.showChangeID=!1,e.mobileDialogVisible=!1,e.submit()):e.$message.error(t.msg)}),(function(t){e.$message.error(t.msg)}))},verificationCode:function(){var e=this;if(this.mobileForm.mobile)if(!this.imgcode||this.mobileForm.captcha){var t={mobile:this.mobileForm.mobile,captcha:this.mobileForm.captcha};this.fun.$post("member.register.sendCodeV2",t,"...").then((function(t){1===t.result?(e.$message.success("已发送"),e.timer||(e.count=60,e.timer=setInterval((function(){e.count>0&&e.count<=60?e.count--:(clearInterval(e.timer),e.timer=null)}),1e3))):e.$message.error(t.msg)}),(function(t){e.$message.error(t.msg)}))}else this.$message.error("请填图形验证码");else this.$message.error("请先填写手机号")},getimgdata:function(){var e=this;this.fun.$get("home-page.getCaptcha").then((function(t){t.data.captcha&&(e.imgcode=t.data.captcha.img)})).catch((function(e){console.log(e)}))},checkBindMobile:function(){var e=this;1==this.basicSet.set.bind_mobile?this.fun.$get("plugin.pc-terminal.api.user.get-bind-mobile",{},"...").then((function(t){1===t.result?t.data.is_bind_mobile?e.submit():(e.getimgdata(),e.count=0,e.mobileDialogVisible=!0):e.submit()})).catch((function(t){e.submit(),console.log(t)})):this.submit()},submit:function(){var e=this;if(this.goodsInfo.orders&&!this.mustSelectCoupon())if(!this.AgreementPay||this.agreementPay)if(!this.show_domain||this.shop_domain){if("8"==this.selected){if(!this.defaultSelfCarry.id)return void this.$message.error("请选择自提点");if(this.fun.isTextEmpty(this.distributionUserName))return void this.$message.error("请填写提货人姓名");if(this.fun.isTextEmpty(this.distributionUserMobile))return void this.$message.error("请输入提货人手机")}else if(("0"==this.selected||"1"==this.selected)&&!this.show_address&&this.fun.isTextEmpty(this.currentAddId))return void this.$message.error("请选择收货地址");if(this.show_address||"0"!=this.selected&&"1"!=this.selected||!this.fun.isTextEmpty(this.currentAddId)){var t=this.assembleJson();if(0===this.clicktag){this.clicktag=1;var o="order.create";"appointment_goods"==this._root_tag?o="plugin.appointment.frontend.order.create":"yun_sign_goods"==this._root_tag?o="plugin.yun-sign.frontend.order.create":"yunqian_api"==this._root_tag?o="plugin.yunqian-api.frontend.order.create":"activity"==this._root_tag&&(o="plugin.activity-apply.api.create"),console.log(t),this.fun.$post(o,t,"提交中").then((function(t){1===t.result?(e.order_ids=t.data.order_ids,e.getMultipleOrderInfo()):e.$message.error(t.msg),setTimeout((function(){e.clicktag=0}),1e3)}),(function(e){console.log(e)})).catch((function(e){console.log(e)}))}}else this.$message.error("请选择收货地址")}else this.$message.error("请先新增/绑定站点");else this.$message.error("请勾选支付协议")},handleChange:function(e){this.$refs.refSubCat.getCheckedNodes()[0].parent&&this.$refs.refSubCat.getCheckedNodes()[0].parent.parent&&(this.form.district=this.$refs.refSubCat.getCheckedNodes()[0].label,this.form.city=this.$refs.refSubCat.getCheckedNodes()[0].parent.label,this.form.province=this.$refs.refSubCat.getCheckedNodes()[0].parent.parent.label,this.form.streetName="",this.getStreet(this.district_select[2]))},getStreet:function(param){var e=this;this.fun.$get("member.memberAddress.street",{district_id:param}).then((function(t){1===t.result&&!e.fun.isTextEmpty(t.data)&&t.data.length>0?(e.districtVal=t.data,e.isShowStreet=!0,e.$forceUpdate()):e.isShowStreet=!1})).catch((function(e){console.log(e)}))},getAddress:function(){var e=this;this.fun.$get("member.member-address.index").then((function(t){1==t.result&&(e.addressList=t.data,e.addressList.map((function(t){1==t.isdefault&&(e.currentAddress=t)})),e.setAddressViewData(e.currentAddress))}))},getTreeData:function(data){for(var i=0;i<data.length;i++)!data[i].c||data[i].c.length<1?data[i].c=void 0:this.getTreeData(data[i].c);return data},add_new_address:function(e,t){t?(this.form.isdefault=1==t.isdefault,this.form.username=t.username,this.form.mobile=t.mobile,this.form.city=t.city,this.form.address=t.address,this.form.province=t.province,this.form.district=t.district,this.form.address_id=t.id,this.form.streetName=t.street,this.district_select=[t.province_id,t.city_id,t.district_id],this.getStreet(this.district_select[2])):(this.district_select=[],this.$forceUpdate(),this.districtVal=[],this.isShowStreet=!1,this.form={address_id:"",username:"",mobile:"",city:"",address:"",province:"",district:"",isdefault:!1,streetName:""}),this.choose_type=e,this.dialogVisible=!0},alterAddresshandle:function(){var e=this;if(this.fun.isTextEmpty(this.form.username))this.$message.error("请输入收件人");else if(this.fun.isTextEmpty(this.form.mobile))this.$message.error("请输入联系电话");else if(/^[0-9]{1,}$/.test(this.form.mobile))if(this.isShowStreet&&this.fun.isTextEmpty(this.form.streetName))this.$message.error("请输入所在街道");else if(this.fun.isTextEmpty(this.form.address))this.$message.error("请输入详细地址");else{var t="add"==this.choose_type?"member.member-address.store":"member.member-address.update",o={};o="add"==this.choose_type?{username:this.form.username,mobile:this.form.mobile,city:this.form.city,address:this.form.address,province:null==this.form.province?"":this.form.province,isdefault:this.form.isdefault?1:0,district:this.form.district,street:this.form.streetName}:{address_id:this.form.address_id,username:this.form.username,mobile:this.form.mobile,city:this.form.city,address:this.form.address,province:null==this.form.province?"":this.form.province,isdefault:this.form.isdefault?1:0,district:this.form.district,street:this.form.streetName},this.isShowStreet||delete o.street,this.fun.$post(t,o,"提交中").then((function(t){1==t.result?(e.$message.success(t.msg),e.dialogVisible=!1,e.getAddress()):e.$message.error(t.msg)}))}else this.$message.error("请输入正确的联系电话")},getMultipleOrderInfo:function(){var e=this;this.fun.$get("order.merge-pay",{order_ids:this.order_ids},"正在获取").then((function(t){if(1==t.result){e.pay_sn=t.data.order_pay.pay_sn,e.balance=Number(t.data.member.credit2).toFixed(2),e.money=Number(t.data.order_pay.amount).toFixed(2),e.uid=t.data.order_pay.uid,e.order_pay_id=t.data.order_pay.id;var o=[];for(var i in t.data.buttons)28!=t.data.buttons[i].value&&2!=t.data.buttons[i].value&&29!=t.data.buttons[i].value&&57!=t.data.buttons[i].value&&3!=t.data.buttons[i].value||o.push(t.data.buttons[i]);e.pay_way=o,e.typename=t.data.typename,e.$refs.payBox.showPay()}else e.$alert(t.msg,"提示",{confirmButtonText:"确定",callback:function(t){e.$router.push(e.fun.getUrl("home"))}})}),(function(e){console.log(e)}))}}},_=l,h=(o(875),o(1)),component=Object(h.a)(_,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pre_order"},[r("div",{staticClass:"pre_content m-auto"},[e.dispatch.length>0?r("h3",{staticStyle:{"margin-bottom":"27px","font-size":"20px"}},[e._v("配送方式")]):e._e(),e._v(" "),e.dispatch.length>0?r("div",{staticClass:"way"},[e._v("\n 配送方式:\n "),[r("el-radio-group",{model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}},e._l(e.dispatch,(function(t,o){return 1==t.dispatch_type_id?r("el-radio",{key:t.dispatch_type_id,attrs:{label:t.dispatch_type_id}},[e._v("\n "+e._s(t.name)+" "),1!=t.dispatch_type_id?r("span",{staticClass:"tips"},[e._v("("+e._s(t.name)+"请到手机端进行下单)")]):e._e()]):e._e()})),1),e._v(" "),1===e.dispatch.length&&1!=e.dispatch[0].dispatch_type_id?r("span",{staticClass:"tips"},[e._v("目前的配送方式不支持PC端下单")]):e._e()]],2):e._e(),e._v(" "),e.show_address?e._e():r("h3",{staticStyle:{"margin-bottom":"27px","font-size":"20px"}},[e._v("选择收货地址")]),e._v(" "),!e.show_address&&e.addressList.length>0?r("div",{staticClass:"address_list flex"},e._l(e.addressList,(function(t,n){return r("div",{key:n,staticClass:"address",class:[t.id==e.currentAddId?"border_red":""],on:{click:function(o){return e.changeSelect(t)}}},[r("div",{staticClass:"address_name flex flex-a-c"},[e._v(e._s(t.province)+e._s(t.city)+" ("+e._s(t.username)+"收)")]),e._v(" "),r("div",{staticClass:"address_info "},[r("div",[e._v(e._s(t.district)+" "+e._s(t.street)+" "+e._s(t.address)+" "+e._s(t.mobile)+"\n ")]),e._v(" "),r("div",{staticClass:"edit",on:{click:function(o){return o.stopPropagation(),e.add_new_address("edit",t)}}},[e._v("修改")])]),e._v(" "),1==t.isdefault?r("div",{staticClass:"address_normal flex flex-a-c flex-j-c"},[e._v("\n 默认地址\n ")]):e._e(),e._v(" "),e.currentAddId==t.id?r("div",{staticClass:"address_bingo"},[r("img",{attrs:{src:o(873)}})]):e._e()])})),0):e._e(),e._v(" "),e.show_address?e._e():r("div",{staticClass:"new_add flex flex-a-c flex-j-c",on:{click:function(t){return e.add_new_address("add")}}},[r("img",{attrs:{src:o(874)}}),e._v("\n 新增地址\n ")]),e._v(" "),e.showMyinfo?r("div",{staticClass:"info-box"},[r("span",{staticStyle:{"margin-right":"20px"}},[e._v("姓名:"+e._s(e.member_name))]),e._v(" "),r("span",[e._v("身份证号:"+e._s(e.member_card))]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(t){e.popMyinfo=!0}}},[e._v("修改个人信息")])],1):e._e(),e._v(" "),r("h3",{staticStyle:{margin:"0 20px 25px 0","font-size":"20px"}},[e._v("确认订单信息")]),e._v(" "),e._l(e.order_data,(function(t,n){return r("div",{key:n,staticClass:"detail_accounts"},[r("div",{staticClass:"title flex flex-a-c"},[r("img",{attrs:{src:o(722)}}),e._v(" "),r("span",{staticClass:"name"},[e._v(e._s(t.shop_name))])]),e._v(" "),e._l(t.order_goods,(function(t,i){return r("div",{key:i,staticClass:"accounts_content"},[r("div",{staticClass:"top flex flex-j-sb flex-a-c"},[r("div",{staticClass:"avatar flex"},[r("img",{attrs:{src:t.thumb}}),e._v(" "),r("div",{staticClass:"avatar_right flex flex-col flex-j-ar"},[r("span",[e._v(e._s(t.title))]),e._v(" "),r("span",[t.goods_option_title?r("span",[e._v("规格:"+e._s(t.goods_option_title))]):e._e()])])]),e._v(" "),r("div",{staticClass:"flex flex-j-c",staticStyle:{width:"10%"}},[e._v(e._s((t.price/t.total).toFixed(2)))]),e._v(" "),r("div",{staticClass:"flex flex-j-c",staticStyle:{width:"20%"}},[e._v("x"+e._s(t.total))]),e._v(" "),r("div",{staticClass:"flex flex-j-c",staticStyle:{width:"10%"}},[e._v(e._s(t.price))])])])})),e._v(" "),r("div",{staticClass:"center flex"},[r("div",{staticClass:"center_message flex"},[r("div",{staticStyle:{height:"100%",width:"80px"}},[e._v("给卖家留言:")]),e._v(" "),r("div",{staticStyle:{height:"100%",flex:"1"}},[r("el-input",{attrs:{type:"textarea",placeholder:"选填,请先和卖家协商一致(50字以内)",maxlength:"50","show-word-limit":""},on:{change:function(o){return e.noteHandle(o,t,e.note[t.pre_id])}},model:{value:e.note[t.pre_id],callback:function(o){e.$set(e.note,t.pre_id,o)},expression:"note[order.pre_id]"}})],1)]),e._v(" "),r("div",{staticClass:"center_amount"},[r("div",[e._v("商品金额:"),r("span",{staticClass:"col_red"},[e._v("¥"+e._s(t.order_goods_price))])]),e._v(" "),r("div",[e._v("运费:"),r("span",{staticClass:"col_red"},[e._v("¥"+e._s(t.dispatch_price))])]),e._v(" "),t.order_deductions?e._l(t.order_deductions,(function(o,i){return r("div",{key:i,staticClass:"flex flex-j-sb"},[r("div",{staticStyle:{"margin-bottom":"0"}},[e._v("可用:"),r("span",{staticClass:"col_red"},[e._v(e._s(parseFloat(o.coin).toFixed(2)))]),e._v(e._s(o.name)+",抵扣"),r("span",{staticClass:"col_red"},[e._v(e._s(o.amount))])]),e._v(" "),r("el-switch",{attrs:{"active-color":"#f11111","inactive-color":"#999999"},on:{change:function(r){return e.discountHandle(t,o,"discount")}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"d.checked"}})],1)})):e._e(),e._v(" "),t.order_coin_exchanges?e._l(t.order_coin_exchanges,(function(t,i){return r("div",{key:i,staticClass:"flex flex-j-sb"},[r("div",{staticStyle:{"margin-bottom":"0"}},[r("span",{staticClass:"col_red"},[e._v(e._s(parseFloat(t.coin).toFixed(2)))]),e._v(e._s(t.name)+",抵扣"),r("span",{staticClass:"col_red"},[e._v(e._s(t.amount))])])])})):e._e(),e._v(" "),e._l(t.order_service_fees,(function(o,i){return r("div",{key:o.code,staticClass:"fees-box flex flex-j-sb"},[r("div",[e._v("是否需要"+e._s(o.name)+"(服务费用"),r("span",{staticClass:"col_red"},[e._v("¥"+e._s(o.amount))]),e._v(")")]),e._v(" "),r("el-switch",{attrs:{"active-color":"#f11111","inactive-color":"#999999"},on:{change:function(r){return e.discountHandle(t,o,"serviceFee")}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"fees.checked"}})],1)}))],2)])],2)})),e._v(" "),r("div",{staticClass:"gray_block flex"},[r("div",{staticClass:"gray_left"},[e.show_domain?r("div",{staticClass:"domain-box",on:{click:e.toSite}},[r("div",{staticClass:"left",staticStyle:{"margin-right":"10px"}},[e._v("\n 我的站点\n ")]),e._v(" "),r("div",{staticClass:"right"},[r("span",{staticClass:"tips"},[e._v(e._s(e.shop_domain?e.shop_domain:"新增/绑定站点"))])])]):e._e(),e._v(" "),e.isShowInvoice?r("div",{staticClass:"invoice-box",on:{click:function(t){e.invoiceDialogVisible=!0}}},[r("span",[e._v("开具发票")]),e._v(" "),r("span",{staticClass:"type"},[r("span",{staticClass:"tips"},[e._v(e._s(e.invoicename))]),e.companyname?r("span",[e._v("("+e._s(e.companyname)+"—"+e._s(e.showInvoiceTitle)+")")]):e._e()]),e._v(" "),r("img",{attrs:{slot:"reference",src:o(414)},slot:"reference"})]):e._e()]),e._v(" "),r("div",{staticClass:"gray_right"},[e.isShowCoupon?r("div",{on:{click:e.showCoupon}},[e._v("优惠券"+e._s(e.coupon_size)+"张可用:\n "),r("span",{staticClass:"col_red",staticStyle:{"margin-left":"5px",cursor:"pointer"}},[e._v(e._s(0==e.use_coupon_size?"未使用":"已使用"+e.use_coupon_size+"张"))]),e._v(" "),r("img",{attrs:{slot:"reference",src:o(414)},slot:"reference"})]):e._e(),e._v(" "),e._l(e.total_items,(function(t){return r("div",{key:t.code},[e._v(e._s(t.name)+":"),r("span",{staticClass:"col_red"},[e._v("¥"),"total_deduction_price"==t.code?r("span",[e._v("-")]):e._e(),e._v(e._s(t.amount))])])})),e._v(" "),e._l(e.discount_amount_items,(function(t){return r("div",{key:t.code},[e._v(e._s(t.name)+":"),r("span",{staticClass:"col_red"},[e._v("¥-"+e._s(t.amount))])])})),e._v(" "),e._l(e.service_fee_items,(function(t){return r("div",{key:t.code},[e._v(e._s(t.name)+":"),r("span",{staticClass:"col_red"},[e._v("¥"+e._s(t.amount))])])}))],2)]),e._v(" "),r("div",{staticClass:"real flex flex-a-c"},[e._v("\n 实付款:"),r("span",{staticClass:"money"},[e._v("¥"+e._s(e.total_price))])]),e._v(" "),r("div",{staticClass:"confirm flex"},[e.AgreementPay?r("div",{staticClass:"flex"},[r("el-checkbox",{model:{value:e.agreementPay,callback:function(t){e.agreementPay=t},expression:"agreementPay"}}),e._v(" "),r("span",{staticClass:"tips",staticStyle:{cursor:"pointer"},on:{click:function(t){e.agreementPayShow=!0}}},[e._v("《支付协议》")])],1):e._e(),e._v(" "),r("div",{staticClass:"confirm_btn flex flex-a-c flex-j-c",on:{click:e.checkBindMobile}},[e._v("提交订单")])])],2),e._v(" "),r("el-dialog",{attrs:{title:"支付协议",visible:e.agreementPayShow,width:"60%"},on:{"update:visible":function(t){e.agreementPayShow=t}}},[r("p",{staticStyle:{padding:"20px"},domProps:{innerHTML:e._s(e.AgreementPay)}}),e._v(" "),r("div",{staticClass:"btn_wrap flex"},[r("el-button",{staticClass:"flex flex-a-c flex-j-c",attrs:{type:"primary"},on:{click:function(t){e.agreementPayShow=!1}}},[e._v("确定\n ")])],1)]),e._v(" "),r("el-dialog",{attrs:{title:"优惠券",width:"900px",visible:e.popupCouponSpecs},on:{"update:visible":function(t){e.popupCouponSpecs=t}}},[e.isCueCoupon?r("p",{staticClass:"tips",staticStyle:{margin:"0 20px 20px 20px"}},[e._v("你还有以下优惠券没使用(如不需要请关闭弹窗继续提交)")]):e._e(),e._v(" "),r("div",{staticClass:"coupons-box"},[r("div",{staticClass:"coupons-head flex"},[r("p",{staticStyle:{flex:"0 0 130px"}},[e._v("ID")]),e._v(" "),r("p",{staticStyle:{flex:"1","text-align":"left"}},[e._v("优惠券名称")]),e._v(" "),r("p",{staticStyle:{flex:"0 0 150px"}},[e._v("优惠")]),e._v(" "),r("p",{staticStyle:{flex:"0 0 210px","text-align":"left","text-indent":"45px"}},[e._v("使用条件")]),e._v(" "),r("p",{staticStyle:{flex:"0 0 130px"}},[e._v("有效时间")])]),e._v(" "),r("el-checkbox-group",{on:{change:e.handleSelectionChange},model:{value:e.checkCouponList,callback:function(t){e.checkCouponList=t},expression:"checkCouponList"}},e._l(e.coupons,(function(t,o){return r("el-checkbox",{key:o,attrs:{disabled:!t.valid,checked:t.checked,label:t}},[r("div",{staticClass:"coupons-item flex"},[r("p",{staticStyle:{flex:"0 0 100px"}},[e._v(e._s(t.id))]),e._v(" "),r("p",{staticStyle:{flex:"1","text-align":"left",padding:"0 5px"}},[e._v(e._s(t.belongs_to_coupon.name))]),e._v(" "),r("p",{staticClass:"tips coupon",staticStyle:{flex:"0 0 100px"}},[r("span",[e._v(e._s(1==t.belongs_to_coupon.coupon_method?"减"+t.belongs_to_coupon.deduct:t.belongs_to_coupon.discount+"折"))])]),e._v(" "),r("p",{staticStyle:{flex:"0 0 180px","padding-left":"8px"}},[e._v(e._s(1==t.belongs_to_coupon.coupon_method?"满"+t.belongs_to_coupon.enough+"立减":"满"+t.belongs_to_coupon.enough+"立享"))]),e._v(" "),r("p",{staticStyle:{flex:"0 0 200px"}},[e._v(e._s(t.time_start)+" -- "+e._s(t.time_end))])])])})),1)],1)]),e._v(" "),r("el-dialog",{staticClass:"dialog_connect",attrs:{title:"开具发票",visible:e.invoiceDialogVisible,width:"878px"},on:{"update:visible":function(t){e.invoiceDialogVisible=t}}},[r("div",[r("p",[e._v("发票类型")]),e._v(" "),r("div",{staticStyle:{margin:"20px"}},[e.electron_status?r("el-radio",{attrs:{label:"0",border:""},model:{value:e.invoice_type,callback:function(t){e.invoice_type=t},expression:"invoice_type"}},[e._v("电子发票")]):e._e(),e._v(" "),e.papery_status?r("el-radio",{attrs:{label:"1",border:""},model:{value:e.invoice_type,callback:function(t){e.invoice_type=t},expression:"invoice_type"}},[e._v("纸质发票")]):e._e()],1)]),e._v(" "),r("div",{staticClass:"address-box"},[r("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.invoice_title},model:{value:e.iscur,callback:function(t){e.iscur=t},expression:"iscur"}},[r("el-tab-pane",{attrs:{label:"个人",name:"1"}},[r("el-form",{attrs:{"label-width":"150px"}},[r("el-form-item",{attrs:{label:"发票抬头"}},[r("el-input",{attrs:{placeholder:"请输入发票抬头"},model:{value:e.invoice_list.call,callback:function(t){e.$set(e.invoice_list,"call",t)},expression:"invoice_list.call"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"邮箱(非必填)"}},[r("el-input",{attrs:{placeholder:"请输入邮箱(非必填)"},model:{value:e.invoice_list.email,callback:function(t){e.$set(e.invoice_list,"email",t)},expression:"invoice_list.email"}})],1)],1)],1),e._v(" "),r("el-tab-pane",{attrs:{label:"单位",name:"0"}},[r("el-form",{attrs:{"label-width":"150px"}},[r("el-form-item",{attrs:{label:"单位名称"}},[r("el-input",{attrs:{placeholder:"请输入单位名称"},model:{value:e.invoice_list.call,callback:function(t){e.$set(e.invoice_list,"call",t)},expression:"invoice_list.call"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"纳税人识别号"}},[r("el-input",{attrs:{placeholder:"请输入纳税人识别号"},model:{value:e.invoice_list.company_number,callback:function(t){e.$set(e.invoice_list,"company_number",t)},expression:"invoice_list.company_number"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"邮箱(非必填)"}},[r("el-input",{attrs:{placeholder:"请输入邮箱(非必填)"},model:{value:e.invoice_list.email,callback:function(t){e.$set(e.invoice_list,"email",t)},expression:"invoice_list.email"}})],1)],1)],1)],1),e._v(" "),r("div",{staticClass:"btn_wrap flex"},[r("el-button",{staticClass:"flex flex-a-c flex-j-c",on:{click:function(t){e.invoiceDialogVisible=!1}}},[e._v("关闭")]),e._v(" "),r("el-button",{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{type:"primary"},on:{click:e.Subinvoice}},[e._v("确定\n ")])],1)],1)]),e._v(" "),r("el-dialog",{staticClass:"dialog_connect",attrs:{title:"应用市场",visible:e.siteDialogVisible,width:"878px"},on:{"update:visible":function(t){e.siteDialogVisible=t}}},[r("div",{staticClass:"address-box"},[r("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.invoice_title},model:{value:e.isNew,callback:function(t){e.isNew=t},expression:"isNew"}},[r("el-tab-pane",{attrs:{label:"绑定已有站点",name:"1"}},[r("div",{staticStyle:{margin:"20px 50px"}},[r("p",[e._v("如果您已经部署安装过当前商城,请绑定已有站点")]),e._v(" "),r("p",{staticClass:"tips"},[e._v("注:您只能绑定一个站点,请勿绑定他人站点!")])]),e._v(" "),r("el-form",{attrs:{"label-width":"150px"}},[r("el-form-item",{attrs:{label:"域名"}},[r("el-input",{attrs:{placeholder:"请输入域名"},model:{value:e.siteForm.domain,callback:function(t){e.$set(e.siteForm,"domain",t)},expression:"siteForm.domain"}}),e._v(" "),r("p",{staticClass:"tips"},[e._v("已部署的当前商城系统域名,如:"+e._s(e.domain))])],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号"}},[r("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.siteForm.mobile,callback:function(t){e.$set(e.siteForm,"mobile",t)},expression:"siteForm.mobile"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"短信验证码"}},[r("div",{staticClass:"flex flex-a-c",staticStyle:{position:"relative"}},[r("el-input",{attrs:{placeholder:"验证码"},model:{value:e.authcode,callback:function(t){e.authcode=t},expression:"authcode"}}),e._v(" "),e.count<=0?r("el-button",{staticClass:"getCode",attrs:{plain:""},on:{click:e.sureIdentify}},[e._v("获取验证码")]):e._e(),e._v(" "),e.count>0?r("el-button",{staticClass:"getCode",attrs:{disabled:""}},[e._v("重新发送("+e._s(e.count)+"秒)")]):e._e()],1)])],1)],1),e._v(" "),r("el-tab-pane",{attrs:{label:"创建新站点",name:"2"}},[r("p",{staticStyle:{margin:"20px 50px"}},[e._v("如果您未部署安装当前商城,请创建站点!")]),e._v(" "),r("el-form",{attrs:{"label-width":"150px"}},[r("el-form-item",{attrs:{label:"公司/个人名称"}},[r("el-input",{attrs:{placeholder:"请输入公司/个人名称"},model:{value:e.siteForm.name,callback:function(t){e.$set(e.siteForm,"name",t)},expression:"siteForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"域名"}},[r("el-input",{attrs:{placeholder:"请输入域名"},model:{value:e.siteForm.domain,callback:function(t){e.$set(e.siteForm,"domain",t)},expression:"siteForm.domain"}}),e._v(" "),r("p",{staticClass:"tips"},[e._v("已部署的当前商城系统域名,如:"+e._s(e.domain))])],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号"}},[r("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.siteForm.mobile,callback:function(t){e.$set(e.siteForm,"mobile",t)},expression:"siteForm.mobile"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"短信验证码"}},[r("div",{staticClass:"flex flex-a-c",staticStyle:{position:"relative"}},[r("el-input",{attrs:{placeholder:"验证码"},model:{value:e.authcode,callback:function(t){e.authcode=t},expression:"authcode"}}),e._v(" "),e.count<=0?r("el-button",{staticClass:"getCode",attrs:{plain:""},on:{click:e.sureIdentify}},[e._v("获取验证码")]):e._e(),e._v(" "),e.count>0?r("el-button",{staticClass:"getCode",attrs:{disabled:""}},[e._v("重新发送("+e._s(e.count)+"秒)")]):e._e()],1)])],1)],1)],1),e._v(" "),r("div",{staticClass:"btn_wrap flex"},[r("el-button",{staticClass:"flex flex-a-c flex-j-c",on:{click:function(t){e.siteDialogVisible=!1}}},[e._v("关闭")]),e._v(" "),r("el-button",{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{type:"primary"},on:{click:e.toSave}},[e._v("确定\n ")])],1)],1)]),e._v(" "),r("el-dialog",{staticClass:"dialog_connect",attrs:{title:("add"==e.choose_type?"新增":"编辑")+"收货地址",visible:e.dialogVisible,width:"878px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{staticClass:"address-box"},[r("el-form",{staticStyle:{"padding-left":"215px"},attrs:{"label-width":"106px"}},[r("el-form-item",{attrs:{label:"收件人"}},[r("el-input",{attrs:{placeholder:"请输入收件人"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码"}},[r("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),e.dialogVisible?r("el-form-item",{attrs:{label:"所在地区"}},[r("el-cascader",{ref:"refSubCat",attrs:{options:e.district,props:e.props},on:{change:e.handleChange},model:{value:e.district_select,callback:function(t){e.district_select=t},expression:"district_select"}})],1):e._e(),e._v(" "),e.isShowStreet&&e.dialogVisible?r("el-form-item",{attrs:{label:"街道"}},[r("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.streetName,callback:function(t){e.$set(e.form,"streetName",t)},expression:"form.streetName"}},e._l(e.districtVal,(function(e){return r("el-option",{key:e.id,attrs:{value:e.areaname,label:e.areaname}})})),1)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:""}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入详细地址"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"设为默认地址"}},[r("el-checkbox",{model:{value:e.form.isdefault,callback:function(t){e.$set(e.form,"isdefault",t)},expression:"form.isdefault"}},[e._v("设为默认")])],1)],1),e._v(" "),r("div",{staticClass:"btn_wrap flex"},[r("el-button",{staticClass:"flex flex-a-c flex-j-c",on:{click:function(t){e.dialogVisible=!1}}},[e._v("关闭")]),e._v(" "),r("el-button",{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{type:"primary"},on:{click:e.alterAddresshandle}},[e._v("确定\n ")])],1)],1)]),e._v(" "),r("payBox",{ref:"payBox",attrs:{orderPayId:parseInt(e.order_ids),pay_way:e.pay_way,pay_sn:e.pay_sn,order_pay_id:e.order_pay_id,money:e.money,from:"pay"},on:{paySuccess:e.toOrder}}),e._v(" "),r("el-dialog",{attrs:{title:"我的信息",visible:e.popMyinfo,"close-on-click-modal":!1,width:"60%"},on:{"update:visible":function(t){e.popMyinfo=t}}},[r("el-form",{attrs:{"label-width":"150px"}},[r("el-form-item",{attrs:{label:"真实姓名"}},[r("el-input",{attrs:{placeholder:"请输入真实姓名"},model:{value:e.member_name,callback:function(t){e.member_name=t},expression:"member_name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"身份证号码"}},[r("el-input",{attrs:{placeholder:"请输入身份证号码"},model:{value:e.member_card,callback:function(t){e.member_card=t},expression:"member_card"}})],1)],1),e._v(" "),r("div",{staticStyle:{padding:"20px 50px"}},[r("h1",[e._v(e._s(e.explain_title))]),e._v(" "),r("p",[e._v(e._s(e.explain_content))])]),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveInfo}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{staticClass:"dialog_connect",attrs:{title:"绑定手机",visible:e.mobileDialogVisible,width:"878px"},on:{"update:visible":function(t){e.mobileDialogVisible=t}}},[r("div",{staticClass:"mobile-box"},[r("el-form",{attrs:{"label-width":"150px"}},[r("el-form-item",{attrs:{label:"手机号"}},[r("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.mobileForm.mobile,callback:function(t){e.$set(e.mobileForm,"mobile",t)},expression:"mobileForm.mobile"}})],1),e._v(" "),e.imgcode?r("el-form-item",{attrs:{label:"图形验证码"}},[r("div",{staticClass:"flex flex-a-c"},[r("el-input",{attrs:{placeholder:"请输入图形验证码"},model:{value:e.mobileForm.captcha,callback:function(t){e.$set(e.mobileForm,"captcha",t)},expression:"mobileForm.captcha"}}),e._v(" "),e.imgcode?r("img",{staticClass:"getCode",attrs:{src:e.imgcode,alt:""},on:{click:e.getimgdata}}):e._e()],1)]):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"短信验证码"}},[r("div",{staticClass:"flex flex-a-c",staticStyle:{position:"relative"}},[r("el-input",{attrs:{placeholder:"验证码"},model:{value:e.mobileForm.code,callback:function(t){e.$set(e.mobileForm,"code",t)},expression:"mobileForm.code"}}),e._v(" "),e.count<=0?r("el-button",{staticClass:"getCode",attrs:{plain:""},on:{click:e.verificationCode}},[e._v("获取验证码")]):e._e(),e._v(" "),e.count>0?r("el-button",{staticClass:"getCode",attrs:{disabled:""}},[e._v("重新发送("+e._s(e.count)+"秒)")]):e._e()],1)])],1),e._v(" "),r("div",{staticStyle:{padding:"20px 50px"}},[r("h1",[e._v("根据规定,请您先绑定手机号再提交订单,绑定的手机号将作为您的登录账号!")])]),e._v(" "),r("div",{staticClass:"btn_wrap flex"},[r("el-button",{staticClass:"flex flex-a-c flex-j-c",on:{click:function(t){e.mobileDialogVisible=!1}}},[e._v("关闭")]),e._v(" "),r("el-button",{staticClass:"flex flex-a-c flex-j-c",staticStyle:{"margin-left":"56px"},attrs:{type:"primary"},on:{click:e.getPrepBind}},[e._v("确定\n ")])],1)],1)]),e._v(" "),r("el-dialog",{attrs:{title:"重要提示",visible:e.showChangeID,width:"30%","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showChangeID=t}}},[r("p",{staticClass:"changeId_warnText"},[e._v("\n 当前绑定绑定操作会导致用户ID变更:原会员ID:"+e._s(e.changidInfo.uid)+",变更后会员ID:"+e._s(e.changidInfo.change_uid)+";绑定后所有数据记录以变更后会员ID"+e._s(e.changidInfo.change_uid)+"为准,\n "),r("em",{staticStyle:{color:"#d53125"}},[e._v("原会员ID"+e._s(e.changidInfo.uid)+"数据将被删除,数据不会进行合并,且不可找回!")]),e._v("请谨慎操作! "),r("br"),e._v("绑定后请注意重新生成推广海报、重新发送推广链接!\n ")]),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.showChangeID=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.register}},[e._v("确认合并")])],1)])],1)}),[],!1,null,"2c6d5004",null);t.default=component.exports},790:function(e,t,o){var content=o(876);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(8).default)("21d5017f",content,!0,{sourceMap:!1})},873:function(e,t,o){e.exports=o.p+"img/bingo.63952c7.png"},874:function(e,t,o){e.exports=o.p+"img/add.78e1039.png"},875:function(e,t,o){"use strict";o(790)},876:function(e,t,o){var r=o(7)(!1);r.push([e.i,".col_red[data-v-2c6d5004]{color:#f11111}.col_green[data-v-2c6d5004]{color:#44be95}.col_white[data-v-2c6d5004]{color:#fff}.flex-col[data-v-2c6d5004]{flex-direction:column}.flex-j-c[data-v-2c6d5004]{justify-content:center}.flex-j-sb[data-v-2c6d5004]{justify-content:space-between}.flex-j-ar[data-v-2c6d5004]{justify-content:space-around}.flex-a-c[data-v-2c6d5004]{align-items:center}.flex-a-e[data-v-2c6d5004]{align-items:flex-end}.w[data-v-2c6d5004]{width:1200px}.m-auto[data-v-2c6d5004]{margin:0 auto}.height-one[data-v-2c6d5004]{height:100%}.flex[data-v-2c6d5004]{display:flex}.text-overflow[data-v-2c6d5004]{-webkit-line-clamp:4}.text-overflow[data-v-2c6d5004],.text-overflow-2[data-v-2c6d5004]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-2c6d5004]{-webkit-line-clamp:2}.text-overflow-3[data-v-2c6d5004]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-2c6d5004],.text-overflow-3[data-v-2c6d5004]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-2c6d5004]{white-space:nowrap}.hiddenScroll[data-v-2c6d5004]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-2c6d5004]::-webkit-scrollbar{display:none}.finger-point[data-v-2c6d5004]{cursor:pointer}.cursor-default[data-v-2c6d5004]{cursor:default}.el-icon-circle-close[data-v-2c6d5004]{color:#fff}.pre_order .pre_content[data-v-2c6d5004]{width:1200px;padding:32px 0}.pre_order .pre_content .way[data-v-2c6d5004]{font-size:16px;margin-bottom:57px;color:#666}.pre_order .pre_content .way[data-v-2c6d5004] .el-radio__input.is-checked .el-radio__inner{border-color:#f11111;background:#f11111}.pre_order .pre_content .way[data-v-2c6d5004] .el-radio__input.is-checked+.el-radio__label{color:#f11111}.pre_order .pre_content .address_list[data-v-2c6d5004]{margin-bottom:27px;flex-wrap:wrap}.pre_order .pre_content .address_list .address[data-v-2c6d5004]{cursor:pointer;width:342px;height:155px;border-radius:4px;border:1px solid #f0f0f0;box-sizing:border-box;margin-right:30px;position:relative}.pre_order .pre_content .address_list .address .address_name[data-v-2c6d5004]{height:48px;border-bottom:1px solid #f0f0f0;padding-left:20px;box-sizing:border-box;padding-right:20px}.pre_order .pre_content .address_list .address .address_info[data-v-2c6d5004]{height:107px;box-sizing:border-box;padding:20px 20px 15px}.pre_order .pre_content .address_list .address .address_info .edit[data-v-2c6d5004]{display:inline-block;margin-top:14px;color:#d7ab4b}.pre_order .pre_content .address_list .address .address_normal[data-v-2c6d5004]{position:absolute;right:0;top:0;width:60px;height:25px;background-color:rgba(0,0,0,.2);color:#fff;font-size:12px}.pre_order .pre_content .address_list .address .address_bingo[data-v-2c6d5004]{position:absolute;right:0;bottom:-4px}.pre_order .pre_content .address_list .address[data-v-2c6d5004]:nth-child(3n+3){margin-right:0;margin-bottom:20px}.pre_order .pre_content .new_add[data-v-2c6d5004]{width:100%;height:57px;border:1px solid #c5c5c5;color:#202020;font-size:18px;cursor:pointer;margin-bottom:59px}.pre_order .pre_content .new_add img[data-v-2c6d5004]{width:21px;height:21px;margin-right:14px}.pre_order .pre_content .detail_accounts .title[data-v-2c6d5004]{height:57px;background-color:#f5f5f5;padding-left:23px;border:1px solid #f0f0f0;border-bottom:none}.pre_order .pre_content .detail_accounts .title .name[data-v-2c6d5004]{font-size:18px;margin-left:8px}.pre_order .pre_content .detail_accounts .accounts_content[data-v-2c6d5004]{padding:14px 23px;border:1px solid #f0f0f0}.pre_order .pre_content .detail_accounts .accounts_content .top .avatar[data-v-2c6d5004]{width:50%}.pre_order .pre_content .detail_accounts .accounts_content .top .avatar img[data-v-2c6d5004]{width:90px;height:90px}.pre_order .pre_content .detail_accounts .accounts_content .top .avatar .avatar_right[data-v-2c6d5004]{margin-left:16px;color:#666}.pre_order .pre_content .detail_accounts .center[data-v-2c6d5004]{background-color:#f8fcff;margin-top:20px;padding:20px}.pre_order .pre_content .detail_accounts .center .center_amount[data-v-2c6d5004],.pre_order .pre_content .detail_accounts .center .center_message[data-v-2c6d5004]{width:50%}.pre_order .pre_content .detail_accounts .center .center_amount div[data-v-2c6d5004]{margin-bottom:20px}.pre_order .pre_content .detail_accounts .center .center_amount div[data-v-2c6d5004]:last-child{margin-bottom:0}.pre_order .pre_content .detail_accounts .el-textarea[data-v-2c6d5004]{width:90%}.pre_order .pre_content .detail_accounts[data-v-2c6d5004] .el-textarea__inner{min-height:84px!important}.pre_order .pre_content .gray_block[data-v-2c6d5004]{background-color:#f5f5f5;padding:21px;margin-top:40px}.pre_order .pre_content .gray_block .gray_left[data-v-2c6d5004]{width:50%}.pre_order .pre_content .gray_block .gray_left .domain-box[data-v-2c6d5004]{display:inline-flex;margin-bottom:20px;cursor:pointer}.pre_order .pre_content .gray_block .gray_left .invoice-box[data-v-2c6d5004]{display:table-cell;cursor:pointer}.pre_order .pre_content .gray_block .gray_right[data-v-2c6d5004]{width:50%}.pre_order .pre_content .gray_block .gray_right div[data-v-2c6d5004]{margin-bottom:20px}.pre_order .pre_content .gray_block .gray_right div[data-v-2c6d5004]:last-child{margin-bottom:0}.pre_order .pre_content .real[data-v-2c6d5004]{height:90px;border:1px solid #f0f0f0;width:100%;margin-top:40px;font-size:16px;justify-content:flex-end;padding-right:31px;box-sizing:border-box}.pre_order .pre_content .real .money[data-v-2c6d5004]{margin-left:10px;font-size:22px;color:#f11111}.pre_order .pre_content .confirm[data-v-2c6d5004]{width:100%;margin-top:20px;justify-content:flex-end;align-items:center}.pre_order .pre_content .confirm[data-v-2c6d5004] .el-checkbox__input.is-checked+.el-checkbox__label{color:#f11111}.pre_order .pre_content .confirm[data-v-2c6d5004] .el-checkbox__input.is-checked .el-checkbox__inner{background-color:#f11111;border-color:#f11111}.pre_order .pre_content .confirm[data-v-2c6d5004] .el-checkbox__inner:hover,.pre_order .pre_content .confirm[data-v-2c6d5004] .el-checkbox__input.is-focus .el-checkbox__inner{border-color:#f11111}.pre_order .pre_content .confirm .confirm_btn[data-v-2c6d5004]{width:185px;height:50px;margin-left:20px;background-color:#f11111;font-size:20px;color:#fff;cursor:pointer}.pre_order .pre_content .border_red[data-v-2c6d5004]{border:1px solid #f11111!important}.pre_order .btn_wrap[data-v-2c6d5004]{justify-content:center}.pre_order .btn_wrap .el-button[data-v-2c6d5004]{width:134px;height:43px;border-radius:4px}.address-box .el-textarea[data-v-2c6d5004],.address-box[data-v-2c6d5004] .el-input{width:314px;height:42px;font-size:16px}.address-box .el-textarea[data-v-2c6d5004]{width:314px;height:110px}.address-box .el-textarea[data-v-2c6d5004] .el-textarea__inner{height:100%}.mobile-box .el-textarea[data-v-2c6d5004],.mobile-box[data-v-2c6d5004] .el-input{width:420px;height:42px;font-size:16px}.coupons-box[data-v-2c6d5004]{height:500px;overflow-y:scroll}.coupons-box p[data-v-2c6d5004]{text-align:center}.coupons-box .coupons-head[data-v-2c6d5004]{width:780px;margin-bottom:20px}.coupons-box .coupons-item[data-v-2c6d5004]{margin:10px 0;width:780px;white-space:normal;word-break:break-all;font-weight:700;font-size:14px;align-items:center}.coupons-box .coupons-item .coupon span[data-v-2c6d5004]{display:flex;justify-content:center;width:100%;color:#fff;background-image:linear-gradient(128deg,#fd9566,#ff6c5a 100%,#fba072 0,#f7d389 0),linear-gradient(#79633c,#79633c);background-blend-mode:normal,normal;border-radius:6px;padding:5px 2px}.info-box[data-v-2c6d5004]{font-size:20px;margin-bottom:20px}.tips[data-v-2c6d5004]{color:#f11111}.getCode[data-v-2c6d5004]{margin-left:15px}",""]),e.exports=r}}]);