徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiuhaoshenghuo/public/view_cashier/js/chunk-7fe120ce.64318954.js

1 line
16 KiB

3 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fe120ce"],{"170c":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"auxScreen"},[r("div",{staticClass:"header acea-row row-between-wrapper"},[r("div",{staticClass:"left acea-row row-middle"},[r("div",{staticClass:"pictrue"},[t.userInfo.avatar?r("img",{attrs:{src:t.userInfo.avatar}}):r("img",{attrs:{src:n("c7de")}})]),r("div",{staticClass:"name"},[t._v(t._s(t.userInfo.nickname))]),r("div",{staticClass:"phone"},[t._v("手机号:"+t._s(t.userInfo.phone||"-"))])]),r("div",{staticClass:"right acea-row row-middle"},[r("div",{staticClass:"item"},[t._v("积分"),r("span",{staticClass:"num"},[t._v(t._s(t.userInfo.integral||"-"))])]),r("div",{staticClass:"item"},[t._v("余额"),r("span",{staticClass:"num"},[t._v(t._s(t.userInfo.now_money||"-"))])])])]),r("div",{staticClass:"selected acea-row row-middle"},[t._v("已选购"),r("span",{staticClass:"num"},[t._v(t._s(t.count))]),t._v("件")]),t.cartList.length?r("div",{staticClass:"list"},t._l(t.cartList,(function(e,n){return r("div",{key:n+"cart",staticClass:"item"},[e.promotions.length?r("div",{staticClass:"activeCon"},t._l(e.promotions,(function(e,n){return r("div",{key:n,staticClass:"activity"},[r("span",{staticClass:"label"},[t._v(t._s(e.title))]),t._v(t._s(e.desc)+"\n ")])})),0):t._e(),t._l(e.cart,(function(e,n){return r("div",{key:n+"l",staticClass:"picTxt acea-row row-between-wrapper"},[r("div",{staticClass:"acea-row row-middle"},[r("div",{staticClass:"pictrue"},[e.productInfo.attrInfo?r("img",{attrs:{src:e.productInfo.attrInfo.image,alt:""}}):r("img",{attrs:{src:e.productInfo.image}})]),r("div",{staticClass:"text"},[r("div",{staticClass:"name line1"},[e.is_gift?r("span",{staticClass:"giftTxt"},[t._v("赠品")]):t._e(),t._v(t._s(e.productInfo.store_name))]),e.productInfo.attrInfo&&e.productInfo.spec_type?r("div",[t._v(t._s(e.productInfo.attrInfo.suk))]):r("div",[t._v("默认")])])]),r("div",[r("span",{staticClass:"cartNum"},[t._v("x"+t._s(e.cart_num))]),r("span",{staticClass:"money"},[t._v("¥"+t._s(e.sum_price))])])])}))],2)})),0):r("div",{staticClass:"list"},[t._m(0)]),r("footer",{staticClass:"footer acea-row row-middle row-right"},[r("div",[t._v("优惠:-"+t._s(this.$computes.Sub(t.priceInfo.sumPrice||0,t.priceInfo.payPrice||0)||0))]),r("div",{staticClass:"payment acea-row row-middle"},[t._v("实付:"),r("span",{staticClass:"label"},[t._v("¥")]),r("span",{staticClass:"num"},[t._v(t._s(t.priceInfo.payPrice?t.priceInfo.payPrice:0))])])])])},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"noGoods"},[r("img",{staticClass:"img",attrs:{src:n("e697")}}),r("div",{staticClass:"tip"},[t._v("暂无商品,快去添加吧~")])])}],c=n("c276"),i=n("d708"),a=n("a026");function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var f={},l={},h=function(){function t(e){u(this,t),this.vm=new a["default"],this.ws=null,this.opt=e||{},this.networkStatus=!0,this.reconneMax=100,this.connectLing=!1,f[this.opt.key]=null,l[this.opt.key]=0,this.init(e),this.networkWath(),this.defaultEvenv()}return d(t,[{key:"defaultEvenv",value:function(){this.vm.$on("timeout",this.timeoutEvent.bind(this))}},{key:"timeoutEvent",value:function(){this.reconne()}},{key:"guid",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)}))}},{key:"addHandler",value:function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}},{key:"networkWath",value:function(){var t=this;this.addHandler(window,"online",(function(){t.networkStatus=!0,console.log("联网了"),t.ws.close(),t.vm.$on("timeout",t.timeoutEvent)})),this.add