bztang-admin/addons/yun_shop/static/app/js/chunk-3dfa75d5.5bb0d3a2.js

1 line
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3dfa75d5"],{"253a":function(e,t,a){e.exports=a.p+"static/app/img/img_default.a608a24a.png"},6703:function(e,t,a){var i=a("8e24");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=a("499e").default;r("28ce9691",i,!0,{sourceMap:!1,shadowMode:!1})},8798:function(e,t,a){e.exports=a.p+"static/app/img/no-more-product.f4632785.png"},"8e24":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"[data-v-0ded0bff] .album .van-image{border-radius:.3125rem;overflow:hidden}.album .main[data-v-0ded0bff]{padding:.4125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.album .main .overflow[data-v-0ded0bff]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album .main .goods-info[data-v-0ded0bff]{padding:.4375rem .375rem 1.0625rem}.album .main .original-price[data-v-0ded0bff]{color:#a4a4a4;margin-top:2px;margin-bottom:5px;text-decoration:line-through}.album .main .item[data-v-0ded0bff]{width:47%;text-align:left;margin:5px;background:#fff;overflow:hidden;border-radius:.3125rem}.album .main .item img[data-v-0ded0bff]{margin:0}.album .cover[data-v-0ded0bff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.625rem;background-color:#fff;border-radius:.3125rem;padding:.6rem}.album .header[data-v-0ded0bff]{padding:.6875rem .625rem}.album .header .describe-wrapper[data-v-0ded0bff]{font-size:.8125rem;color:#333;background-color:#fff;border-radius:.3125rem;padding:.6rem;margin-bottom:.625rem}.album .header .describe-title[data-v-0ded0bff]{text-align:center;margin-bottom:.75rem}.album .header .count[data-v-0ded0bff]{font-size:1.0625rem;color:#f14e4e}.album .header .c-202020[data-v-0ded0bff]{color:#202020}.album .header .info[data-v-0ded0bff]{background-color:rgba(254,227,183,.3);height:4.375rem;border-radius:.3125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.album .header .describe-content[data-v-0ded0bff]{width:100%;text-align:left;color:#666;height:1.8125rem;font-size:.6875rem;margin-bottom:.875rem;overflow:hidden;word-break:break-all}.album .header #introduce[data-v-0ded0bff]{display:none}.album .header #introduce:checked+.describe-content[data-v-0ded0bff]{height:auto}.album .header .arrow[data-v-0ded0bff]{display:inline-block;-webkit-transform:rotate(90deg);transform:rotate(90deg);margin-left:.625rem}.album .header .arrow .iconfont[data-v-0ded0bff]{font-size:.625rem}.album .header #introduce:checked~label[for=introduce] .arrow[data-v-0ded0bff]{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.album .header .label-group[data-v-0ded0bff]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.album .header .label-group li[data-v-0ded0bff]{border-radius:.125rem;border:.0625rem solid #f14e4e;padding:.375rem .4375rem .375rem .5rem;color:#f14e4e;margin-right:.625rem;margin-bottom:1.25rem}.album .header .header-right[data-v-0ded0bff]{padding-top:.3125rem;padding-left:.625rem;padding-right:.875rem;text-align:left}.album .header .title[data-v-0ded0bff]{font-size:.875rem}.album .header .date[data-v-0ded0bff]{padding-top:14px;color:#7e7e7e;font-size:.75rem}",""]),e.exports=t},a6b1:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"album"},[e.album&&e.album.covers&&e.album.covers.length>=1&&""!==e.album.covers[0].src?a("div",[a("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.album.covers[0].src}})]):e._e(),a("header",{staticClass:"header"},[a("div",{staticClass:"cover"},[a("div",{staticClass:"header-right"},[a("p",{staticClass:"title"},[e._v(e._s(e.album.name))]),a("p",{staticClass:"date"},[e._v(" "+e._s(e.album.time_name)+" ")])])]),a("div",{staticClass:"describe-wrapper"},[e.album.describe?[a("input",{directives:[{name:"model",rawName:"v-model",value:e.flag_status,expression:"flag_status"}],attrs:{type:"checkbox",id:"introduce"},domProps:{checked:Array.isArray(e.flag_status)?e._i(e.flag_status,null)>-1:e.flag_status},on:{change:function(t){var a=e.flag_status,i=t.target,r=!!i.checked;if(Array.isArray(a)){var s=null,l=e._i(a,s);i.checked?l<0&&(e.flag_status=a.concat([s])):l>-1&&(e.flag_status=a.slice(0,l).concat(a.slice(l+1)))}else e.flag_status=r}}}),a("p",{staticClass:"describe-content"},[e._v(" 描述:"+e._s(e.album.describe)+" ")]),a("label",{attrs:{for:"introduce"}},[a("span",[e._v(e._s(e.flag_status?"展开":"收起"))]),e._m(0)])]:e._e()],2),a("div",{staticClass:"info"},[a("div",[a("p",{staticClass:"count"},[e._v(e._s(e.album.product_count))]),a("p",{staticClass:"c-202020"},[e._v("商品数量")])]),a("div",[a("p",{staticClass:"count"},[e._v(e._s(e.album.sales))]),a("p",{staticClass:"c-202020"},[e._v("累计数量")])]),a("div",[a("p",{staticClass:"count"},[e._v(e._s(e.album.browse_count))]),a("p",{staticClass:"c-202020"},[e._v("累计访问")])])])]),a("main",{staticClass:"main"},e._l(e.list,(function(t){return a("div",{key:t.id,staticClass:"item",on:{click:function(a){return e.gotoGoods(t.id)}}},[a("img",{staticStyle:{width:"172px"},attrs:{src:t.thumb,alt:""}}),a("div",{staticClass:"goods-info"},[a("p",{staticClass:"overflow"},[e._v(e._s(t.title))]),a("p",{staticClass:"original-price"},[e._v("原价:"+e._s(t.market_price))]),a("p",[a("span",{staticStyle:{color:"#f25353"}},[e._v(e._s(e.$i18n.t("money"))+e._s(t.price))])])])])})),0)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"arrow"},[a("i",{staticClass:"iconfont icon-member-left"})])}],s=(a("4056"),a("44bf")),l=(a("14d9"),a("99af"),a("ac0d")),d=a("98e3"),o={components:{VanImage:s["a"],goodList:d["a"]},mixins:[l["a"]],data:function(){return{flag_status:!0,goods:[],album_id:"",goods_template:{},album:{},list:[],isLoadMore:!0,current_page:1,last_page:1}},activated:function(){function e(){var e,t,a=window.location.hash,i=a.indexOf("?");a=a.substr(i+1);for(var r=a.split("&"),s=0;s<r.length;s++)i=r[s].indexOf("="),i>0&&(e=r[s].substring(0,i),t=r[s].substr(i+1),this[e]=t)}var t=new e;this.album_id=t.album_id,this.getData()},methods:{gotoGoods:function(e){this.$router.push(this.fun.getUrl("goods",{id:e}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.current_page>=this.last_page)){var t=this.current_page+1;$http.get("plugin.yz-supply.frontend.album.detail.index",{page:t,album_id:this.album_id}).then((function(t){if(e.isLoadMore=!0,t.result){var a=t.data;e.list=e.list.concat(a.list.data),e.current_page=a.list.current_page}}))}},getData:function(){var e=this;$http.get("plugin.yz-supply.frontend.album.detail.index",{page:1,album_id:this.album_id}).then((function(t){if(t.result){var a=t.data;e.album=a.album,e.list=a.list.data,e.last_page=a.list.last_page}}))}}},n=o,c=(a("dca1"),a("2877")),f=Object(c["a"])(n,i,r,!1,null,"0ded0bff",null);t["default"]=f.exports},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i=document.documentElement,r=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:r&&(e=r.scrollTop),e},getClientHeight:function(){var e=0;return e=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(r.scrollHeight,i.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(){}}}},dca1:function(e,t,a){"use strict";a("6703")}}]);