1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a0f26038"],{"2cd8":function(t,e,i){var a=i("ba0a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("5a0ae57a",a,!0,{sourceMap:!1,shadowMode:!1})},"51ee":function(t,e,i){"use strict";i("2cd8")},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(){}}}},ba0a:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#my_auction[data-v-75167448]{background-color:#fff;height:100vh}#my_auction .content[data-v-75167448]{background-color:#fff;padding:0 .75rem;padding-top:.75rem}#my_auction .content .list[data-v-75167448]{margin-bottom:.75rem;position:relative}#my_auction .content .list[data-v-75167448],#my_auction .content .list .image[data-v-75167448]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#my_auction .content .list .image[data-v-75167448]{width:7.9375rem;height:8rem;border-radius:.3125rem}#my_auction .content .list .image img[data-v-75167448]{width:100%;height:100%;border-radius:.3125rem}#my_auction .content .list .right[data-v-75167448]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:.5rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#my_auction .content .list .right .title[data-v-75167448]{text-align:left;font-size:14px;color:#000;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#my_auction .content .list .right .bottom[data-v-75167448]{text-align:left}#my_auction .content .list .right .bottom .cash[data-v-75167448]{color:#f01818;font-size:12px}#my_auction .content .list .right .bottom .time[data-v-75167448]{margin:.75rem 0;font-size:12px;color:#999}#my_auction .content .list .confirm[data-v-75167448]{width:4rem;height:2rem;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;color:#fff;background-color:#f01818;position:absolute;bottom:1rem;right:0;border-radius:1rem;font-size:12px}#my_auction .content .list[data-v-75167448]:last-child{margin-bottom:0}#my_auction .content .blank[data-v-75167448]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-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;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#my_auction .content .blank img[data-v-75167448]{width:6rem;height:6rem}#my_auction .content .blank span[data-v-75167448]{margin-top:15px;color:#ccc;font-size:14px}#my_auction .content .al-list .title[data-v-75167448]{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:.75rem}#my_auction .content .al-list .title .last[data-v-75167448]{color:red}#my_auction .content .al-list .block[data-v-75167448]{padding-bottom:.75rem 0}#my_auction .content .al-list .block .top[data-v-75167448]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#my_auction .content .al-list .block .top .img[data-v-75167448]{width:4rem;height:4rem;background-color:#f2f2f2;border:.0625rem solid #e5e5e5;-webkit-box-sizing:border-box;box-sizing:border-box}#my_auction .content .al-list .block .top .img img[data-v-75167448]{width:100%;height:100%}#my_auction .content .al-list .block .top .right[data-v-75167448]{margin-left:.75rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#my_auction .content .al-list .block .top .right[data-v-75167448],#my_auction .content .al-list .block .top .right .tit[data-v-75167448]{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}#my_auction .content .al-list .block .top .right .tit[data-v-75167448]{text-align:left}#my_auction .content .al-list .block .top .right .tit .na[data-v-75167448]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#my_auction .content .al-list .block .top .right .tit .money[data-v-75167448]{color:#999;font-size:12px}#my_auction .content .al-list .block .top .right .bt[data-v-75167448]{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}#my_auction .content .al-list .block .top .right .bt span[data-v-75167448]{font-size:12px;color:#999}#my_auction .content .al-list .block .bottom[data-v-75167448]{margin-top:1.5rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#my_auction .content .al-list .block .bottom[data-v-75167448],#my_auction .content .al-list .block .bottom .btn[data-v-75167448]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#my_auction .content .al-list .block .bottom .btn .left[data-v-75167448]{border-radius:.1875rem;border:.0625rem solid #cbcbcb;margin-right:1rem}#my_auction .content .al-list .block .bottom .btn .left[data-v-75167448],#my_auction .content .al-list .block .bottom .btn .right[data-v-75167448]{width:4.625rem;height:1.8125rem;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}#my_auction .content .al-list .block .bottom .btn .right[data-v-75167448]{background-color:#f53838;border-radius:.1875rem;color:#fff}",""]),t.exports=e},f188: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:"my_auction",attrs:{id:"my_auction"}},[i("c-title",{attrs:{hide:!1,text:"我的拍卖"}}),i("van-tabs",{attrs:{sticky:""},on:{change:t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("van-tab",{attrs:{title:"待开拍",name:"0"}}),i("van-tab",{attrs:{title:"竞拍中",name:"1"}}),i("van-tab",{attrs:{title:"已结束",name:"2"}}),i("van-tab",{attrs:{title:"待确认",name:"3"}}),i("van-tab",{attrs:{title:"已拍下",name:"4"}})],1),i("div",{staticClass:"content"},[0==t.activeName||1==t.activeName?t._l(t.datas,(function(e,a){return i("div",{key:a,staticClass:"list",on:{click:function(i){return t.toDetail(e)}}},[e.goods?i("div",{staticClass:"image"},[i("img",{attrs:{src:e.goods.thumb}})]):t._e(),i("div",{staticClass:"right"},[e.goods?i("div",{staticClass:"title"},[t._v(t._s(e.goods.title))]):t._e(),i("div",{staticClass:"bottom"},[e.auction_goods_record?i("div",{staticClass:"cash"},[i("span",[t._v("当前价:")]),i("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.auction_goods_record.price))])]):t._e(),e.auction_goods_record?i("div",{staticClass:"time"},[i("span",[t._v(t._s(t.timestampToTime(e.auction_goods_record.end_shooting))+"结束")])]):t._e()])])])})):t._e(),2==t.activeName?t._l(t.datas,(function(e,a){return i("van-swipe-cell",{key:a},[i("div",{staticClass:"list",on:{click:function(i){return t.toDetail(e)}}},[e.goods?i("div",{staticClass:"image"},[i("img",{attrs:{src:e.goods.thumb}})]):t._e(),i("div",{staticClass:"right"},[e.goods?i("div",{staticClass:"title"},[t._v(t._s(e.goods.title))]):t._e(),i("div",{staticClass:"bottom"},[e.auction_goods_record?i("div",{staticClass:"cash"},[i("span",[t._v("当前价:")]),i("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.auction_goods_record.price))])]):t._e(),e.auction_goods_record?i("div",{staticClass:"time"},[i("span",[t._v(t._s(t.timestampToTime(e.auction_goods_record.end_shooting))+"结束")])]):t._e()])])]),i("van-button",{staticClass:"delete-button",staticStyle:{height:"100%"},attrs:{slot:"right",square:"",text:"删除",type:"danger"},on:{click:function(e){return t.commodityDelete(a)}},slot:"right"})],1)})):t._e(),3==t.activeName?t._l(t.datas,(function(e,a){return i("div",{key:a,staticClass:"list",on:{click:function(i){return t.toDetail(e)}}},[e.goods?i("div",{staticClass:"image"},[i("img",{attrs:{src:e.goods.thumb}})]):t._e(),i("div",{staticClass:"right"},[e.goods?i("div",{staticClass:"title"},[t._v(t._s(e.goods.title))]):t._e(),i("div",{staticClass:"bottom"},[e.auction_goods_record?i("div",{staticClass:"cash"},[i("span",[t._v("当前价:")]),i("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.auction_goods_record.price))])]):t._e(),e.auction_goods_record?i("div",{staticClass:"time"},[i("span",[t._v(t._s(t.timestampToTime(e.auction_goods_record.end_shooting))+"结束")])]):t._e()])]),i("div",{staticClass:"confirm",on:{click:function(i){return i.stopPropagation(),t.toBuy(e)}}},[t._v(" 确认下单 ")])])})):t._e()],2)],1)},o=[],n=(i("b0c0"),i("a434"),i("99af"),i("6968")),s=i("ac0d"),c={mixins:[s["a"]],data:function(){return{activeName:"0",datas:[],loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,name:""}},beforeRouteEnter:function(t,e,i){i((function(t){"auctionOrderlist"==e.name?(t.activeName="0",t.initData(),t.getSearch()):(t.initData(),t.activeName=String(t.$route.params.id),t.getSearch())}))},activated:function(){},methods:{initData:function(){this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.datas=[]},handleClick:function(){this.initData(),this.getSearch()},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())+":",s=this.change(e.getMinutes());return i+a+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}))},toBuy:function(t){this.$router.push(this.fun.getUrl("goodsorder",{},{tag:"auction",goodsId:t.goods_id,total:1,fixed_price:0,auction_sn:t.auction_sn}))},commodityDelete:function(t){var e=this,i=this;this.$dialog.confirm({title:"提示",message:"此操作将永久删除该拍品, 是否继续?"}).then((function(){var e={goods_id:i.datas[t].goods_id,art:"delGoods"},a="plugin.auction.api.index.getAuctionData";$http.post(a,e).then((function(e){1==e.result?(i.$notify({background:"#f0f9eb",message:"拍品删除成功",color:"#67c23a"}),i.datas.splice(t,1)):i.$notify(e.msg)}),(function(t){}))})).catch((function(){e.$notify({background:"#edf2fc",message:"已取消删除",color:"#909399"})}))},getSearch:function(){var t;if("0"==this.activeName)t="plugin.auction.api.bid-order.prepayment";else if("1"==this.activeName)t="plugin.auction.api.bid-order.biding";else if("2"==this.activeName)t="plugin.auction.api.bid-order.bide";else if("3"==this.activeName)t="plugin.auction.api.bid-order.finish";else if("4"==this.activeName)return void this.$router.push(this.fun.getUrl("auctionOrderlist",{status:"0",orderType:"auction"}));var e=this;$http.post(t,{},"获取中").then((function(t){1==t.result?(e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.datas=t.data.data,e.total=t.data.total):e.$dialog.alert({message:t.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);var i;if(this.page=this.page+1,"0"==this.activeName)i="plugin.auction.api.bid-order.prepayment";else if("1"==this.activeName)i="plugin.auction.api.bid-order.biding";else if("2"==this.activeName)i="plugin.auction.api.bid-order.bid";else if("3"==this.activeName)i="plugin.auction.api.bid-order.finish";else if("4"==this.activeName)return void this.$router.push(this.fun.getUrl("auctionOrderlist",{status:"0",orderType:"auction"}));$http.post(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.last_page,e.loading=!1,e.allLoaded=!1,e.datas=e.datas.concat(t.data.data)}),(function(t){}))}}},components:{cTitle:n["a"]}},l=c,r=l,d=(i("51ee"),i("2877")),m=Object(d["a"])(r,a,o,!1,null,"75167448",null);e["default"]=m.exports}}]); |