1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eed2d77a","chunk-2d0d83d6"],{"6e9f":function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,"#newRetail-child-goodlist[data-v-69abc125]{padding-bottom:.875rem}#newRetail-child-goodlist .ul[data-v-69abc125]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#newRetail-child-goodlist .ul .li[data-v-69abc125]{width:10.5rem;background-color:#fff;border-radius:.625rem;overflow:hidden;margin:.75rem 0 0 .75rem}#newRetail-child-goodlist .ul .li .good-img[data-v-69abc125]{width:100%;height:0;padding-bottom:100%;position:relative}#newRetail-child-goodlist .ul .li .good-img img[data-v-69abc125]{width:100%;right:0;height:100%;position:absolute}#newRetail-child-goodlist .ul .li .goods-main[data-v-69abc125]{padding:.625rem;text-align:left}#newRetail-child-goodlist .ul .li .goods-main .goods-title[data-v-69abc125]{height:2rem;line-height:1rem;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#newRetail-child-goodlist .ul .li .goods-main .goods-price[data-v-69abc125]{margin-top:1rem;font-size:.938rem;color:#f14e4e}",""]),e.exports=t},"79db":function(e,t,i){e.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},8607:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"newRetail-index"}},[i("c-title",{attrs:{hide:!1,text:e.info.project_name||"--"}}),i("div",{staticClass:"top-member-box"},[i("img",{staticClass:"member-acator",attrs:{src:e.info.avatar,alt:""}}),i("div",{staticClass:"member-info"},[i("div",{staticClass:"member-name"},[e._v(e._s(e.info.nickname))]),e.info.level_name?i("div",{staticClass:"member-grade"},[e._v(e._s(e.info.level_name))]):e._e()])]),i("div",{staticClass:"income-box",on:{click:function(t){return t.stopPropagation(),e.gotoUrl("newRetailSalesExtension",{})}}},[i("div",{staticClass:"income-num"},[e._v("累计收益:"+e._s(e.$i18n.t("money"))+" "+e._s(e.info.money))]),i("i",{staticClass:"iconfont icon-member_right"})]),i("div",{staticClass:"main-box"},[i("div",{staticClass:"main-nav",on:{click:function(t){return t.stopPropagation(),e.gotoUrl("newRetailSearch",{type:2})}}},[e._m(0),i("div",[e._v("代ç<C2A3>†å¥—é¤<C3A9>")])]),i("div",{staticClass:"main-nav",on:{click:function(t){return t.stopPropagation(),e.gotoUrl("newRetailSearch",{type:3})}}},[e._m(1),i("div",[e._v("自主进货")])]),i("div",{staticClass:"main-nav",on:{click:function(t){return t.stopPropagation(),e.gotoUrl("newRetailInventory",{})}}},[e._m(2),i("div",[e._v("我的库å˜")])]),i("div",{staticClass:"main-nav",on:{click:function(t){return t.stopPropagation(),e.gotoUrl("newRetailSalesRecord",{})}}},[e._m(3),i("div",[e._v("销售记录")])]),i("div",{staticClass:"main-nav",on:{click:function(t){return t.stopPropagation(),e.gotoUrl("orderlist",{status:0,orderType:"newRetail"})}}},[e._m(4),i("div",[e._v("订å<C2A2>•管ç<C2A1>†")])])]),i("good-list",{staticClass:"goods-list",attrs:{goodsList:e.goodsList,mode:1}})],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-icon"},[i("i",{staticClass:"iconfont icon-fontclass-daili"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-icon"},[i("i",{staticClass:"iconfont icon-fontclass-jinhuo"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-icon"},[i("i",{staticClass:"iconfont icon-fontclass-kucun1"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-icon"},[i("i",{staticClass:"iconfont icon-fontclass-jilu"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-icon"},[i("i",{staticClass:"iconfont icon-fontclass-guanli"})])}],o=(i("e7e5"),i("d399")),l=(i("14d9"),i("99af"),i("ec70")),r=i("ac0d"),s={mixins:[r["a"]],data:function(){return{info:{},goodsList:[],page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getData()},components:{goodList:l["a"]},computed:{},methods:{getData:function(){var e=this;$http.get("plugin.new-retail.frontend.index.index",{}).then((function(t){1===t.result?(e.info=t.data,e.fun.setWXTitle(e.info.project_name),e.getGood()):(Object(o["a"])(t.msg),"请登录"!=t.msg&&(window.history.length<=1?e.$router.push(e.fun.getUrl("home",{})):e.$router.go(-1)))})).catch((function(e){}))},getGood:function(){var e=this;$http.get("plugin.new-retail.frontend.index.goodsList",{},"").then((function(t){1===t.result?(e.goodsList=t.data.data,e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0)):Object(o["a"])(t.msg)})).catch((function(e){}))},getMoreData:function(){this.isLoadMore=!1;var e=this;e.page>=e.total_page||(e.page+=1,$http.get("plugin.new-retail.frontend.index.goodsList",{page:e.page},"åŠ è½½ä¸").then((function(t){if(e.isLoadMore=!0,1!=t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var i=t.data.data;e.goodsList=e.goodsList.concat(i)})).catch((function(e){})))},gotoUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.fun.getUrl(e,t,i))}}},d=s,c=(i("db37"),i("2877")),m=Object(c["a"])(d,a,n,!1,null,"a4b5eb54",null);t["default"]=m.exports},"8dbd":function(e,t,i){"use strict";i("fe9b")},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var a=document.documentElement,n=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return a&&a.scrollTop?e=a.scrollTop:n&&(e=n.scrollTop),e},getClientHeight:function(){var e=0;return e=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),e},getScrollHeight:function(){return Math.max(n.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},c8e8:function(e,t,i){var a=i("daa2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("499e").default;n("71dd80fc",a,!0,{sourceMap:!1,shadowMode:!1})},daa2:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,"#newRetail-index .top-member-box[data-v-a4b5eb54]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.625rem 1.375rem 3.125rem;-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;color:#fff;background-image:-webkit-gradient(linear,right top,left top,from(#198afb),to(#1eabfb)),-webkit-gradient(linear,left top,left bottom,from(#22d293),to(#22d293));background-image:-webkit-linear-gradient(right,#198afb,#1eabfb),-webkit-linear-gradient(#22d293,#22d293);background-image:linear-gradient(-90deg,#198afb,#1eabfb),linear-gradient(#22d293,#22d293);background-blend-mode:normal,normal}#newRetail-index .top-member-box .member-acator[data-v-a4b5eb54]{width:47px;height:47px;border-radius:50%;overflow:hidden;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin:0 .625rem 0 0;background:#fff}#newRetail-index .top-member-box .member-info[data-v-a4b5eb54]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:hidden}#newRetail-index .top-member-box .member-info .member-name[data-v-a4b5eb54]{width:100%;line-height:1.875rem;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#newRetail-index .top-member-box .member-info .member-grade[data-v-a4b5eb54]{height:1.25rem;line-height:1.25rem;padding:0 .5rem;border-radius:1rem;background:hsla(0,0%,100%,.5)}#newRetail-index .income-box[data-v-a4b5eb54],#newRetail-index .top-member-box .member-info .member-grade[data-v-a4b5eb54]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}#newRetail-index .income-box[data-v-a4b5eb54]{background:#fff;width:90%;height:3.125rem;background-color:#fff;border-radius:.375rem;margin:-1.625rem auto 1rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .875rem}#newRetail-index .income-box .income-num[data-v-a4b5eb54]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;font-size:16px}#newRetail-index .main-box[data-v-a4b5eb54]{width:90%;margin:0 auto;padding:0 1.375rem .875rem;background-color:#fff;border-radius:.313rem;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:10px;line-height:1.625rem}#newRetail-index .main-box[data-v-a4b5eb54],#newRetail-index .main-box .main-nav[data-v-a4b5eb54]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#newRetail-index .main-box .main-nav[data-v-a4b5eb54]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-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;margin-right:2rem;margin-top:.875rem}#newRetail-index .main-box .main-nav .nav-icon[data-v-a4b5eb54]{width:2.5rem;height:2.5rem;background-color:#e5f5ff;color:#198bfb;line-height:2.5rem;border-radius:50%;overflow:hidden}#newRetail-index .main-box .main-nav .nav-icon i[data-v-a4b5eb54]{font-size:24px}#newRetail-index .main-box .main-nav[data-v-a4b5eb54]:nth-child(4){margin-right:0}",""]),e.exports=t},db37:function(e,t,i){"use strict";i("c8e8")},ec70:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"newRetail-child-goodlist"}},[i("div",{staticClass:"ul"},e._l(e.goodsList,(function(t){return i("div",{key:t.goods_id,staticClass:"li",on:{click:function(i){return i.stopPropagation(),e.gotoGoodDetail(t.good_id)}}},[i("div",{staticClass:"good-img"},[i("img",{attrs:{src:t.thumb,alt:""}})]),i("div",{staticClass:"goods-main"},[i("div",{staticClass:"goods-title"},[e._v(e._s(t.title))]),i("div",{staticClass:"goods-price"},[e._v(e._s(e.$i18n.t("money"))+" "+e._s(t.price))])])])})),0),i("yz-blank",{attrs:{datas:e.goodsList,text:"æš‚æ— å•†å“<C3A5>ä¿¡æ<C2A1>¯"}})],1)},n=[],o=(i("a9e3"),i("14d9"),i("eb17")),l={props:{goodsList:{type:Object,default:function(){return{}}},mode:{type:[String,Number],default:"1"}},data:function(){return{}},components:{yzBlank:o["default"]},computed:{},methods:{gotoGoodDetail:function(e){this.$router.push(this.fun.getUrl("newRetailSalesGood",{id:e,mode:this.mode}))}}},r=l,s=(i("8dbd"),i("2877")),d=Object(s["a"])(r,a,n,!1,null,"69abc125",null);t["a"]=d.exports},fe9b:function(e,t,i){var a=i("6e9f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("499e").default;n("40fac1c2",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |