bztang-admin/addons/yun_shop/static/app/js/chunk-3539155c.b71b12c8.js

1 line
6.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3539155c"],{2502:function(t,i,e){"use strict";e.r(i);var o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{style:{backgroundColor:t.info.main_color},attrs:{id:"othersPage"}},[e("c-title",{attrs:{hide:!1,text:t.info.title?t.info.title:"专题页"}}),t.info.banner?e("div",{staticClass:"banner"},[e("img",{attrs:{src:t.info.banner,alt:""}})]):t._e(),e("div",{staticClass:"listBox"},t._l(t.list,(function(i,o){return e("div",{key:o,staticClass:"lis",on:{click:function(e){return t.toGoods(i.id)}}},[e("div",{staticClass:"image"},[e("img",{attrs:{src:i.thumb,alt:""}})]),e("div",{staticClass:"bottom"},[e("div",{staticClass:"title"},[t._v(t._s(i.title))]),e("div",{staticClass:"bottom_main"},[e("div",{staticClass:"price"},[t._v(t._s(t.$i18n.t("money"))+t._s(i.price))]),t._m(0,!0)])])])})),0)],1)},a=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"buyBtn"},[e("i",{staticClass:"iconfont icon-gaiicon-"})])}],n=(e("e7e5"),e("d399")),s=(e("14d9"),e("99af"),e("ac0d")),c={mixins:[s["a"]],data:function(){return{list:[],topic_id:"",info:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){window.scrollTo(0,0),this.$route.params.id&&(this.topic_id=this.$route.params.id,this.getinfo(),this.getData())},methods:{init:function(){this.isLoadMore=!0,this.page=1,this.total_page=1,this.list=[]},toGoods:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))},getinfo:function(){var t=this,i="plugin.project-template.frontend.topic.getTopicByTopicId";$http.get(i,{topic_id:this.topic_id},"生成中").then((function(i){1===i.result?(t.info=i.data,t.fun.setWXTitle(t.info.title?t.info.title:"专题页")):t.$dialog.alert({message:i.msg})})).catch((function(t){}))},getData:function(){var t=this,i="plugin.project-template.frontend.topic.getTopicGoodsByTopicId";$http.get(i,{page:this.page,topic_id:this.topic_id},"生成中").then((function(i){1===i.result?(t.isLoadMore=!0,t.total_page=i.data.last_page,t.total_page||(t.total_page=0),t.list=i.data.data):t.$dialog.alert({message:i.msg})})).catch((function(t){}))},getMoreData:function(){var t=this,i="plugin.project-template.frontend.topic.getTopicGoodsByTopicId";this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(i,{page:this.page,topic_id:this.topic_id},"加载中").then((function(i){if(t.isLoadMore=!0,1===i.result){var e=i.data.data;t.list=t.list.concat(e)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){Object(n["a"])(t.msg)})).catch((function(t){})))}}},l=c,r=(e("6bbc"),e("2877")),d=Object(r["a"])(l,o,a,!1,null,"0bd94c8c",null);i["default"]=d.exports},"4c32a":function(t,i,e){var o=e("24fb");i=o(!1),i.push([t.i,"#othersPage[data-v-0bd94c8c]{min-height:100vh}.banner[data-v-0bd94c8c]{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.banner img[data-v-0bd94c8c]{width:100%;height:auto}.listBox[data-v-0bd94c8c]{padding:.94rem .94rem 1.5rem .94rem;-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}.listBox[data-v-0bd94c8c],.listBox .lis[data-v-0bd94c8c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.listBox .lis[data-v-0bd94c8c]{margin-bottom:.625rem;background:#fff;padding-bottom:1rem;width:10.47rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-radius:.31rem}.listBox .lis .image[data-v-0bd94c8c]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:10.47rem;border-radius:.31rem .31rem 0 0}.listBox .lis .image img[data-v-0bd94c8c]{width:100%;height:100%;border-radius:.31rem .31rem 0 0}.listBox .lis .bottom[data-v-0bd94c8c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding:.63rem .28rem 0 .53rem;overflow:hidden}.listBox .lis .bottom .title[data-v-0bd94c8c]{text-align:left;font-size:.81rem;font-weight:700;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:.59rem}.listBox .lis .bottom .bottom_main[data-v-0bd94c8c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center}.listBox .lis .bottom .bottom_main .price[data-v-0bd94c8c]{font-size:.85rem;color:#ff464c;line-height:26px}.listBox .lis .bottom .bottom_main .buyBtn[data-v-0bd94c8c]{border-radius:100%;width:26px;height:26px;border:.5px solid #ff2c29;color:#ff2c29;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.listBox .lis .bottom .bottom_main .buyBtn .iconfont[data-v-0bd94c8c]{font-size:12px;font-weight:400}",""]),t.exports=i},"6bbc":function(t,i,e){"use strict";e("ea43")},ac0d:function(t,i,e){"use strict";e.d(i,"a",(function(){return n}));var o=document.documentElement,a=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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(){}}}},ea43:function(t,i,e){var o=e("4c32a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=e("499e").default;a("481b4b74",o,!0,{sourceMap:!1,shadowMode:!1})}}]);