1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8d29c76e"],{"5d19":function(t,o,a){"use strict";a.r(o);var e=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{id:"evaluate"}},[e("c-title",{attrs:{hide:!1,text:"品牌详情"}}),e("div",{staticClass:"detail-box"},[e("div",{staticClass:"logo"},[e("div",{staticClass:"img"},[e("img",{attrs:{src:t.brandLogo?t.brandLogo:a("74c1"),alt:""}})]),e("span",[t._v(t._s(t.brandTit))])]),e("div",{staticClass:"syn"},[t._m(0),e("div",{staticClass:"text"},[e("p",{domProps:{innerHTML:t._s(t.desc)}})])]),e("div",{staticClass:"logo-goods"},[t._m(1),e("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(o){t.isLoading=o},expression:"isLoading"}},[e("div",{staticClass:"goods-list"},t._l(t.goodsList,(function(o,a){return e("div",{key:a,staticClass:"goods",on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.gotoDetail(o.goods_id)}}},[e("div",{staticClass:"img"},[e("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:o.thumb}})]),e("ul",[e("li",{staticClass:"name"},[e("h3",{staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(o.title)+" ")])]),e("li",{staticClass:"price"},[t._v(" "+t._s(t.$i18n.t("money"))),e("b",[t._v(t._s(o.price))]),o.price!=o.market_price?e("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(o.market_price),expression:"parseInt(item.market_price)"}]},[t._v(t._s(t.$i18n.t("money"))+t._s(o.market_price))]):t._e()])])])})),0)])],1)])],1)},i=[function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"title"},[a("div",{staticClass:"spare"}),a("h1",[t._v("品牌介绍")])])},function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"title"},[a("div",{staticClass:"spare"}),a("h1",[t._v("品牌商品")])])}],d=(a("b0c0"),a("99af"),a("6968")),s=a("ac0d"),l={mixins:[s["a"]],data:function(){return{brandTit:"",brandLogo:"",desc:"",goodsList:[],loading:!1,allLoaded:!1,goload:!0,isLoadMore:!1,page:1,total_page:0,isLoading:!1}},activated:function(){this.getData(),this.initData(),this.getInfo()},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 a=o.data.goods.data;t.loading=!1,t.allLoaded=!1,t.goodsList=t.goodsList.concat(a)}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}))}},computed:{},components:{cTitle:d["a"]}},n=l,r=n,g=(a("5dc2"),a("2877")),c=Object(g["a"])(r,e,i,!1,null,"a265d8d8",null);o["default"]=c.exports},"5dc2":function(t,o,a){"use strict";a("d8a3")},"74c1":function(t,o,a){t.exports=a.p+"static/app/img/loading.7c66cecb.jpg"},ac0d:function(t,o,a){"use strict";a.d(o,"a",(function(){return d}));var e=document.documentElement,i=document.body,d={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return e&&e.scrollTop?t=e.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&e.clientHeight?Math.min(i.clientHeight,e.clientHeight):Math.max(i.clientHeight,e.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,e.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(){}}}},ae3a:function(t,o,a){var e=a("24fb");o=e(!1),o.push([t.i,"#evaluate .logo[data-v-a265d8d8]{background-color:#fff;padding:.625rem .875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#evaluate .logo .img[data-v-a265d8d8]{width:1.875rem;height:1.875rem;margin-right:.625rem;overflow:hidden}#evaluate .logo .img img[data-v-a265d8d8]{width:100%;height:100%}#evaluate .logo span[data-v-a265d8d8]{font-size:14px;line-height:1.875rem}#evaluate .syn[data-v-a265d8d8]{margin-top:.625rem;text-align:left;background-color:#fff}#evaluate .syn .title[data-v-a265d8d8]{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-a265d8d8]{width:.25rem;height:1rem;margin-top:.5625rem;background-color:#f15353;margin-right:.375rem;border-radius:.0625rem}#evaluate .syn .title h1[data-v-a265d8d8]{font-size:14px;line-height:2.25rem}#evaluate .syn .text[data-v-a265d8d8]{padding:.625rem .875rem}#evaluate .syn .text p[data-v-a265d8d8]{line-height:1.5rem}#evaluate .logo-goods[data-v-a265d8d8]{margin-top:.625rem}#evaluate .logo-goods .title[data-v-a265d8d8]{background-color:#fff;padding-left:.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#evaluate .logo-goods .title .spare[data-v-a265d8d8]{width:.25rem;height:1rem;margin-top:.5625rem;background-color:#f15353;margin-right:.375rem;border-radius:.0625rem}#evaluate .logo-goods .title h1[data-v-a265d8d8]{font-size:14px;line-height:2.25rem}#evaluate .logo-goods .goods-list[data-v-a265d8d8]{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:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#evaluate .logo-goods .goods-list .goods[data-v-a265d8d8]{width:10rem;background-color:#fff;margin:10px}#evaluate .logo-goods .goods-list .goods .img[data-v-a265d8d8]{height:10rem;width:10rem;background-color:#f15353}#evaluate .logo-goods .goods-list .goods ul[data-v-a265d8d8]{padding:.3125rem;text-align:left}#evaluate .logo-goods .goods-list .goods ul .name[data-v-a265d8d8]{font-size:14px;color:#333;height:2.5rem}#evaluate .logo-goods .goods-list .goods ul .name h3[data-v-a265d8d8]{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-a265d8d8]{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-a265d8d8]{font-size:18px;font-weight:400}#evaluate .logo-goods .goods-list .goods ul .price span[data-v-a265d8d8]{text-decoration:line-through;color:#888;font-size:12px;margin-left:.625rem;position:absolute;right:0}.pcStyle .logo-goods #olis .goods-list .goods[data-v-a265d8d8]{width:49%;margin-right:2%;margin-bottom:.875rem}.pcStyle .logo-goods #olis .goods-list .goods .img[data-v-a265d8d8]{width:100%;height:0;padding-bottom:100%;position:relative}.pcStyle .logo-goods #olis .goods-list .goods .img img[data-v-a265d8d8]{position:absolute;top:0;left:0}.pcStyle .logo-goods #olis .goods-list .goods[data-v-a265d8d8]:nth-child(2n){margin-right:0}",""]),t.exports=o},d8a3:function(t,o,a){var e=a("ae3a");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var i=a("499e").default;i("1df40c11",e,!0,{sourceMap:!1,shadowMode:!1})}}]); |