(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0785eb0f"],{"6fe3":function(e,o,t){"use strict";t.r(o);var i=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{attrs:{id:"goodsinfo"}},[t("c-title",{attrs:{hide:!1,text:e.title_text}}),e.showPage?e._e():t("div",[t("loading",{attrs:{show:!0}})],1),e.showPage?t("div",{staticClass:"cashier"},[e.show1?e._e():t("div",{staticClass:"header"},[t("div",{staticClass:"img"},[t("img",{attrs:{src:e.store.thumb}})]),t("span",[e._v(e._s(e.store.name))])]),e.show1?e._e():t("div",{staticClass:"pay"},[t("span",[e._v("付款金额")]),t("span",[t("i",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(e.payMuch))])]),t("transition",{attrs:{name:"fade"}},[e.show1?t("div",{staticClass:"popup"},[t("div",{staticStyle:{height:"40px"}}),t("ul",{staticClass:"popup_pay"},[t("li",[e._v("待付款金额")]),t("li",[t("span",[e._v(e._s(e.$i18n.t("money")))]),t("span",[e._v(e._s(e.payMuch))])])]),e.order_data&&e.order_data[0].order_deductions&&e.order_data[0].order_deductions.length?t("div",{staticClass:"tbs"},[t("div",{staticClass:"list"},e._l(e.order_data[0].order_deductions,(function(o,i){return t("div",{key:i,staticClass:"score"},[t("div",{staticClass:"left"},[e._v(" 可用"+e._s(parseFloat(o.coin).toFixed(2))+e._s(o.name)+"抵扣 "),t("span",[e._v(e._s(o.amount)+e._s(e.$i18n.t("元")))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.isClick,expression:"isClick == 0"}],staticClass:"right"},[t("van-switch",{attrs:{"active-color":"#f15353","inactive-color":"#fff",size:"23"},on:{change:e.discountHandle},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"d.checked"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:0!=e.isClick,expression:"isClick != 0"}]},[t("van-loading")],1)])})),0)]):e._e(),t("div",{staticClass:"tbs"},[e._l(e.datas.amount_items,(function(o,i){return t("div",{key:i,staticClass:"price list"},["total_deduction_price"==o.code?t("div",[t("div",{staticClass:"left"},[e._v(e._s(o.name))]),t("div",{staticClass:"right"},[t("div",{staticClass:"right"},[t("font",{attrs:{color:"#E84E40"}},[t("span",[e._v("-")]),e._v(e._s(e.$i18n.t("money"))+e._s(o.amount))])],1)])]):e._e()])})),t("div",{staticClass:"price list"},[t("div",{staticClass:"left"},[e._v("实付金额")]),t("div",{staticClass:"right"},[t("div",{staticClass:"right"},[t("font",{attrs:{color:"#E84E40"}},[e._v(e._s(e.$i18n.t("money"))+e._s(e.price))])],1)])])],2),t("div",{attrs:{id:"payBtnList"}},["0.00"==e.price?t("div",{staticClass:"sureBtn",on:{click:function(o){return e.submit("54")}}},[e._v(e._s(e.confirmPayText))]):e._e(),e.price>0?t("div",{staticClass:"title"},[t("span",{staticClass:"line"}),t("span",[e._v("支付方式")])]):e._e(),e.price>0?[t("yz_pay",{attrs:{payType:e.payType,typename:e.typename,popupSpecs:e.popupSpecs,showQR:e.showQR,qrcode:e.qrcode,showZFBQR:e.showZFBQR,isZFBQR:e.isZFBQR,alipayShow:e.alipayShow,showPacket:e.showPacket,balanceNum:e.balanceNow,balanceNum_store:e.balanceNow_store},on:{submit:e.submit,closePacket:e.closePacket,changePopupSpecs:e.changePopupSpecs,balancePay:e.balancePay}})]:e._e()],2)]):e._e()])],1):e._e()],1)},d=[],a=t("5530"),n=(t("e7e5"),t("d399")),r=(t("b64b"),t("a9e3"),t("e9c4"),t("14d9"),t("d3b7"),t("25f0"),t("07ac"),t("4de4"),t("159b"),t("c428")),s=t("fa44"),l=t("dca4"),f=0,c={mixins:[l["a"]],data:function(){return{isPayClick:!1,isClick:0,showPage:!1,qrcode:"",showQR:!1,show1:!1,goodsInfo:{},order:{},dispatch:{},price:0,datas:{},order_ids:"",balance:0,order_sn:"",money:"",buttons:[],pay_sn:"订单编号",order_pay_id:"",uid:"",payType:[],typename:"",payMuch:"0",showPacket:!1,title_text:"支付",goodsDeductions:[],query:{orders:[],member_coupon_ids:[],address:"",store_profit_price:"",store_profit_uid:"",store_profit_image:""}}},activated:function(){this.isPayClick=!1,this.isClick=0,this.showQR=!1;var e=JSON.parse(localStorage.getItem("profits"));0!==Object.keys(e).length&&(this.query.store_profit_price=e.price,this.query.store_profit_uid=Number(e.uid),this.query.store_profit_image=e.image),this.goodsBuy()},mounted:function(){this.isClick=0,this.popupSpecs=!1},computed:{},methods:{closePop:function(){this.show1=!1,this.isPayClick=!1},goodsBuy:function(){var e=this;this.isClick=1,this.query.orders=JSON.stringify(this._assembleDeduction()),$http.get("plugin.store-profit.frontend.goods-buy.index",this.query,"正在获取").then((function(o){if(1==o.result){var t=o.data;e.setViewData(t),e.btnListIndex(parseFloat(t.total_price))}else e.$dialog.alert({message:o.msg}).then((function(){if(window.history.length<=1)return e.$router.push(e.fun.getUrl("home")),!1;e.$router.go(-1)}))}),(function(e){})).catch((function(e){}))},btnListIndex:function(e){var o=this,t={store_profit_price:e};$http.post("plugin.store-profit.frontend.payment-list.index",t,"正在获取").then((function(e){if(1==e.result){var t=e.data;o.payType=t,o.buttons=t;for(var i=[],d=0;d