1 line
6.9 KiB
JavaScript
1 line
6.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0edd7116"],{"5a927":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"auction_more",attrs:{id:"auction_more"}},[o("c-title",{attrs:{hide:!1,text:"推荐拍品"}}),o("div",{staticClass:"content"},[o("div",{staticClass:"input"},[o("i",{staticClass:"iconfont icon-sousuo"}),o("input",{attrs:{type:"text",placeholder:"搜索拍卖商品"},on:{click:t.toSearch}})]),o("div",{staticClass:"good-list"},t._l(t.datas,(function(e,a){return o("div",{key:a,staticClass:"good",on:{click:function(o){return t.toDetail(e)}}},[o("div",{staticClass:"image"},[o("img",{attrs:{src:e.thumb}})]),o("div",{staticClass:"bottom"},[o("div",{staticClass:"tit"},[t._v(t._s(e.title))]),o("div",{staticClass:"cash"},[o("span",[t._v("起拍价")]),o("div",{staticClass:"money"},[o("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(t.$i18n.t("money")))]),o("span",[t._v(t._s(e.start_price?e.start_price:0))])])])]),o("div",{staticClass:"time"},[t._v(" "+t._s(t.timestampToTime(e.end_shooting))+"结束 ")])])})),0)])],1)},i=[],n=(o("99af"),o("6968")),r=o("ac0d"),s={mixins:[r["a"]],data:function(){return{loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,datas:[]}},activated:function(){this.getIntro()},methods:{timestampToTime:function(t){var e=new Date(1e3*t),o=e.getFullYear()+"-",a=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",i=this.change(e.getDate())+" ",n=this.change(e.getHours())+":",r=this.change(e.getMinutes());return o+a+i+n+r},change:function(t){return t<10?"0"+t:t},toSearch:function(){this.$router.push(this.fun.getUrl("auctionSearch"))},toDetail:function(t){this.$router.push(this.fun.getUrl("auctionGood",{id:t.member_id,goods_id:t.goods_id}))},getIntro:function(){var t=this,e={keyword:"",status:1,auc_status:"",is_new:"",is_recommend:1,auctioneer_id:"",art:"getSearch",page:this.page};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?(t.total_page=e.data.getSearch.last_page,t.total_page||(t.total_page=0),t.datas=e.data.getSearch.data):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getMoreData:function(t){var e=this;if(this.page!==this.total_page){if(this.page>=this.total_page)return e.loading=!0,void(e.allLoaded=!0);this.page=this.page+1;var o={keyword:"",status:1,auc_status:"",is_new:"",is_recommend:1,auctioneer_id:"",art:"getSearch",page:this.page};$http.get("plugin.auction.api.index.getAuctionData",o,"加载中").then((function(t){if(1!==t.result)return e.page=e.page-1,e.loading=!0,e.allLoaded=!0,void(e.isLoadMore=!1);e.total_page=t.data.getSearch.last_page,e.loading=!1,e.allLoaded=!1,e.datas=e.datas.concat(t.data.getSearch.data)}),(function(t){}))}}},components:{cTitle:n["a"]}},d=s,c=d,l=(o("cbb6"),o("2877")),g=Object(l["a"])(c,a,i,!1,null,"6bde4e5f",null);e["default"]=g.exports},"9aa59":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,"#auction_more[data-v-6bde4e5f]{background-color:#fff;height:100vh}#auction_more .content[data-v-6bde4e5f]{padding:0 .75rem;background-color:#fff}#auction_more .content .input[data-v-6bde4e5f]{width:16.8125rem;height:1.875rem;background-color:#f8f8f8;border-radius:.9375rem;margin:0 auto;margin-top:.75rem;margin-bottom:.75rem;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}#auction_more .content .input i[data-v-6bde4e5f]{color:#c9c9c9;margin-right:.75rem;margin-left:.75rem}#auction_more .content .input input[data-v-6bde4e5f]{outline:none;border:none;color:#c9c9c9;font-size:12px}#auction_more .content .good-list[data-v-6bde4e5f]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#auction_more .content .good-list .good[data-v-6bde4e5f]{width:48%;margin-right:4%;-webkit-box-shadow:0 0 .4375rem 0 hsla(0,0%,76.1%,.31);box-shadow:0 0 .4375rem 0 hsla(0,0%,76.1%,.31);border-radius:.3125rem;position:relative;margin-bottom:1.25rem}#auction_more .content .good-list .good .image[data-v-6bde4e5f]{width:100%;height:10.625rem}#auction_more .content .good-list .good .image img[data-v-6bde4e5f]{width:100%;height:100%;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#auction_more .content .good-list .good .bottom[data-v-6bde4e5f]{padding:0 .5rem;padding-top:.5rem;padding-bottom:1rem}#auction_more .content .good-list .good .bottom .tit[data-v-6bde4e5f]{color:#333;text-align:left}#auction_more .content .good-list .good .bottom .cash[data-v-6bde4e5f]{text-align:left;font-size:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.125rem}#auction_more .content .good-list .good .bottom .cash .money[data-v-6bde4e5f]{font-size:16px;color:#ef3e3e}#auction_more .content .good-list .good .time[data-v-6bde4e5f]{position:absolute;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;top:0;left:0;width:5.4375rem;background-image:-webkit-gradient(linear,right top,left top,from(#ff6333),to(#ff2c29)),-webkit-gradient(linear,left top,left bottom,from(#fe8a02),to(#fe8a02));background-image:-webkit-linear-gradient(right,#ff6333,#ff2c29),-webkit-linear-gradient(#fe8a02,#fe8a02);background-image:linear-gradient(270deg,#ff6333,#ff2c29),linear-gradient(#fe8a02,#fe8a02);border-radius:.3125rem 0 .3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;font-size:12px}#auction_more .content .good-list .good[data-v-6bde4e5f]:nth-child(2n){margin-right:0}",""]),t.exports=e},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var a=document.documentElement,i=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 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(){}}}},cbb6:function(t,e,o){"use strict";o("dfb2")},dfb2:function(t,e,o){var a=o("9aa59");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("499e").default;i("22d75f39",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |