1 line
9.0 KiB
JavaScript
1 line
9.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73132090"],{"34d2":function(t,o,e){"use strict";e("b8b9")},"5d19":function(t,o,e){"use strict";e.r(o);var a=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{id:"evaluate"}},[a("c-title",{attrs:{hide:!1,text:"品牌详情"}}),a("div",{staticClass:"detail-box"},[a("div",{staticClass:"logo"},[t.brandLogo?a("div",{staticClass:"img"},[a("img",{attrs:{src:t.brandLogo?t.brandLogo:e("74c1"),alt:""}})]):t._e(),a("span",[t._v(t._s(t.brandTit))])]),a("div",{staticClass:"syn"},[t._m(0),a("div",{staticClass:"text"},[a("p",{domProps:{innerHTML:t._s(t.desc)}})])]),a("div",{staticClass:"logo-goods"},[t._m(1),a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(o){t.isLoading=o},expression:"isLoading"}},[a("div",{staticClass:"goods-list"},t._l(t.goodsList,(function(o,e){return a("div",{key:e,staticClass:"goods",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.gotoDetail(o.goods_id)}}},[a("div",{staticClass:"img"},[a("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:o.thumb}})]),a("ul",[a("li",{staticClass:"name"},[a("h3",{staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(o.title)+" ")])]),a("li",{directives:[{name:"show",rawName:"v-show",value:parseInt(o.market_price),expression:"parseInt(item.market_price)"}],staticClass:"mprice"},[a("span",[t._v(t._s(t.market_price))]),o.price!=o.market_price?a("span",{class:t.checkDecoration(o)},[t._v(t._s(t.$i18n.t("money"))+t._s(o.market_price))]):t._e()]),a("li",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))),a("b",[t._v(t._s(t.filterPrice(o)))])])])])})),0)])],1)])],1)},i=[function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"title"},[e("div",{staticClass:"spare"}),e("h1",[t._v("品牌介绍")])])},function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"title"},[e("div",{staticClass:"spare"}),e("h1",[t._v("品牌商品")])])}],s=(e("b0c0"),e("99af"),e("14d9"),e("6968")),l=e("ac0d"),n={mixins:[l["a"]],data:function(){return{brandTit:"",brandLogo:"",desc:"",goodsList:[],loading:!1,allLoaded:!1,goload:!0,isLoadMore:!1,page:1,total_page:0,isLoading:!1,market_price:""}},computed:{checkDecoration:function(t){var o=this;return function(t){var e=o.$store.state.temp.mailInfo.scribing_show;return 1!=e||"92"!=t.plugin_id&&"0"!=t.plugin_id?"originalPrice":"originalPriceNone"}},filterPrice:function(t){return function(t){return t.Vip_level_status&&1==t.Vip_level_status.status?t.Vip_level_status.word:t.price}}},activated:function(){this.getData(),this.initData(),this.getInfo(),this.market_price=this.fun.getMarketPrice()},mounted:function(){},methods:{getInfo:function(){var t=this;$http.get("goods.brand.get-brand-detail",{id:this.$route.params.id}).then((function(o){1==o.result&&(t.brandTit=o.data.name,t.brandLogo=o.data.logo,t.desc=o.data.desc)})).catch((function(t){}))},getData:function(){var t=this;$http.get("goods.brand.get-brand-goods",{id:this.$route.params.id}," ").then((function(o){1==o.result&&(t.goodsList=o.data.goods.data,t.total_page=o.data.goods.last_page,t.page=o.data.goods.current_page,t.isLoadMore=!0,t.isLoading=!1)})).catch((function(t){}))},getMoreData:function(){var t=this;if(t.isLoadMore=!1,this.page!=this.total_page)return this.page>=this.total_page?(t.loading=!0,void(t.allLoaded=!0)):(this.page=this.page+1,void $http.get("goods.brand.get-brand-goods",{id:this.$route.params.id,page:this.page,as_id:this.zoneId},"加载中").then((function(o){if(1===o.result){t.isLoadMore=!0;var e=o.data.goods.data;t.loading=!1,t.allLoaded=!1,t.goodsList=t.goodsList.concat(e)}else t.page=t.page-1,t.loading=!0,t.allLoaded=!0,t.isLoadMore=!1}),(function(t){})))},loadTop:function(){this.initData(),this.getData(),this.getInfo()},loadBottom:function(){},initData:function(){this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.goodsList=[],this.brandTit="",this.brandLogo="",this.desc=""},gotoDetail:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))}},components:{cTitle:s["a"]}},r=n,d=r,g=(e("34d2"),e("2877")),c=Object(g["a"])(d,a,i,!1,null,"1a014645",null);o["default"]=c.exports},"74c1":function(t,o,e){t.exports=e.p+"static/app/img/loading.7c66cecb.jpg"},ac0d:function(t,o,e){"use strict";e.d(o,"a",(function(){return s}));var a=document.documentElement,i=document.body,s={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:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&a.clientHeight?Math.min(i.clientHeight,a.clientHeight):Math.max(i.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(i.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(){}}}},b8b9:function(t,o,e){var a=e("bccc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("499e").default;i("59855e4d",a,!0,{sourceMap:!1,shadowMode:!1})},bccc:function(t,o,e){var a=e("24fb");o=a(!1),o.push([t.i,"#evaluate .logo[data-v-1a014645]{background-color:#fff;padding:.625rem .875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#evaluate .logo .img[data-v-1a014645]{width:1.875rem;height:1.875rem;margin-right:.625rem;overflow:hidden}#evaluate .logo .img img[data-v-1a014645]{width:100%;height:100%}#evaluate .logo span[data-v-1a014645]{font-size:14px;line-height:1.875rem}#evaluate .syn[data-v-1a014645]{margin-top:.625rem;text-align:left;background-color:#fff}#evaluate .syn .title[data-v-1a014645]{margin-left:.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:.0625rem solid #f3f3f3}#evaluate .syn .title .spare[data-v-1a014645]{width:.25rem;height:1rem;margin-top:.5625rem;background-color:#f15353;margin-right:.375rem;border-radius:.0625rem}#evaluate .syn .title h1[data-v-1a014645]{font-size:14px;line-height:2.25rem}#evaluate .syn .text[data-v-1a014645]{padding:.625rem .875rem}#evaluate .syn .text p[data-v-1a014645]{line-height:1.5rem}#evaluate .logo-goods[data-v-1a014645]{margin-top:.625rem}#evaluate .logo-goods .title[data-v-1a014645]{background-color:#fff;padding-left:.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#evaluate .logo-goods .title .spare[data-v-1a014645]{width:.25rem;height:1rem;margin-top:.5625rem;background-color:#f15353;margin-right:.375rem;border-radius:.0625rem}#evaluate .logo-goods .title h1[data-v-1a014645]{font-size:14px;line-height:2.25rem}#evaluate .logo-goods .goods-list[data-v-1a014645]{margin-top:.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .3125rem}#evaluate .logo-goods .goods-list .goods[data-v-1a014645]{width:10rem;background-color:#fff;margin:10px}#evaluate .logo-goods .goods-list .goods .img[data-v-1a014645]{height:10rem;width:10rem}#evaluate .logo-goods .goods-list .goods ul[data-v-1a014645]{padding:.3125rem;text-align:left}#evaluate .logo-goods .goods-list .goods ul .mprice[data-v-1a014645]{color:#999;font-size:12px;text-decoration:line-through}#evaluate .logo-goods .goods-list .goods ul .name[data-v-1a014645]{font-size:14px;color:#333;height:2.5rem}#evaluate .logo-goods .goods-list .goods ul .name h3[data-v-1a014645]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.25rem;font-weight:400}#evaluate .logo-goods .goods-list .goods ul .price[data-v-1a014645]{color:#f15353;font-size:12px;line-height:1.25rem;margin-top:.375rem;position:relative}#evaluate .logo-goods .goods-list .goods ul .price b[data-v-1a014645]{font-size:18px;font-weight:400}#evaluate .logo-goods .goods-list .goods ul .price .originalPrice[data-v-1a014645]{text-decoration:line-through;color:#888;font-size:12px;margin-left:.625rem;position:absolute;right:0}#evaluate .logo-goods .goods-list .goods ul .price .originalPriceNone[data-v-1a014645]{text-decoration:none;color:#888;font-size:12px;margin-left:.625rem;position:absolute;right:0}.pcStyle .logo-goods #olis .goods-list .goods[data-v-1a014645]{width:49%;margin-right:2%;margin-bottom:.875rem}.pcStyle .logo-goods #olis .goods-list .goods .img[data-v-1a014645]{width:100%;height:0;padding-bottom:100%;position:relative}.pcStyle .logo-goods #olis .goods-list .goods .img img[data-v-1a014645]{position:absolute;top:0;left:0}.pcStyle .logo-goods #olis .goods-list .goods[data-v-1a014645]:nth-child(2n){margin-right:0}",""]),t.exports=o}}]); |