1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f0659fc"],{"13bc":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,".page[data-v-01dd24cd]{background-color:#f9f9f9;min-height:100vh;padding-bottom:3.0625rem}.brand[data-v-01dd24cd]{width:100%;height:8.625rem;padding-top:.625rem;background:#fff;-webkit-box-sizing:content-box;box-sizing:content-box}.brand .my-swipe .van-swipe-item[data-v-01dd24cd]{padding:0 .906rem;height:9.5rem;background-color:#fff;font-size:20px;line-height:150px;text-align:center}.brand .my-swipe .van-swipe-item img[data-v-01dd24cd]{width:21.563rem;height:8.625rem;background-color:#a5a5a5;border-radius:.469rem}.recommend[data-v-01dd24cd]{padding:1.281rem .906rem .813rem;background:#fff}.recommend .recommend-title[data-v-01dd24cd]{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}.recommend .recommend-title .icon-fontclass-tuijian1[data-v-01dd24cd]{font-size:22px;color:#ffa846}.recommend .recommend-title .text[data-v-01dd24cd]{margin-left:.344rem;font-size:1.188rem;color:#2c2c2c;font-weight:700}.recommend .recommend-goods[data-v-01dd24cd]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-top:.844rem;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:auto}.recommend .recommend-goods .recommend-good[data-v-01dd24cd]{width:6.875rem;margin-right:.781rem}.recommend .recommend-goods .recommend-good[data-v-01dd24cd]:last-child{margin-right:0}.recommend .recommend-goods .recommend-good .good-face[data-v-01dd24cd],.recommend .recommend-goods .recommend-good .good-face img[data-v-01dd24cd]{width:6.875rem;height:6.875rem;background-color:#9d9d9d;border-radius:.313rem}.recommend .recommend-goods .recommend-good .good-title[data-v-01dd24cd]{margin-top:8px;text-align:left;font-size:12px;color:#2c2c2c;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.recommend .recommend-goods .recommend-good .good-prices[data-v-01dd24cd]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:.5rem;text-align:left}.recommend .recommend-goods .recommend-good .good-prices .present-price[data-v-01dd24cd]{word-break:break-all;font-size:10px;color:#ff464c;margin-right:.5rem}.recommend .recommend-goods .recommend-good .good-prices .original-price[data-v-01dd24cd]{word-break:break-all;font-size:10px;color:#979797;text-decoration:line-through}.category[data-v-01dd24cd]{margin-top:1.5rem}.category .category-container[data-v-01dd24cd]{padding:.938rem;margin-bottom:10px;background:#fff}.category .category-container .category-title[data-v-01dd24cd]{text-align:left;font-size:.813rem;color:#212121}.category .category-container .category-list[data-v-01dd24cd]{display:grid;grid-template-columns:repeat(5,1fr);grid-row-gap:1.156rem;padding-top:1.156rem}.category .category-container .category-list .category-item[data-v-01dd24cd]{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-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.category .category-container .category-list .category-item .category-cover[data-v-01dd24cd],.category .category-container .category-list .category-item .category-cover img[data-v-01dd24cd]{width:2.75rem;height:2.75rem;border-radius:50%}.category .category-container .category-list .category-item .category-text[data-v-01dd24cd]{margin-top:.625rem;font-size:.75rem;color:#292929}",""]),e.exports=t},"487e":function(e,t,a){var o=a("13bc");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var r=a("499e").default;r("d9435698",o,!0,{sourceMap:!1,shadowMode:!1})},"5e36":function(e,t,a){"use strict";a("487e")},e2ac:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page"},[a("c-title",{attrs:{text:"品牌资源"}}),e.banner.length>0?a("div",{staticClass:"brand"},[a("van-swipe",{staticClass:"my-swipe",attrs:{autoplay:3e3,"indicator-color":"white"}},e._l(e.banner,(function(e,t){return a("van-swipe-item",{key:t},[e.h5_url?a("a",{attrs:{href:e.h5_url}},[a("img",{attrs:{src:e.image_url,alt:""}})]):a("img",{attrs:{src:e.image_url,alt:""}})])})),1)],1):e._e(),e.recommend.length>0?a("div",{staticClass:"recommend"},[e._m(0),a("div",{staticClass:"recommend-goods"},e._l(e.recommend,(function(t){return a("div",{key:t.id,staticClass:"recommend-good",on:{click:function(a){return e.toGood(t.id)}}},[a("div",{staticClass:"good-face"},[a("img",{attrs:{src:t.thumb,alt:t.title}})]),a("div",{staticClass:"good-title"},[e._v(" "+e._s(t.title)+" ")]),a("div",{staticClass:"good-prices"},[a("div",{staticClass:"present-price"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))]),a("div",{staticClass:"original-price"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.market_price))])])])})),0)]):e._e(),a("div",{staticClass:"category"},[a("van-tabs",{attrs:{scrollspy:"",sticky:"",ellipsis:!1},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.category,(function(t){return a("van-tab",{key:t.id,attrs:{name:t.id,title:t.name}},[a("div",{staticClass:"category-container"},[a("div",{staticClass:"category-title"},[e._v(e._s(t.name))]),a("div",{staticClass:"category-list"},e._l(t.children,(function(t){return a("div",{key:t.id,staticClass:"category-item",on:{click:function(a){return e.toCate(t.id)}}},[a("div",{staticClass:"category-cover"},[a("img",{attrs:{src:t.thumb,alt:""}})]),a("div",{staticClass:"category-text"},[e._v(e._s(t.name))])])})),0)])])})),1)],1)],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recommend-title"},[a("i",{staticClass:"iconfont icon-fontclass-tuijian1"}),a("span",{staticClass:"text"},[e._v("推荐商品")])])}],i=(a("14d9"),a("99af"),{data:function(){return{banner:[],recommend:[],category:[],activeName:"0"}},mounted:function(){this.getData()},methods:{toGood:function(e){this.$router.push(this.fun.getUrl("goods",{id:e}))},toCate:function(e){this.$router.push(this.fun.getUrl("search",{id:e,fromHome:1},{cate_id:e}))},getData:function(){var e=this;$http.get("plugin.yz-supply-camilo-resources.frontend.index.index").then((function(t){1==t.result?(e.banner=t.data.banner||[],e.recommend=t.data.recommend||[],e.category.push({id:0,name:"推荐分类",children:t.data.category.recommand_category}),e.category=e.category.concat(t.data.category.categorys)):e.$toast(t.msg)}))}}}),d=i,c=(a("5e36"),a("2877")),n=Object(c["a"])(d,o,r,!1,null,"01dd24cd",null);t["default"]=n.exports}}]); |