1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed103532"],{"246b":function(t,e,i){"use strict";i("ae73")},"3d40":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#auction_index[data-v-adceb592]{background-color:#fff;height:100vh;position:relative}#auction_index .content[data-v-adceb592]{padding:0 .75rem;background-color:#fff}#auction_index .content .input[data-v-adceb592]{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_index .content .input i[data-v-adceb592]{color:#c9c9c9;margin-right:.75rem;margin-left:.75rem}#auction_index .content .input input[data-v-adceb592]{outline:none;border:none;color:#c9c9c9;font-size:12px}#auction_index .content .my-swipe a[data-v-adceb592]{width:100%;height:100%}#auction_index .content .my-swipe img[data-v-adceb592]{width:100%;border-radius:.625rem}#auction_index .content .introduce[data-v-adceb592]{margin-top:1.25rem}#auction_index .content .introduce .title[data-v-adceb592]{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;color:#000;font-size:18px}#auction_index .content .introduce .title .more[data-v-adceb592]{color:#999;font-size:14px}#auction_index .content .introduce .good-list[data-v-adceb592]{-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_index .content .introduce .good-list .good[data-v-adceb592]{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_index .content .introduce .good-list .good .image[data-v-adceb592]{width:100%;height:10.625rem}#auction_index .content .introduce .good-list .good .image img[data-v-adceb592]{width:100%;height:100%;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#auction_index .content .introduce .good-list .good .bottom[data-v-adceb592]{padding:0 .5rem;padding-top:.5rem;padding-bottom:1rem}#auction_index .content .introduce .good-list .good .bottom .tit[data-v-adceb592]{color:#333;text-align:left}#auction_index .content .introduce .good-list .good .bottom .cash[data-v-adceb592]{text-align:left;font-size:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.125rem;line-height:14px}#auction_index .content .introduce .good-list .good .bottom .cash .money[data-v-adceb592]{font-size:16px;color:#ef3e3e}#auction_index .content .introduce .good-list .good .time[data-v-adceb592]{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_index .content .introduce .good-list .good[data-v-adceb592]:nth-child(2n){margin-right:0}#auction_index .content .new .title[data-v-adceb592]{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;color:#000;font-size:18px}#auction_index .content .new .title .more[data-v-adceb592]{color:#999;font-size:14px}#auction_index .content .new .good-list[data-v-adceb592]{-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_index .content .new .good-list .good[data-v-adceb592]{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_index .content .new .good-list .good .image[data-v-adceb592]{width:100%;height:10.625rem}#auction_index .content .new .good-list .good .image img[data-v-adceb592]{width:100%;height:100%;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#auction_index .content .new .good-list .good .bottom[data-v-adceb592]{padding:0 .5rem;padding-top:.5rem;padding-bottom:1rem}#auction_index .content .new .good-list .good .bottom .tit[data-v-adceb592]{color:#333;text-align:left}#auction_index .content .new .good-list .good .bottom .cash[data-v-adceb592]{text-align:left;font-size:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.125rem;line-height:14px}#auction_index .content .new .good-list .good .bottom .cash .money[data-v-adceb592]{font-size:16px;color:#ef3e3e}#auction_index .content .new .good-list .good .time[data-v-adceb592]{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_index .content .new .good-list .good[data-v-adceb592]:nth-child(2n){margin-right:0}#auction_index .btn[data-v-adceb592]{width:3.5rem;height:3.5rem;background-color:#ff2c29;-webkit-box-shadow:0 0 .1875rem 0 rgba(237,11,11,.23);box-shadow:0 0 .1875rem 0 rgba(237,11,11,.23);border:.0625rem solid #f51f27;border-radius:50%;color:#fff;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;position:fixed;top:70%;right:.9375rem;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;font-size:12px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#auction_index .pop[data-v-adceb592]{padding:0 .75rem}#auction_index .pop .check[data-v-adceb592]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:1rem}#auction_index .pop .check input[data-v-adceb592]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:none;outline:none;margin-left:1rem;border-bottom:1px solid #ccc}#auction_index .pop .title[data-v-adceb592]{padding:1.5rem 0}#auction_index .pop .bottom-btn[data-v-adceb592],#auction_index .pop .title[data-v-adceb592]{font-size:18px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#auction_index .pop .bottom-btn[data-v-adceb592]{height:2.8125rem;background-image:-webkit-gradient(linear,left top,left bottom,from(#ff2c29),to(#ff2c29)),-webkit-gradient(linear,left top,left bottom,from(#ff590f),to(#ff590f));background-image:-webkit-linear-gradient(#ff2c29,#ff2c29),-webkit-linear-gradient(#ff590f,#ff590f);background-image:linear-gradient(#ff2c29,#ff2c29),linear-gradient(#ff590f,#ff590f);background-blend-mode:normal,normal;border-radius:1.4375rem;color:#fff;margin-top:6.25rem}.pcStyle[data-v-adceb592]{right:30%!important;-webkit-transform:translateX(-50%);transform:translateX(-50%)}",""]),t.exports=e},"4da9":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"auction_index",attrs:{id:"auction_index"}},[i("c-title",{attrs:{hide:!1,text:"首页"}}),i("div",{staticClass:"content"},[i("div",{staticClass:"input"},[i("i",{staticClass:"iconfont icon-sousuo"}),i("input",{attrs:{type:"text",placeholder:"搜索拍卖商品"},on:{click:t.toSearch}})]),i("van-swipe",{staticClass:"my-swipe",attrs:{"indicator-color":"white",autoplay:3e3}},t._l(t.rotation,(function(t,e){return i("van-swipe-item",{key:e},[i("a",{attrs:{href:t.url}},[i("img",{attrs:{src:t.img}})])])})),1),i("div",{staticClass:"introduce"},[i("div",{staticClass:"title"},[i("span",[t._v("推荐商品")]),i("span",{staticClass:"more",on:{click:t.toMore}},[t._v("更多")])]),i("div",{staticClass:"good-list"},t._l(t.recommend,(function(e,a){return i("div",{key:a,staticClass:"good",on:{click:function(i){return t.toDetail(e)}}},[i("div",{staticClass:"image"},[i("img",{attrs:{src:e.thumb}})]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"tit"},[t._v(t._s(e.title))]),i("div",{staticClass:"cash"},[i("span",[t._v("起拍价")]),i("div",{staticClass:"money"},[i("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(t.$i18n.t("money")))]),i("span",[t._v(t._s(e.start_price))])])])]),i("div",{staticClass:"time"},[t._v(" "+t._s(t.timestampToTime(e.end_shooting))+"结束 ")])])})),0)]),i("div",{staticClass:"new"},[t._m(0),i("div",{staticClass:"good-list"},t._l(t.datas,(function(e,a){return i("div",{key:a,staticClass:"good",on:{click:function(i){return t.toDetail(e)}}},[i("div",{staticClass:"image"},[i("img",{attrs:{src:e.thumb}})]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"tit"},[t._v(t._s(e.title))]),i("div",{staticClass:"cash"},[i("span",[t._v("起拍价")]),i("div",{staticClass:"money"},[i("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(t.$i18n.t("money")))]),i("span",[t._v(t._s(e.start_price?e.start_price:0))])])])]),i("div",{staticClass:"time"},[t._v(" "+t._s(t.timestampToTime(e.end_shooting))+"结束 ")])])})),0)])],1),i("div",{staticClass:"btn",class:[3==t.fun.getPhoneEnv()?"pcStyle":""],on:{click:t.toMy}},[i("i",{staticClass:"iconfont icon-home-line6"}),i("div",[t._v("我的")])])],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"title"},[i("span",[t._v("最新商品")])])}],n=(i("99af"),i("6968")),d=i("ac0d"),r={mixins:[d["a"]],data:function(){return{rotation:[],recommend:[],loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,datas:[]}},mounted:function(){window.scrollTo(0,0),this.getData(),this.getNew(),this.now=new Date(this.timestampToTime((new Date).valueOf()/1e3)).valueOf()/1e3},methods:{initData:function(){this.loading=!1,this.allLoaded=!1,this.goload=!0,this.isLoadMore=!0,this.page=1,this.total_page=0,this.datas=[]},timestampToTime:function(t){var e=new Date(1e3*t),i=e.getFullYear()+"/",a=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"/",o=this.change(e.getDate())+" ",n=this.change(e.getHours())+":",d=this.change(e.getMinutes());return i+a+o+n+d},change:function(t){return t<10?"0"+t:t},toMore:function(){this.$router.push(this.fun.getUrl("auctionMore"))},toSearch:function(){this.$router.push(this.fun.getUrl("auctionSearch"))},toDetail:function(t){var e=t.member_id?t.member_id:t.auctioneer_id;this.$router.push(this.fun.getUrl("auctionGood",{goods_id:t.goods_id,id:e}))},toMy:function(){this.$router.push(this.fun.getUrl("myIndex"))},getData:function(){var t=this,e={art:"index"};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?(t.rotation=e.data.index.rotation,t.recommend=e.data.index.recommend):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getNew:function(){var t=this,e={keyword:"",status:1,auc_status:"",is_new:1,is_recommend:"",auctioneer_id:"",art:"getSearch",page:this.page,is_pass:"0"};$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 i={keyword:"",status:"1",auc_status:"",is_new:1,is_recommend:"",auctioneer_id:"",art:"getSearch",page:this.page,is_pass:"0"};$http.get("plugin.auction.api.index.getAuctionData",i,"加载中").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"]}},c=r,s=c,l=(i("246b"),i("2877")),f=Object(l["a"])(s,a,o,!1,null,"adceb592",null);e["default"]=f.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},ae73:function(t,e,i){var a=i("3d40");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("1c448d97",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |