1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25fab3a0"],{7496:function(t,e,a){"use strict";a("a68f")},a68f:function(t,e,a){var i=a("e5d1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("5302d7f9",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=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 i&&i.scrollTop?t=i.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,i.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(){}}}},b7d9:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"auction_search"}},[a("c-title",{attrs:{hide:!1,text:"搜索结果"}}),a("div",{staticClass:"content"},[a("div",{staticClass:"wrap"},[a("div",{staticClass:"select"},[a("div",{staticClass:"select-option"},[a("span",[t._v(t._s(1==t.status?"拍品":"拍卖官"))]),a("i",{staticClass:"iconfont icon-down",on:{click:function(e){t.show=!t.show}}})]),t.show?a("div",{staticClass:"option"},[a("div",{staticClass:"option-one",on:{click:function(e){return t.select(1)}}},[t._v(" 拍品 ")]),a("div",{staticClass:"option-two",on:{click:function(e){return t.select(2)}}},[t._v(" 拍卖官 ")])]):t._e()]),a("div",{staticClass:"input"},[a("i",{staticClass:"iconfont icon-sousuo",on:{click:t.getSearch}}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],attrs:{type:"text",placeholder:1==t.status?"搜索拍卖商品":"搜索拍卖官"},domProps:{value:t.keyword},on:{keypress:t.enterSearch,input:function(e){e.target.composing||(t.keyword=e.target.value)}}})])]),1==t.status?a("div",{staticClass:"good-list"},t._l(t.datas,(function(e,i){return a("div",{key:i,staticClass:"good",on:{click:function(a){return t.toDetail(e)}}},[a("div",{staticClass:"image"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"bottom"},[a("div",{staticClass:"tit"},[t._v(t._s(e.title))]),a("div",{staticClass:"cash"},[a("span",[t._v("起拍价")]),a("div",{staticClass:"money"},[a("span",{staticStyle:{"font-size":"12px"}},[t._v(t._s(t.$i18n.t("money")))]),a("span",[t._v(t._s(e.start_price?e.start_price:0))])])])]),a("div",{staticClass:"time"},[t._v(" "+t._s(t.timestampToTime(e.end_shooting))+"结束 ")])])})),0):t._e(),2==t.status?a("div",{staticClass:"shop-item"},t._l(t.datas,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.toShop(e)}}},[a("div",{staticClass:"avator"},[a("img",{attrs:{src:e.avatar}})]),a("div",{staticClass:"name"},[t._v(t._s(e.nick_name))])])})),0):t._e()])],1)},o=[],n=(a("99af"),a("6968")),s=a("ac0d"),r={mixins:[s["a"]],data:function(){return{show:!1,status:1,keyword:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,datas:[]}},activated:function(){this.getSearch()},methods:{enterSearch:function(t){13===t.keyCode&&(t.preventDefault(),this.getSearch())},timestampToTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",o=this.change(e.getDate())+" ",n=this.change(e.getHours())+":",s=this.change(e.getMinutes());return a+i+o+n+s},change:function(t){return t<10?"0"+t:t},toDetail:function(t){this.$router.push(this.fun.getUrl("auctionGood",{id:t.member_id,goods_id:t.goods_id}))},initData:function(){this.loading=!1,this.allLoaded=!1,this.goload=!0,this.isLoadMore=!0,this.page=1,this.total_page=0,this.datas=[]},toShop:function(t){this.$router.push(this.fun.getUrl("auctioneerShop",{id:t.member_id}))},select:function(t){this.status=t,this.show=!1,this.initData()},getSearch:function(){var t=this,e={keyword:this.keyword,status:this.status,auc_status:"",is_new:"",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 a={keyword:this.keyword,status:this.status,auc_status:"",is_new:"",is_recommend:"",auctioneer_id:"",art:"getSearch",page:this.page,is_pass:"0"};$http.get("plugin.auction.api.index.getAuctionData",a,"加载中").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,l=c,d=(a("7496"),a("2877")),h=Object(d["a"])(l,i,o,!1,null,"487f17ea",null);e["default"]=h.exports},e5d1:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#auction_search[data-v-487f17ea]{background-color:#fff;height:100vh}#auction_search .content[data-v-487f17ea]{padding:0 .75rem;background-color:#fff}#auction_search .content .wrap[data-v-487f17ea]{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_search .content .wrap .select[data-v-487f17ea]{margin-right:1rem;position:relative;width:5rem}#auction_search .content .wrap .select .option[data-v-487f17ea]{position:absolute;width:4rem;border:1px solid #ccc;-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);background-color:#fff;z-index:999}#auction_search .content .wrap .select .option .option-one[data-v-487f17ea]{border-bottom:1px solid #ccc}#auction_search .content .wrap .select .option .option-one[data-v-487f17ea],#auction_search .content .wrap .select .option .option-two[data-v-487f17ea]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:2rem}#auction_search .content .wrap .input[data-v-487f17ea],#auction_search .content .wrap .select .option .option-one[data-v-487f17ea],#auction_search .content .wrap .select .option .option-two[data-v-487f17ea]{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_search .content .wrap .input[data-v-487f17ea]{width:16.8125rem;height:1.875rem;background-color:#f8f8f8;border-radius:.9375rem;margin:0 auto;margin-top:.75rem;margin-bottom:.75rem}#auction_search .content .wrap .input i[data-v-487f17ea]{color:#c9c9c9;margin-right:.75rem;margin-left:.75rem}#auction_search .content .wrap .input input[data-v-487f17ea]{outline:none;border:none;color:#c9c9c9;font-size:12px}#auction_search .content .good-list[data-v-487f17ea]{-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_search .content .good-list .good[data-v-487f17ea]{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_search .content .good-list .good .image[data-v-487f17ea]{width:100%;height:10.625rem}#auction_search .content .good-list .good .image img[data-v-487f17ea]{width:100%;height:100%;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#auction_search .content .good-list .good .bottom[data-v-487f17ea]{padding:0 .5rem;padding-top:.5rem;padding-bottom:1rem}#auction_search .content .good-list .good .bottom .tit[data-v-487f17ea]{color:#333;text-align:left}#auction_search .content .good-list .good .bottom .cash[data-v-487f17ea]{text-align:left;font-size:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.125rem}#auction_search .content .good-list .good .bottom .cash .money[data-v-487f17ea]{font-size:16px;color:#ef3e3e}#auction_search .content .good-list .good .time[data-v-487f17ea]{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_search .content .good-list .good[data-v-487f17ea]:nth-child(2n){margin-right:0}#auction_search .content .shop-item[data-v-487f17ea]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#auction_search .content .shop-item .item[data-v-487f17ea]{position:relative;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;margin-right:2%;width:32%;padding:1rem 0;background-color:#fff;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-radius:1.3125rem;text-align:left;-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);margin-bottom:1rem}#auction_search .content .shop-item .item .avator[data-v-487f17ea]{width:3.0625rem;height:3.0625rem;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50%;margin-bottom:.75rem}#auction_search .content .shop-item .item .avator img[data-v-487f17ea]{width:100%;height:100%;border-radius:50%}#auction_search .content .shop-item .item .count[data-v-487f17ea]{color:#999;font-size:12px}#auction_search .content .shop-item .item .mask[data-v-487f17ea]{border-radius:1.3125rem;background-color:hsla(0,0%,54.9%,.5);position:absolute;width:100%;height:100%}#auction_search .content .shop-item .item .mask[data-v-487f17ea],#auction_search .content .shop-item .item .mask .lock[data-v-487f17ea]{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}#auction_search .content .shop-item .item .mask .lock[data-v-487f17ea]{width:2.8125rem;height:2.8125rem;background-color:hsla(0,0%,100%,.4);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;border-radius:50%}#auction_search .content .shop-item .item .mask .lock i[data-v-487f17ea]{font-size:28px}#auction_search .content .shop-item .item[data-v-487f17ea]:nth-child(3n){margin-right:0}",""]),t.exports=e}}]); |