bztang-admin/addons/yun_shop/static/app/js/chunk-2ff18c40.70456cc5.js

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ff18c40"],{"0ac4":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"managementIndex"}},[i("c-title",{attrs:{hide:!1,text:"厂家管理"}}),i("div",{staticClass:"t_box"},[i("div",{staticClass:"t_box_top"}),i("div",{staticClass:"t_box_img"},[i("img",{attrs:{src:t.producer.logo_url,alt:""}})]),i("div",{staticClass:"t_box_c"},[i("span",{staticClass:"storename"},[t._v(t._s(t.producer.producer_name))]),i("div",[i("span",{staticClass:"adress"},[t._v(t._s(t.producer.province_name)+" "+t._s(t.producer.city_name)+" "+t._s(t.producer.district_name))]),i("span",{staticClass:"tell"},[t._v("热销:"),i("em",{staticClass:"tell_i"},[t._v(t._s(t.producer.sell_total))])])]),i("div",{staticClass:"t_box_c_box"},[i("div",{staticClass:"t_box_c_start",on:{click:function(e){t.showCard=!0}}},[i("i",{staticClass:"iconfont icon-fontclass-zhizhao"}),i("span",[t._v("店铺证照")])])])])]),i("div",{staticStyle:{height:"0.63rem"}}),i("div",{staticClass:"t_bottom"},[i("van-search",{attrs:{shape:"round",placeholder:"请输入搜索关键词"},on:{search:t.onSearch},model:{value:t.value_s,callback:function(e){t.value_s=e},expression:"value_s"}}),t._l(t.goods_list,(function(e,a){return i("div",{key:a,staticClass:"lis",on:{click:function(i){return t.goBuy(e)}}},[i("div",{staticClass:"lisLeft"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"lisRight"},[i("div",{staticClass:"lisRight_t"},[t._v(" "+t._s(e.title)+" ")]),i("div",{staticClass:"lisrRight_m"},[i("div",{staticClass:"left_m"},[i("div",{staticClass:"left_m_t"},[t._v(" 原价:"),i("span",{staticClass:"left_m_o"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.market_price))])]),i("div",{staticClass:"left_m_t",staticStyle:{color:"#f14e4e","font-size":"0.75rem"}},[t._v(" 现价:"),i("span",{staticClass:"left_m_u"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.price))])])]),i("div",{staticClass:"right_m",on:{click:function(i){return t.goBuy(e)}}},[t._v("立即采购")])])])])}))],2),t.total_page>t.page?i("div",{staticStyle:{"margin-bottom":"6rem",color:"#666"}},[t._v("上拉加载更多")]):t._e(),t.isLoadMore?t._e():i("div",{staticStyle:{"margin-bottom":"6rem",color:"#666"}},[t._v("没有更多")]),i("div",{staticClass:"t_pos set-pc-styleLeft"},[i("div",{staticClass:"t_pos_btn",on:{click:function(e){t.show=!0}}},[i("i",{staticClass:"iconfont icon-fontclass-mendianfenlei"}),t._v(" 商品分类 ")]),i("div",{staticClass:"t_pos_btn",on:{click:function(e){return t.proclamation(t.producer.id)}}},[i("i",{staticClass:"iconfont icon-fontclass-gonggao"}),t._v(" 店铺公告说明 ")])]),i("van-popup",{style:{width:"18.78rem",backgroundColor:"transparent"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{staticClass:"pop"},t._l(t.classify,(function(e,a){return i("div",{key:a,class:a===t.ind?"tapPop popbox":"popbox",on:{click:function(i){return t.tapNum(a,e.id)}}},[t._v(" "+t._s(e.name)+" ")])})),0),i("div",{staticClass:"posPop"},[i("i",{staticClass:"iconfont icon-pm_auction_defeat",on:{click:function(e){t.show=!1}}})])]),i("van-popup",{style:{width:"100%",height:"100%",overflow:t.auto,background:"#f2f2f2"},attrs:{position:"right"},model:{value:t.showCard,callback:function(e){t.showCard=e},expression:"showCard"}},[i("van-nav-bar",{attrs:{title:"厂家店铺","left-arrow":""},on:{"click-left":t.onClickLeft,"click-right":t.onClickRight}}),i("div",{staticClass:"Cardimg"},[i("div",{staticStyle:{"text-align":"left"}},[t._v("营业执照")]),i("div",{staticClass:"posI",on:{click:function(e){return t.tapshowImg(t.producer.business_license_url)}}},t._l(t.producer.business_license_url,(function(t,e){return i("div",{key:e},[i("img",{staticStyle:{width:"9.63rem","max-height":"14.06rem"},attrs:{src:t,alt:""}})])})),0)])],1)],1)},o=[],n=(i("e7e5"),i("d399")),s=(i("4662"),i("28a2")),c=(i("14d9"),i("99af"),i("6968")),l=i("ac0d"),r={mixins:[l["a"]],data:function(){return{tapStart:!1,show:!1,list:["全部","蛋白质","排毒养颜","茶饮","全部","蛋白质","排毒养颜","茶饮"],ind:0,showCard:!1,id:"",producer:[],goods_list:[],classify:[],value_s:"",classId:"",isLoadMore:!0,page:1,total_page:0}},deactivated:function(){},activated:function(){this.id=this.$route.params.id,this.getData(),this.getClassify(),this.onSearch()},methods:{Searchinit:function(){this.classId=0,this.ind=0,this.isLoadMore=!0,this.page=1,this.total_page=0},goBuy:function(t){this.$router.push(this.fun.getUrl("goods",{id:t.id}))},tapNum:function(t,e){t!=this.ind?(this.ind=t,this.classId=e):t==this.ind&&(this.ind=null),null==this.ind&&(this.ind=0,this.classId=0),this.onSearch()},proclamation:function(t){this.$router.push(this.fun.getUrl("proclamation",{id:t}))},tapshowImg:function(t){Object(s["a"])(t)},onClickLeft:function(){this.showCard=!1},getClassify:function(){var t=this;$http.get("plugin.producer.frontend.goodsCategory.getList",{producer_id:this.id},"加载中").then((function(e){1===e.result?t.classify=e.data:Object(n["a"])(e.msg)})).catch((function(t){}))},getData:function(){var t=this;$http.get("plugin.producer.frontend.producer.getProducerCenterById",{producer_id:this.id,page:this.page},"加载中").then((function(e){1===e.result?(t.producer=e.data.producer,t.goods_list=e.data.goods_list.data,t.total_page=e.data.last_page):Object(n["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.producer.frontend.goods.searchGoods",{producer_id:this.id,"search[keyword]":this.value_s,"search[category]":this.classId,page:t.page},"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.goods_list=t.goods_list.concat(i)}),(function(t){})))},onSearch:function(){var t=this;this.show=!1,this.page=1,$http.get("plugin.producer.frontend.goods.searchGoods",{page:this.page,producer_id:this.id,"search[keyword]":this.value_s,"search[category]":this.classId},"加载中").then((function(e){1===e.result?(t.goods_list=e.data.data,t.total_page=e.data.last_page,t.isLoadMore=!0,t.total_page||(t.total_page=0)):(t.goods_list=[],Object(n["a"])(e.msg))})).catch((function(t){}))}},components:{cTitle:c["a"]}},d=r,m=d,g=(i("3891"),i("2877")),f=Object(g["a"])(m,a,o,!1,null,"1261d7ec",null);e["default"]=f.exports},3891:function(t,e,i){"use strict";i("6682")},6682:function(t,e,i){var a=i("7d2f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("0c934d34",a,!0,{sourceMap:!1,shadowMode:!1})},"7d2f":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#managementIndex .Cardimg[data-v-1261d7ec]{margin:1.2rem 1.53rem}#managementIndex .posI[data-v-1261d7ec]{margin-top:.91rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#managementIndex .pop[data-v-1261d7ec],#managementIndex .posI[data-v-1261d7ec]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#managementIndex .pop[data-v-1261d7ec]{padding:1.91rem .84rem 1.91rem .84rem;position:relative;width:100%;height:100%;background:#fff;border-radius:.63rem}#managementIndex .pop .popbox[data-v-1261d7ec]{margin-bottom:1rem;padding:.34rem .78rem;font-size:.81rem;margin-left:.4rem}#managementIndex .pop .tapPop[data-v-1261d7ec]{background:#f14e4e;border-radius:.19rem;color:#fff}#managementIndex .posPop[data-v-1261d7ec]{height:6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#managementIndex .posPop i[data-v-1261d7ec]{font-size:40px;color:#fff}#managementIndex .t_pos[data-v-1261d7ec]{position:fixed;bottom:0;width:100%;height:2.81rem;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;background:#fff}#managementIndex .t_pos[data-v-1261d7ec],#managementIndex .t_pos .t_pos_btn[data-v-1261d7ec]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#managementIndex .t_pos .t_pos_btn[data-v-1261d7ec]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#managementIndex .t_pos .t_pos_btn i[data-v-1261d7ec]{color:#f14e4e;margin-right:.53rem;font-size:20px}#managementIndex .t_box[data-v-1261d7ec]{width:100%;height:12.81rem;background:#fff}#managementIndex .t_box .t_box_top[data-v-1261d7ec]{height:5.09rem;width:100%;background-image:-webkit-gradient(linear,left bottom,left top,from(#f14e4e),to(#ec5e25));background-image:-webkit-linear-gradient(bottom,#f14e4e,#ec5e25);background-image:linear-gradient(0deg,#f14e4e,#ec5e25)}#managementIndex .t_box .t_box_img[data-v-1261d7ec]{width:4.38rem;height:4.38rem;margin:-3.38rem auto}#managementIndex .t_box .t_box_img img[data-v-1261d7ec]{width:4.38rem;height:4.38rem}#managementIndex .t_box .t_box_c[data-v-1261d7ec]{margin-top:5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#managementIndex .t_box .t_box_c .storename[data-v-1261d7ec]{font-size:1.06rem;color:#333}#managementIndex .t_box .t_box_c .adress[data-v-1261d7ec]{font-size:.69rem;color:#333}#managementIndex .t_box .t_box_c .tell[data-v-1261d7ec]{font-size:.69rem;color:#333;margin-left:1.31rem}#managementIndex .t_box .t_box_c .tell .tell_i[data-v-1261d7ec]{color:#f14e4e}#managementIndex .t_box .t_box_c .t_box_c_box[data-v-1261d7ec]{margin-top:.81rem}#managementIndex .t_box .t_box_c .t_box_c_box[data-v-1261d7ec],#managementIndex .t_box .t_box_c .t_box_c_box .t_box_c_start[data-v-1261d7ec]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#managementIndex .t_box .t_box_c .t_box_c_box .t_box_c_start[data-v-1261d7ec]{height:1.44rem;border-radius:.13rem;border:.03rem solid #f14e4e;padding:.34rem .28rem}#managementIndex .t_box .t_box_c .t_box_c_box .t_box_c_start i[data-v-1261d7ec]{color:#f14e4e;margin-right:.19rem;font-size:20px}#managementIndex .t_bottom[data-v-1261d7ec]{padding:.88rem .91rem;background:#fff;margin-bottom:1.75rem}#managementIndex .t_bottom .lis[data-v-1261d7ec]{width:100%;height:8.88rem;border-bottom:.03rem solid #f2f2f2;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.19rem 0 .94rem 0}#managementIndex .t_bottom .lis .lisLeft[data-v-1261d7ec]{width:5.63rem;height:5.63rem}#managementIndex .t_bottom .lis .lisLeft img[data-v-1261d7ec]{width:100%;height:100%}#managementIndex .t_bottom .lis .lisRight[data-v-1261d7ec]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.59rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#managementIndex .t_bottom .lis .lisRight .lisRight_t[data-v-1261d7ec]{font-size:.88rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:left}#managementIndex .t_bottom .lis .lisRight .lisrRight_tt[data-v-1261d7ec]{font-size:.75rem;color:#f14e4e;text-align:left;margin:.59rem 0 1.25rem 0}#managementIndex .t_bottom .lis .lisRight .lisrRight_m[data-v-1261d7ec]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .left_m[data-v-1261d7ec]{text-align:left}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .left_m .left_m_t[data-v-1261d7ec]{font-size:.75rem;color:#666}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .left_m .left_m_t .left_m_o[data-v-1261d7ec]{font-size:.75rem;color:#666;text-decoration:line-through}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .left_m .left_m_t .left_m_u[data-v-1261d7ec]{font-size:.94rem;color:#f14e4e}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .right_m[data-v-1261d7ec]{height:1.69rem;background-color:#f14e4e;border-radius:.84rem;padding:.44rem .66rem;font-size:.88rem;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .right_m .left_m_t[data-v-1261d7ec]{font-size:.75rem;color:#666}#managementIndex .t_bottom .lis .lisRight .lisrRight_m .right_m .left_m_t .left_m_o[data-v-1261d7ec]{font-size:.75rem;color:#666;text-decoration:line-through}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]);