bztang-admin/addons/yun_shop/static/app/js/chunk-6f455b03.910343f8.js

1 line
7.7 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f455b03"],{"016f9":function(t,e,a){var i=a("4b9f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("099d8600",i,!0,{sourceMap:!1,shadowMode:!1})},"4b9f":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#auctioneer_shop_search[data-v-343695ee]{background-color:#fff;height:100vh}#auctioneer_shop_search .content[data-v-343695ee]{padding:0 .75rem;background-color:#fff}#auctioneer_shop_search .content .input[data-v-343695ee]{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}#auctioneer_shop_search .content .input i[data-v-343695ee]{color:#c9c9c9;margin-right:.75rem;margin-left:.75rem}#auctioneer_shop_search .content .input input[data-v-343695ee]{outline:none;border:none;color:#c9c9c9;font-size:12px}#auctioneer_shop_search .content .good-list[data-v-343695ee]{-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}#auctioneer_shop_search .content .good-list .good[data-v-343695ee]{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}#auctioneer_shop_search .content .good-list .good .image[data-v-343695ee]{width:100%;height:10.625rem}#auctioneer_shop_search .content .good-list .good .image img[data-v-343695ee]{width:100%;height:100%;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#auctioneer_shop_search .content .good-list .good .bottom[data-v-343695ee]{padding:0 .5rem;padding-top:.5rem;padding-bottom:1rem}#auctioneer_shop_search .content .good-list .good .bottom .tit[data-v-343695ee]{color:#333;text-align:left}#auctioneer_shop_search .content .good-list .good .bottom .cash[data-v-343695ee]{text-align:left;font-size:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:1.125rem}#auctioneer_shop_search .content .good-list .good .bottom .cash .money[data-v-343695ee]{font-size:16px;color:#ef3e3e}#auctioneer_shop_search .content .good-list .good .time[data-v-343695ee]{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}#auctioneer_shop_search .content .good-list .good[data-v-343695ee]:nth-child(2n){margin-right:0}",""]),t.exports=e},"4f93":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",{ref:"auctioneer_shop_search",attrs:{id:"auctioneer_shop_search"}},[a("c-title",{attrs:{hide:!1,text:"全部拍品"}}),a("div",{staticClass:"content"},[a("div",{staticClass:"input"},[a("i",{staticClass:"iconfont icon-sousuo",on:{click:function(e){return t.getSearch()}}}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],attrs:{type:"text",placeholder:"搜索拍卖商品"},domProps:{value:t.keyword},on:{keypress:t.enterSearch,input:function(e){e.target.composing||(t.keyword=e.target.value)}}})]),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)])],1)},o=[],n=(a("99af"),a("6968")),s=a("ac0d"),r={mixins:[s["a"]],data:function(){return{keyword:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,datas:[],id:"",status:"",is_verify:"",now:""}},activated:function(){this.id=this.$route.params.id,this.now=new Date(this.timestampToTime((new Date).valueOf()/1e3)).valueOf()/1e3,this.getStatus()},methods:{enterSearch:function(t){13===t.keyCode&&(t.preventDefault(),this.getSearch())},getStatus:function(){var t=this,e={member_id:this.id};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?t.status=e.data.getVerify.status:t.$dialog.alert({message:e.msg})})).catch((function(t){}))},getSearch:function(){var t=this,e={keyword:this.keyword,status:1,auc_status:"",is_new:"",is_recommend:"",auctioneer_id:this.id,art:"getSearch",page:this.page,is_pass:this.status?"1":"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){}))},toDetail:function(t){this.$router.push(this.fun.getUrl("auctionGood",{id:t.member_id,goods_id:t.goods_id}))},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},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:1,auc_status:"",is_new:"",is_recommend:"",auctioneer_id:this.id,art:"getSearch",page:this.page,is_pass:this.status?"1":"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("e0a62"),a("2877")),g=Object(d["a"])(l,i,o,!1,null,"343695ee",null);e["default"]=g.exports},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(){}}}},e0a62:function(t,e,a){"use strict";a("016f9")}}]);