(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fdeb447"],{c0d0:function(t,o,e){"use strict";e.r(o);var a=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"guide"},[e("c-title",{attrs:{text:t.is_retail?"零售":"订货"}}),e("van-search",{staticClass:"search-goods-bar",attrs:{"show-action":"",placeholder:"请输入搜索的内容",shape:"round"},scopedSlots:t._u([{key:"action",fn:function(){return[e("div",{staticClass:"explain-show-button",on:{click:function(o){t.showExplainPopup=!t.showExplainPopup}}},[e("i",{staticClass:"iconfont icon-dingdan1"}),t._v(" 说明 ")])]},proxy:!0}]),model:{value:t.searchGoodsKeyword,callback:function(o){t.searchGoodsKeyword=o},expression:"searchGoodsKeyword"}}),e("img",{directives:[{name:"show",rawName:"v-show",value:t.sets.banner&&!t.is_retail,expression:"sets.banner && !is_retail"}],staticClass:"top-banner",attrs:{src:t.sets.banner}}),e("d-list",{attrs:{loading:t.goodsLoading,finished:t.goodsLoadFinished},on:{load:t.getGoodsList}},[e("ul",{staticClass:"goods-list",on:{click:function(o){return t.viewGoods(o)}}},t._l(t.goodsList,(function(o,a){return e("goods-item",{key:o.id,staticClass:"goods-item",attrs:{isCart:t.isCart,data:o,index:a,show_price:t.show_price,show_price_flag:t.show_price_flag},on:{add:t.addCart,show:t.showGoodDetail,change:t.changeCart}})})),1)]),e("van-popup",{attrs:{round:"",closeable:""},model:{value:t.showExplainPopup,callback:function(o){t.showExplainPopup=o},expression:"showExplainPopup"}},[e("div",{staticClass:"explain-popup-content"},[e("div",{staticClass:"explain-title"},[t._v("说明")]),e("div",{staticClass:"explain-content",domProps:{innerHTML:t._s(t.sets.summary)}})])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isCart,expression:"isCart"}],staticClass:"bottom-fixed-button set-pc-style"},[e("div",{staticClass:"small-price"},[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.cartsTotal)+" "),e("div",{staticClass:"button",on:{click:function(o){return o.stopPropagation(),t.openCartListPopup.apply(null,arguments)}}},[t._v(" 去结算"),e("em",{staticClass:"carts-num"},[t._v(t._s(t.cartsNum))])])]),e("yz-cart-list",{staticClass:"carlist",attrs:{cardata:t.cartList,showDestory:!0},on:{clearCart:t.clearCart,blur:t.changeCarList,plus:t.changeCarList,minus:t.changeCarList},model:{value:t.showCarList,callback:function(o){t.showCarList=o},expression:"showCarList"}},[e("div",{staticClass:"bottom-car set-pc-styleLeft"},[e("div",{staticClass:"car-box"},[e("div",{staticClass:"car-num",on:{click:function(o){o.stopPropagation(),t.showCarList=!1}}},[e("div",{staticClass:"car-num-box"},[e("i",{staticClass:"iconfont icon-all_buycar"}),e("div",{staticClass:"carnum-style"},[t._v(t._s(t.cartsNum))])]),e("div",{staticClass:"small-price"},[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.cartsTotal)+" ")]),e("div",{staticClass:"car-add",on:{click:function(o){return o.stopPropagation(),t.toOrder.apply(null,arguments)}}},[t._v("去结算")])])])]),e("yzGoodsPopup",{attrs:{goodsInfo:t.goodinfo},on:{showgoodspecs:t.showgoodspecs},model:{value:t.showgp,callback:function(o){t.showgp=o},expression:"showgp"}}),e("yz-specs",{attrs:{goodsInfo:t.goodinfo},on:{closeSpecsPopup:t.close_yz_specs_popup},model:{value:t.popupSpecs,callback:function(o){t.popupSpecs=o},expression:"popupSpecs"}})],1)},i=[],s=(e("8a58"),e("e41f")),r=(e("5852"),e("d961")),n=e("2909"),c=(e("e7e5"),e("d399")),d=(e("14d9"),e("a9e3"),e("ac1f"),e("5319"),e("d3b7"),e("159b"),e("6062"),e("3ca3"),e("ddb0"),e("a15b"),e("b0c0"),e("4de4"),e("53986")),l=e("ebc5"),p=e("f6cc"),h=e("25bd"),g=e("94b4"),u={data:function(){return{isCart:!0,showExplainPopup:!1,sets:{summary:"",banner:""},goods:[],goodsLoadPage:1,goodsLoading:!1,goodsLoadFinished:!1,searchGoodsKeyword:"",is_retail:!1,cartList:[],cartsNum:0,activity_gid:0,activity_index:0,showgp:!1,popupSpecs:!1,goodinfo:{},showCarList:!1,cartsTotal:0,show_price:!1,show_price_flag:!1}},activated:function(){this.getGoodsList(),this.$route.params.target&&(this.is_retail=!0,this.isCart=!1),this.show_price_flag="/stock/guide"==this.$route.path},methods:{getGoodsList:function(){var t=this;if(!0!==this.goodsLoading&&!0!==this.goodsLoadFinished){this.goodsLoading=!0;var o={page:this.goodsLoadPage,is_retail:this.is_retail};$http.post("plugin.agency.api.goods.goods-list",o).then((function(o){var e,a=o.data,i=o.result,s=o.msg;0!==i?(t.show_price=a.show_price,(0===a.data.length||a.data.length