(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-order_confirm-index"],{"04f4":function(t,e,i){var n=i("aebe");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("2f21b4a3",n,!0,{sourceMap:!1,shadowMode:!1})},"05d5":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes show-data-v-0dd45dbe{0%{opacity:0}100%{opacity:1}}@keyframes show-data-v-0dd45dbe{0%{opacity:0}100%{opacity:1}}uni-video[data-v-0dd45dbe]{width:%?750?%}\n\n\n\n",""]),t.exports=e},1841:function(t,e,i){"use strict";var n=i("26b8"),a=i.n(n);a.a},"1d3f":function(t,e,i){"use strict";i("7db0"),i("d3b7"),i("25f0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("5e22"),a={props:{invoice:{type:Object,default:function(){return{invoice:!1,mer_id:0}}}},data:function(){return{id:"",receipt_title_type:"1",receipt_type:"1",drawer_phone:"",receipt_title:"",duty_paragraph:"",tel:"",address:"",bank_name:"",bank_code:"",is_default:0,email:"",isDefault:[],typeName:"增值税电子普通发票",popupType:!1,popupTitle:!1,invoiceTypeList:[{type:"1",name:"增值税电子普通发票",info:"默认发送至所提供的电子邮件"},{type:"2",name:"增值税专用发票",info:"纸质发票开出后将以邮寄形式交付"}],special_invoice:!0,invoice_func:!0,invoiceList:[],invoice_checked:"",invoice_id:"",order_id:"",news:"",cartId:"",pinkId:"",couponId:"",addressId:"",invoiceData:{},formvalidate:!1}},watch:{},onLoad:function(t){this.news=t.news,this.cartId=t.cartId,this.pinkId=t.pinkId,this.couponId=t.couponId,this.addressId=t.addressId,"false"==t.special_invoice&&this.$set(this,"special_invoice",!1)},onShow:function(){this.getInvoiceDefault(),this.popupTitle=!1},methods:{getInvoiceList:function(){var t=this;(0,n.invoice)().then((function(e){for(var i=0;i0&&uni.navigateTo({url:"/pages/users/goods_details_store/index"})},goStore:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},computedPrice:function(){this.shippingType},addressType:function(t){var e=t;this.shippingType=parseInt(e),this.computedPrice(),1==e&&this.getList()},bindPickerChange:function(t){var e=t.detail.value;this.shippingType=e,this.computedPrice()},ChangCouponsClone:function(){this.$set(this.coupon,"status",!1)},changeTextareaStatus:function(){for(var t=0,e=this.coupon.list.length;t0?i.data.list[0]:{},e.addressId=i.data.list.length>0?i.data.list[0].address_id:0,e.address.addressId=i.data.list.length>0?i.data.list[0].address_id:0,t.getConfirm(e.addressId)}))},payItem:function(t){var e=this,i=t;e.active=i,e.animated=!0,e.payType=e.cartArr[i].value,"weixin"==e.payType&&(e.payType=e.from)},couponTap:function(t,e){this.coupon=t,this.$set(this.coupon,"status",!0),this.couponIndex=e},car:function(){var t=this;t.animated=!1},onAddress:function(){var t=this;t.textareaStatus=!1,t.address.address=!0,t.pagesUrl="/pages/users/user_address_list/index?cartId="+this.cartId+"&pinkId="+this.pinkId+"&couponId="+this.couponId},goInvoice:function(t){var e=this;e.invoice.invoice=!0,e.invoice.mer_id=t,this.$refs.addInvoicing.getInvoiceDefault(),this.$refs.addInvoicing.getInvoiceList()},realName:function(t){this.contacts=t.detail.value},phone:function(t){this.contactsTel=t.detail.value},payment:function(t){var e=this,i=this;(0,a.orderCreate)(t).then((function(t){var n=t.data.status,a=t.data.result.order_id,o=t.data.result.pay_key,r=t.data.result.config,s="/pages/order_pay_status/index?order_id="+a+"&msg="+t.message;switch(i.orderPay=!0,n){case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":case"error":return uni.hideLoading(),i.$util.Tips({title:t.msg},{tab:5,url:s});case"success":return uni.hideLoading(),i.BargainId||i.combinationId||i.pinkId||i.seckillId?i.$util.Tips({title:t.msg,icon:"success"},{tab:4,url:s}):i.$util.Tips({title:t.msg,icon:"success"},{tab:5,url:s});case"alipay":case"alipayQr":return uni.hideLoading(),e.$emit("onChangeFun",{action:"payClose"}),void uni.navigateTo({url:"/pages/order_pay_back/index?keyCode="+o+"&url="+r});case"wechat":case"weixin":r.timeStamp=r.timestamp,e.$wechat.pay(r).then((function(t){return i.$util.Tips({title:t.message,icon:"success"},{tab:4,url:s})})).catch((function(t){if("chooseWXPay:cancel"==t.errMsg)return i.$util.Tips({title:"取消支付"},{tab:5,url:s+"&status=0"})}));break;case"balance":return uni.hideLoading(),i.$util.Tips({title:t.msg},{tab:5,url:s+"&status=1"});case"h5":var c=window.location.protocol+"//"+window.location.host,d="".concat(c,"/pages/order_pay_status/index?order_id=").concat(a),u=encodeURIComponent(d),l="".concat(r.mweb_url,"&redirect_url=").concat(u);setTimeout((function(){location.href=l}),100);break}})).catch((function(t){return uni.hideLoading(),i.$util.Tips({title:t})}))},isEmojiCharacter:function(t){if(t)for(var e=0;e1){var n=t.charCodeAt(e+1),a=1024*(i-55296)+(n-56320)+65536;if(118784<=a&&a<=128895)return!0}}else if(t.length>1){n=t.charCodeAt(e+1);if(8419==n)return!0}else{if(8448<=i&&i<=10239)return!0;if(11013<=i&&i<=11015)return!0;if(10548<=i&&i<=10549)return!0;if(12951<=i&&i<=12953)return!0;if(169==i||174==i||12349==i||12336==i||11093==i||11036==i||11035==i||11088==i)return!0}}},SubOrder:function(t){var e=this,i={};if(!e.payType)return e.$util.Tips({title:"请选择支付方式"});if(!e.addressId&&!e.shippingType)return e.$util.Tips({title:"请选择收货地址"});if("finish"!=e.orderStatus)return e.$util.Tips({title:"收货地址不在配送区域"});if("noDeliver"==e.orderStatus)return e.$util.Tips({title:"暂不发货"});if(2==e.order_type&&!e.isAgree&&2==e.cartInfo[0].list[0].productPresell.presell_type)return e.$util.Tips({title:"请阅读并勾选协议,否则无法进行操作"});var n={},a=0;if(e.cartInfo.forEach((function(t){n=e.subCoupon[t.mer_id]={},n.product=[],n.store="",n.product=t.order.use_coupon_product,a=e.$util.$h.Add(a,t.order.coupon_price),t.coupon.forEach((function(t){0==t.coupon.type&&t.checked&&(n.store=t.coupon_user_id)}))})),i={cart_id:this.cartId.split(","),address_id:this.addressId,coupon:this.subCoupon,pay_type:this.payType,mark:this.msgObj,order_type:this.order_type,take:[],receipt_data:this.invoiceData,return_url:"http://"+window.location.host+"/pages/users/order_list/index"},i.mark&&this.isEmojiCharacter(i.mark[Object.keys(i.mark)[0]]))e.$util.Tips({title:"备注不允许输入表情!"});else{if(this.cartInfo.map((function(t){1==t.isTake&&i.take.push(t.mer_id)})),"balance"==i.payType&&parseFloat(e.userInfo.now_money)=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){c=!0,r=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(c)throw r}}}}},b969:function(t,e,i){"use strict";i.r(e);var n=i("44db"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},c424:function(t,e,i){"use strict";var n=i("5969"),a=i.n(n);a.a},cafb:function(t,e,i){"use strict";i("4160"),i("a9e3"),i("acd8"),i("ac1f"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i("d2a5");var n={props:{openType:{type:Number,default:0},coupon:{type:Object,default:function(){return{}}},subCoupon:{type:Object}},filters:{timeYMD:function(t){if(t){var e=/\d{4}-(\d{1,2}\d{1,2}-\d{1,2}\d{1,2})/g.exec(t);return(null===e||void 0===e?void 0:e[1])||""}}},data:function(){return{couponArr:[],couponData:{},active:{},allNum:0,allCouponNum:0,use_store_coupon:0,pay_price:0,goodsOrder:""}},mounted:function(){this.couponData=this.coupon,this.couponArr=JSON.parse(JSON.stringify(this.coupon.coupon)),this.goodsOrder=JSON.parse(JSON.stringify(this.coupon.order));var t=this.active[this.couponData.mer_id]={};t.product=[],t.store="",this.allActive()},methods:{close:function(){this.$emit("ChangCouponsClone")},getCouponUser:function(t,e){var i=this;if(1==e.coupon.type)(function(){var t=i.goodsOrder,n=0;if(e.checked){for(var a in t.use_coupon_product)t.use_coupon_product[a]==e.coupon_user_id&&delete t.use_coupon_product[a];e.checked=!1}else for(var o=function(a){if(t.product_price[e.product[a].product_id]&&(n=t.product_price[e.product[a].product_id],n>=parseFloat(e.use_min_price)))return t.use_coupon_product[e.product[a].product_id]?(i.couponArr.forEach((function(i){i.coupon_user_id==t.use_coupon_product[e.product[a].product_id]&&(i.checked=!1)})),e.checked=!0,t.use_coupon_product[e.product[a].product_id]=e.coupon_user_id):(e.checked=!0,t.use_coupon_product[e.product[a].product_id]=e.coupon_user_id),"break"},r=0;r=parseFloat(this.couponData.order.total_price)?this.allCouponNum=this.couponData.order.total_price:0!==this.allNum?this.allCouponNum=i||n?a:this.couponData.order.total_price:this.allCouponNum=a},confirm:function(){this.couponData.order=this.goodsOrder;var t=0;t=this.$util.$h.Sub(this.couponData.order.total_price,this.allCouponNum),t>0?this.couponData.order.pay_price=this.$util.$h.Add(t,this.couponData.order.postage_price):0==this.allNum?this.couponData.order.pay_price=this.$util.$h.Add(this.couponData.order.total_price,this.couponData.order.postage_price):this.couponData.order.pay_price=this.couponData.order.postage_price,this.couponData.order.coupon_price=this.allCouponNum,this.couponData.order.use_store_coupon=this.use_store_coupon,this.couponData.coupon=this.couponArr,this.active[this.coupon.mer_id].product=this.goodsOrder.use_coupon_product,this.subCoupon[this.coupon.mer_id]=this.active[this.coupon.mer_id],this.$emit("ChangCoupons",this.couponData)}}};e.default=n},ceba:function(t,e,i){"use strict";i.r(e);var n=i("f55c"),a=i("649a");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("c424");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"76400f63",null,!1,n["a"],r);e["default"]=c.exports},d2a5:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexData=o,e.getLogo=r,e.setFormId=s,e.setCouponReceive=c,e.getCoupons=d,e.getShopCoupons=u,e.getUserCoupons=l,e.getArticleCategoryList=p,e.getArticleList=f,e.getArticleHotList=v,e.getArticleBannerList=h,e.getArticleDetails=g,e.loginMobile=m,e.verifyCode=b,e.registerVerify=_,e.phoneRegister=w,e.phoneRegisterReset=y,e.phoneLogin=x,e.switchH5Login=k,e.bindingPhone=C,e.logout=A,e.getTemlIds=I,e.pink=T,e.getCity=$,e.getLiveList=z;var a=n(i("112d"));function o(){return a.default.get("common/home",{},{noAuth:!0})}function r(){return a.default.get("wechat/get_logo",{},{noAuth:!0})}function s(t){return a.default.post("wechat/set_form_id",{formId:t})}function c(t){return a.default.post("coupon/receive/"+t)}function d(t){return a.default.get("coupon/product",t,{noAuth:!0})}function u(t){return a.default.get("coupon/store/"+t,{},{noAuth:!0})}function l(t){return a.default.get("coupon/list",t)}function p(){return a.default.get("article/category/lst",{},{noAuth:!0})}function f(t,e){return a.default.get("article/lst/"+t,e,{noAuth:!0})}function v(){return a.default.get("article/hot/list",{},{noAuth:!0})}function h(){return a.default.get("article/banner/list",{},{noAuth:!0})}function g(t){return a.default.get("article/detail/"+t,{},{noAuth:!0})}function m(t){return a.default.post("login/mobile",t,{noAuth:!0})}function b(){return a.default.get("verify_code",{},{noAuth:!0})}function _(t,e,i,n){return a.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:i,code:n},{noAuth:!0})}function w(t){return a.default.post("register",t,{noAuth:!0})}function y(t){return a.default.post("register/reset",t,{noAuth:!0})}function x(t){return a.default.post("login",t,{noAuth:!0})}function k(t){return a.default.post("user/switch",t)}function C(t){return a.default.post("user/binding",t)}function A(){return a.default.get("logout")}function I(){return a.default.get("wechat/teml_ids",{},{noAuth:!0})}function T(){return a.default.get("pink",{},{noAuth:!0})}function $(){return a.default.get("system/city/lst",{},{noAuth:!0})}function z(t,e){return a.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})}},d3f2:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"mask-box"},[t.isShowBox?i("v-uni-view",{staticClass:"bg"}):t._e(),i("v-uni-view",{staticClass:"mask-content animated",class:{slideInUp:t.isShowBox}},[i("v-uni-view",{staticClass:"title-bar"},[t._v("配送方式"),i("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeShowBox.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-guanbi"})],1)],1),i("v-uni-view",{staticClass:"box"},t._l(t.radioList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"check-item",class:{on:n==t.radioIndex}},[i("v-uni-view",[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"radio",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindCheck(e,n)}}},[n==t.newData.isTake?[i("v-uni-view",{staticClass:"iconfont icon-xuanzhong1"})]:[i("v-uni-view",{staticClass:"iconfont icon-weixuanzhong"})]],2)],1)})),1),i("v-uni-view",{staticClass:"foot"},[i("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmBtn.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)],1)},o=[]},d7e8:function(t,e,i){t.exports=i.p+"static/img/noCoupon.cca04173.png"},da1c:function(t,e,i){"use strict";var n=i("04f4"),a=i.n(n);a.a},e381:function(module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__("4ea4");__webpack_require__("99af"),__webpack_require__("caad"),__webpack_require__("c975"),__webpack_require__("acd8"),__webpack_require__("ac1f"),__webpack_require__("2532"),__webpack_require__("466d"),__webpack_require__("5319"),__webpack_require__("1276"),Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createForOfIteratorHelper2=_interopRequireDefault(__webpack_require__("b85c")),rpx=uni.getSystemInfoSync().screenWidth/750,cfg=__webpack_require__("989b"),_default={name:"parser",data:function(){return{uid:this._uid,scaleAm:"",showAm:"",imgs:[],nodes:[]}},props:{html:null,autopause:{type:Boolean,default:!0},autosetTitle:{type:Boolean,default:!0},domain:String,gestureZoom:Boolean,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},mounted:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e.5?i.toUpperCase():i}return n+=e.substr(a),this[t]=n}if(this[t]=e,e.includes("data:image")){var o=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!o)return}}},this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{_Dom2Str:function(t){var e,i="",n=(0,_createForOfIteratorHelper2.default)(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;if("text"==a.type)i+=a.text;else{for(var o in i+="<"+a.name,a.attrs||{})i+=" "+o+'="'+a.attrs[o]+'"';a.children&&a.children.length?i+=">"+this._Dom2Str(a.children)+"":i+=">"}}}catch(r){n.e(r)}finally{n.f()}return i},_handleHtml:function(t,e){if("string"!=typeof t&&(t=this._Dom2Str(t.nodes||t)),t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*rpx+"px"}))),!e){var i="",t=i+t}return t},setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var a,o=this.rtf.getElementsByTagName("style"),r=0;a=o[r++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"900px 0px 900px 0px"}));var s=this,c=this.rtf.getElementsByTagName("title");c.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:c[0].innerText}),this.imgList.length=0;for(var d,u=this.rtf.getElementsByTagName("img"),l=0,p=0;d=u[l];l++){d.style.maxWidth="100%";var f=d.getAttribute("src");this.domain&&f&&("/"==f[0]?"/"==f[1]?d.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+f:d.src=this.domain+f:f.includes("://")||(d.src=this.domain+"/"+f)),d.hasAttribute("ignore")||"A"==d.parentElement.nodeName||(d.i=p++,s.imgList.push(d.src||d.getAttribute("data-src")),d.onclick=function(){var t=!0;this.ignore=function(){return t=!1},s.$emit("imgtap",this),t&&uni.previewImage({current:this.i,urls:s.imgList})}),d.onerror=function(){s.$emit("error",{source:"img",target:this})},s.lazyLoad&&this._observer&&d.src&&0!=d.i&&(d.setAttribute("data-src",d.src),d.removeAttribute("src"),this._observer.observe(d))}var v,h=this.rtf.getElementsByTagName("a"),g=(0,_createForOfIteratorHelper2.default)(h);try{for(g.s();!(v=g.n()).done;){var m=v.value;m.onclick=function(){var t=!0,e=this.getAttribute("href");if(s.$emit("linkpress",{href:e,ignore:function(){return t=!1}}),t&&e)if("#"==e[0])s.useAnchor&&s.navigateTo({id:e.substr(1)});else{if(0==e.indexOf("http")||0==e.indexOf("//"))return!0;uni.navigateTo({url:e})}return!1}}}catch(I){g.e(I)}finally{g.f()}var b=this.rtf.getElementsByTagName("video");s.videoContexts=b;for(var _,w=0;_=b[w++];)_.style.width="100%",_.onerror=function(){s.$emit("error",{source:"video",target:this})},_.onplay=function(){if(s.autopause)for(var t,e=0;t=s.videoContexts[e++];)t!=this&&t.pause()};var y,x,k=this.rtf.getElementsByTagName("audios"),C=(0,_createForOfIteratorHelper2.default)(k);try{for(C.s();!(y=C.n()).done;){var A=y.value;A.onerror=function(){s.$emit("error",{source:"audio",target:this})}}}catch(I){C.e(I)}finally{C.f()}this.document=this.rtf,e||document.getElementById("rtf"+this._uid).appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){var t=[i.rtf.getBoundingClientRect()];i.width=t[0].width,t[0].height==x&&(i.$emit("ready",t[0]),clearInterval(i._timer)),x=t[0].height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;return this.rtf.innerText},navigateTo:function(t){if(!this.useAnchor)return t.fail&&t.fail({errMsg:"Anchor is disabled"});if(!t.id)return window.scrollTo(0,this.rtf.offsetTop),t.success&&t.success({errMsg:"pageScrollTo:ok"});var e=document.getElementById(t.id);if(!e)return t.fail&&t.fail({errMsg:"Label not found"});t.scrollTop=this.rtf.offsetTop+e.offsetTop,uni.pageScrollTo(t)},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},preLoad:function preLoad(html,num){html.constructor==Array&&(html=this._Dom2Str(html));var script="var contain=document.createElement('div');contain.innerHTML='"+html.replace(/'/g,"\\'")+"';for(var imgs=contain.querySelectorAll('img'),i=imgs.length-1;i>="+num+";i--)imgs[i].removeAttribute('src');";eval(script)},_tap:function(t){if(this.gestureZoom&&t.timeStamp-this._lastT<300){var e=t.touches[0].pageY-t.currentTarget.offsetTop;if(this._zoom)this._scaleAm.translateX(0).scale(1).step(),uni.pageScrollTo({scrollTop:(e+this._initY)/2-t.touches[0].clientY,duration:400});else{var i=t.touches[0].pageX-t.currentTarget.offsetLeft;this._initY=e,this._scaleAm=uni.createAnimation({transformOrigin:"".concat(i,"px ").concat(this._initY,"px 0"),timingFunction:"ease-in-out"}),this._scaleAm.scale(2).step(),this._tMax=i/2,this._tMin=(i-this.width)/2,this._tX=0}this._zoom=!this._zoom,this.scaleAm=this._scaleAm.export()}this._lastT=t.timeStamp},_touchstart:function(t){1==t.touches.length&&(this._initX=this._lastX=t.touches[0].pageX)},_touchmove:function(t){var e=t.touches[0].pageX-this._lastX;if(this._zoom&&1==t.touches.length&&Math.abs(e)>20){if(this._lastX=t.touches[0].pageX,this._tX<=this._tMin&&e<0||this._tX>=this._tMax&&e>0)return;this._tX+=e*Math.abs(this._lastX-this._initX)*.05,this._tXthis._tMax&&(this._tX=this._tMax),this._scaleAm.translateX(this._tX).step(),this.scaleAm=this._scaleAm.export()}}}};exports.default=_default},f0697:function(t,e,i){"use strict";i.r(e);var n=i("e381"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},f258:function(t,e,i){"use strict";i.r(e);var n=i("8376"),a=i("907c");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("8df2");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"1ec1e853",null,!1,n["a"],r);e["default"]=c.exports},f55c:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={jyfParser:i("54ec").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"order-submission"},[i("v-uni-view",{staticClass:"allAddress",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onAddress.apply(void 0,arguments)}}},[0==t.shippingType?i("v-uni-view",{staticClass:"address acea-row row-between-wrapper"},[t.addressInfo.real_name?i("v-uni-view",{staticClass:"addressCon"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(t.addressInfo.real_name)),i("v-uni-text",{staticClass:"phone"},[t._v(t._s(t.addressInfo.phone))])],1),i("v-uni-view",[t.addressInfo.is_default?i("v-uni-text",{staticClass:"default font-color"},[t._v("[默认]")]):t._e(),t._v(t._s(t.addressInfo.province)+t._s(t.addressInfo.city)+t._s(t.addressInfo.district)+t._s(t.addressInfo.detail))],1)],1):i("v-uni-view",{staticClass:"addressCon"},[i("v-uni-view",{staticClass:"setaddress"},[t._v("设置收货地址")])],1),i("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1):t._e(),i("v-uni-view",{staticClass:"line"},[i("v-uni-image",{attrs:{src:"/static/images/line.jpg"}})],1)],1),i("v-uni-view",{staticClass:"storeinfo-wrapper"},t._l(t.cartInfo,(function(e,n){return i("v-uni-view",{key:n,staticClass:"store-item"},[i("v-uni-view",{staticClass:"store-title"},[i("v-uni-text",{staticClass:"iconfont icon-shangjiadingdan"}),i("v-uni-view",{staticClass:"txt",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goStore(e.mer_id)}}},[t._v(t._s(e.mer_name))]),i("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1),t._l(e.list,(function(e,n){return i("v-uni-view",{key:n},[2==e.product_type?i("v-uni-view",[i("v-uni-view",{staticClass:"product-item"},[i("v-uni-view",{staticClass:"img-box"},[i("v-uni-image",{attrs:{src:e.productPresellAttr.image||e.product.image}})],1),i("v-uni-view",{staticClass:"content event_content"},[i("v-uni-view",{staticClass:"name line1"},[i("v-uni-text",{staticClass:"event_name event_bg"},[t._v("预售")]),t._v(t._s(e.productPresell.store_name))],1),i("v-uni-view",{staticClass:"label",staticStyle:{width:"70%"}},[t._v(t._s(e.productAttr.sku))]),i("v-uni-view",{staticClass:"price"},[t._v("¥"+t._s(e.productPresellAttr.presell_price)),i("v-uni-text",[t._v("X"+t._s(e.cart_num))])],1),i("v-uni-view",{staticClass:"event_ship event_color"},[t._v("发货时间:"),1===e.productPresell.presell_type?i("v-uni-text",[t._v(t._s(1===e.productPresell.delivery_type?"支付后":"预售结束后")+t._s(e.productPresell.delivery_day)+"天内")]):t._e(),2===e.productPresell.presell_type?i("v-uni-text",[t._v(t._s(1===e.productPresell.delivery_type?"付尾款后":"预售结束后")+t._s(e.productPresell.delivery_day)+"天内")]):t._e()],1),e.undelivered&&t.addressInfo.real_name?i("v-uni-view",{staticClass:"err-txt"},[i("v-uni-text",{staticClass:"iconfont icon-zhuyi-copy"}),i("v-uni-view",{staticClass:"txt"},[t._v("此商品不支持该区域配送")])],1):t._e()],1)],1),2===e.productPresell.presell_type?i("v-uni-view",{staticClass:"event_payTime"},[i("v-uni-view",{staticClass:"event_progress"},[i("v-uni-view",{staticClass:"progress_step"},[i("v-uni-text",{staticClass:"name color_red"},[t._v("定金")]),i("v-uni-text",{staticClass:"price color_red"},[t._v("¥"+t._s((e.productPresellAttr.down_price*e.cart_num).toFixed(2)))])],1),i("v-uni-view",{staticClass:"progress_step"},[i("v-uni-text",{staticClass:"name"},[t._v("尾款")]),i("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s((e.productPresellAttr.final_price*e.cart_num).toFixed(2)))])],1),i("v-uni-view",{staticClass:"progress_pay"},[t._v(t._s(t._f("filterDay")(e.productPresell.final_start_time))+"开始支付尾款")])],1)],1):t._e()],1):i("v-uni-view",[i("v-uni-view",{staticClass:"product-item"},[i("v-uni-view",{staticClass:"img-box"},[i("v-uni-image",{attrs:{src:e.productAttr.image||e.product.image}})],1),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.product.store_name))]),i("v-uni-view",{staticClass:"label"},[t._v(t._s(e.productAttr.sku))]),i("v-uni-view",{staticClass:"price"},[3==t.order_type?[t._v("¥"+t._s(e.productAssistAttr.assist_price))]:4==t.order_type?[t._v("¥"+t._s(e.activeSku.active_price))]:[t._v("¥"+t._s(e.productAttr.price))],i("v-uni-text",[t._v("X"+t._s(e.cart_num))])],2),e.undelivered&&t.addressInfo.real_name?i("v-uni-view",{staticClass:"err-txt"},[i("v-uni-text",{staticClass:"iconfont icon-zhuyi-copy"}),i("v-uni-view",{staticClass:"txt"},[t._v("此商品不支持该区域配送")])],1):t._e()],1)],1)],1)],1)})),i("v-uni-view",{staticClass:"wrapper"},[0!=e.take.mer_take_status?i("v-uni-view",{staticClass:"boxs"},[i("v-uni-view",{staticClass:"item acea-row row-between-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openShowBox(e,n)}}},[i("v-uni-view",[t._v("配送方式")]),i("v-uni-view",{staticClass:"discount"},[t._v(t._s(0==e.isTake?"快递配送":"到店自提")),i("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1),e.isTake?i("v-uni-view",{staticClass:"store-address"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.take.mer_take_name))]),i("v-uni-view",{staticClass:"info"},[t._v(t._s(e.take.mer_take_address))]),i("v-uni-view",{staticClass:"map",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goMap(e)}}},[i("v-uni-text",{staticClass:"iconfont icon-chakanditu"}),i("v-uni-view",{staticClass:"map_text"},[t._v("查看地图")])],1)],1):t._e()],1):t._e(),0==t.shippingType&&0==e.isTake?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("快递费用"),e.list[0].productPresell&&2==e.list[0].productPresell.presell_type?i("v-uni-text",[t._v("(尾款阶段)")]):t._e()],1),e.order.postage_price>0?i("v-uni-view",{staticClass:"discount"},[t._v("+¥"+t._s(e.order.postage_price))]):i("v-uni-view",{staticClass:"discount"},[t._v("免运费")])],1):t._e(),t.pinkId||t.BargainId||t.combinationId||t.seckillId||3==t.order_type||4==t.order_type?t._e():i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("优惠券")]),e.coupon.length>0?[i("v-uni-view",{staticClass:"discount",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.couponTap(e,n)}}},[e.order.coupon_price>0?i("v-uni-text",[t._v("优惠¥"+t._s(e.order.coupon_price))]):i("v-uni-text",[t._v("暂未选择优惠券")]),i("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)]:[i("v-uni-view",{staticClass:"discount"},[t._v("暂无优惠券")])]],2),1==e.openReceipt?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goInvoice(e.mer_id)}}},[i("v-uni-view",[t._v("开具发票")]),i("v-uni-view",{staticClass:"discount discount_voice"},[t._v(t._s(e.invoiceData&&e.invoiceData.receipt_title?e.invoiceData.receipt_title:"不开发票")),i("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1):t._e(),2===t.order_type&&2==e.list[0].productPresell.presell_type?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper",staticStyle:{"border-top":"1px solid #f5f5f5","border-bottom":"1px solid #f5f5f5"}},[i("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeIsAgree.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-wenhao1"}),i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showProtocol=!0}}},[t._v("我已同意定金不退等预售协议")]),i("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}})],1)],1):t._e(),t.textareaStatus?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("备注信息")]),!1===t.coupon.status?i("v-uni-input",{attrs:{"placeholder-class":"placeholder",value:"",name:"mark",placeholder:"选填备注信息"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.bindHideKeyboard.apply(void 0,arguments)}},model:{value:t.msgObj[e.mer_id],callback:function(i){t.$set(t.msgObj,e.mer_id,i)},expression:"msgObj[item.mer_id]"}}):t._e()],1):t._e(),i("v-uni-view",{staticClass:"total"},[t._v("共"+t._s(e.order.total_num)+"件 小计"),0==e.isTake?i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(e.order.pay_price))],1):t._e(),1==e.isTake?i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(e.order.org_price))],1):t._e()],1)],1)],2)})),1),t.showProtocol?i("v-uni-view",{staticClass:"settlementAgreement"},[i("v-uni-view",{staticClass:"setAgCount"},[i("i",{staticClass:"icon iconfont icon-cha",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showProtocol=!1}}}),i("div",{staticClass:"title"},[t._v("预售协议")]),i("v-uni-view",{staticClass:"content"},[i("jyf-parser",{ref:"article",attrs:{html:t.protocol,"tag-style":t.tagStyle}})],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",[t._v("支付方式")]),i("v-uni-view",{staticClass:"list"},t._l(t.cartArr,(function(e,n){return 1==e.payStatus?i("v-uni-view",{key:n,staticClass:"payItem acea-row row-middle",class:t.active==n?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.payItem(n)}}},[i("v-uni-view",{staticClass:"name acea-row row-center-wrapper"},[i("v-uni-view",{staticClass:"iconfont animated",class:e.icon+" "+(1==t.animated&&t.active==n?"bounceIn":"")}),t._v(t._s(e.name))],1),i("v-uni-view",{staticClass:"tip"},[t._v(t._s(e.title)),"balance"==e.value?[t._v(t._s(t.userInfo.now_money))]:t._e()],2)],1):t._e()})),1)],1)],1),i("v-uni-view",{staticClass:"moneyList"},[i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("商品总价:")]),i("v-uni-view",{staticClass:"money"},[t._v("¥"+t._s(t.proPrice))])],1),t.coupon_price>0?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("优惠券抵扣:")]),i("v-uni-view",{staticClass:"money"},[t._v("-¥"+t._s(t.coupon_price))])],1):t._e(),t.integral_price>0?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("积分抵扣:")]),i("v-uni-view",{staticClass:"money"},[t._v("-¥"+t._s(t.integral_price))])],1):t._e(),t.priceGroup.storePostage>0?i("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[i("v-uni-view",[t._v("运费:")]),i("v-uni-view",{staticClass:"money"},[t._v("+¥"+t._s(t.priceGroup.storePostage))])],1):t._e()],1),i("v-uni-view",{staticStyle:{height:"120rpx"}}),i("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[i("v-uni-view",[t._v("合计:"),i("v-uni-text",{staticClass:"font-color"},[t._v("¥"+t._s(t.totalPrice||0))])],1),i("v-uni-view",{staticClass:"settlement",class:t.addressInfo.real_name?"":"disabled",staticStyle:{"z-index":"100"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.SubOrder.apply(void 0,arguments)}}},[t._v(t._s(t.addressInfo.real_name?"立即结算":"选择地址"))])],1)],1),t.coupon.status?[i("couponListWindow",{attrs:{coupon:t.coupon,openType:t.openType,cartId:t.cartId,subCoupon:t.subCoupon},on:{ChangCouponsClone:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangCouponsClone.apply(void 0,arguments)},ChangCoupons:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangCoupons.apply(void 0,arguments)}}})]:t._e(),i("addressWindow",{ref:"addressWindow",attrs:{address:t.address,pagesUrl:t.pagesUrl},on:{changeTextareaStatus:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTextareaStatus.apply(void 0,arguments)},OnChangeAddress:function(e){arguments[0]=e=t.$handleEvent(e),t.OnChangeAddress.apply(void 0,arguments)},changeClose:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)}}}),i("addInvoicing",{ref:"addInvoicing",attrs:{invoice:t.invoice},on:{changeInvoiceClose:function(e){arguments[0]=e=t.$handleEvent(e),t.changeInvoiceClose.apply(void 0,arguments)}}}),t.isShowBox?[i("checkDelivery",{attrs:{isShowBox:t.isShowBox,activeObj:t.activeObj},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.boxClose.apply(void 0,arguments)},confirmBtn:function(e){arguments[0]=e=t.$handleEvent(e),t.getData.apply(void 0,arguments)}}})]:t._e()],2)},o=[]}}]);