1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f0bee04e"],{"0ad98":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:"good_manage"}},[a("c-title",{attrs:{hide:!1,text:"拍品管理"}}),a("van-tabs",{on:{change:t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("van-tab",{attrs:{title:"审核中",name:"0"}}),a("van-tab",{attrs:{title:"竞拍中",name:"1"}}),a("van-tab",{attrs:{title:"即将开始",name:"2"}}),a("van-tab",{attrs:{title:"已结束",name:"3"}})],1),a("div",{staticClass:"content"},[a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[t._l(t.datas,(function(e,i){return a("div",{key:i,staticClass:"list",on:{click:function(a){return t.toDetail(e)}}},[a("div",{staticClass:"image"},[e.has_one_goods?a("img",{attrs:{src:e.has_one_goods.thumb}}):t._e()]),a("div",{staticClass:"right"},[e.has_one_goods?a("div",{staticClass:"title"},[t._v(t._s(e.has_one_goods.title))]):t._e(),a("div",{staticClass:"bottom"},[e.has_one_goods?a("div",{staticClass:"cash"},[a("span",[t._v("起拍价")]),a("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.start_price))])]):t._e(),a("i",{staticClass:"iconfont icon-more",on:{click:function(e){return e.stopPropagation(),t.moreEvent(i)}}})])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.edit_active,expression:"item.edit_active"}],staticClass:"more"},[a("ul",["1"!=t.activeName?a("li",{on:{click:function(a){return a.stopPropagation(),t.Toedit(e.has_one_goods.id)}}},[a("van-icon",{staticClass:"iconfont icon-edit",attrs:{custom:"",color:"#fff",size:"1.125rem"}}),a("span",[t._v("编辑")])],1):t._e(),"0"!=t.activeName?a("li",{on:{click:function(a){return a.stopPropagation(),t.toUp(e.has_one_goods.id,e.has_one_goods.status)}}},[a("van-icon",{staticClass:"iconfont icon-edit",attrs:{custom:"",color:"#fff",size:"1.125rem"}}),a("span",[t._v(t._s("1"==e.has_one_goods.status?"下架":"上架"))])],1):t._e(),a("li",{on:{click:function(e){return e.stopPropagation(),t.commodityDelete(i)}}},[a("van-icon",{staticClass:"iconfont icon-delete",attrs:{color:"#fff",size:"1.125rem"}}),a("span",[t._v("删除")])],1)]),a("div",{staticClass:"icon"},[a("van-icon",{staticClass:"iconfont icon-down",attrs:{custom:"",size:"1.5rem"}})],1)])])}))],2)],1),a("div",{staticClass:"bd",class:[3==t.fun.getPhoneEnv()?"pc":""]},[a("span",[t._v("拍品数量:"+t._s(t.total))]),"2"!=t.is_release_switch?a("div",{staticClass:"btn",on:{click:t.toPublish}},[t._v("发布拍品")]):t._e()])],1)},o=[],n=(a("e7e5"),a("d399")),s=(a("99af"),a("a434"),a("a9e3"),a("6968")),c=a("ac0d"),l={mixins:[c["a"]],data:function(){return{uncertified_status:"",num:"",status:"",id:"",activeName:"0",loading:!1,allLoaded:!1,isLoadMore:!0,page:1,total_page:0,datas:[],total:"",is_release_switch:"2",isLoading:!1}},activated:function(){this.id=window.localStorage.uid,this.activeName="0",this.getStatus()},methods:{initData:function(){this.datas=[],this.page=1,this.total_page=0,this.total="",this.isLoadMore=!0,this.allLoaded=!1,this.loading=!1},getverifyGoods:function(){var t=this,e={art:"verifyGoods"};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?t.$router.push(t.fun.getUrl("auctionApply")):e.msg.url.length>0?(window.location.href=e.msg.url[0],t.$dialog.alert({message:e.msg.msg})):t.$dialog.alert({message:e.msg.msg})})).catch((function(t){}))},getNum:function(){var t=this;$http.get("plugin.auction.api.index.getAuctionData",{art:"judgeNum"},"获取中").then((function(e){1==e.result?t.$router.push(t.fun.getUrl("publishFirst")):t.getverifyGoods()})).catch((function(t){}))},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.uncertified_status=e.data.getAgreement.uncertified_status,t.is_release_switch=e.data.getAgreement.is_release_switch,t.getSearch()):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},handleClick:function(){this.initData(),this.getSearch()},getSearch:function(){var t,e=this;"0"==this.activeName?t="plugin.auction.api.auction.check":"1"==this.activeName?t="plugin.auction.api.auction.biding":"2"==this.activeName?t="plugin.auction.api.auction.bid":"3"==this.activeName&&(t="plugin.auction.api.auction.finish");var a=this,i={auctioneer_id:this.id};$http.post(t,i,"获取中").then((function(t){if(1==t.result){a.total_page=t.data.last_page,a.total_page||(a.total_page=0);for(var i=0;i<t.data.data.length;i++)t.data.data[i].edit_active=!1;a.datas=t.data.data,a.total=t.data.total,e.isLoading=!1}else a.$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 a;this.page=this.page+1,"0"==this.activeName?a="plugin.auction.api.auction.check":"1"==this.activeName?a="plugin.auction.api.auction.biding":"2"==this.activeName?a="plugin.auction.api.auction.bid":"3"==this.activeName?a="plugin.auction.api.auction.finish":"4"==this.activeName&&(a="plugin.auction.api.auction.failure");var i={auctioneer_id:this.id};$http.post(a,i,"加载中").then((function(t){if(1===t.result){e.total_page=t.data.last_page,e.loading=!1,e.allLoaded=!1;for(var a=0;a<t.data.data.length;a++)t.data.data[a].edit_active=!1;e.datas=e.datas.concat(t.data.data)}else e.page=e.page-1,e.loading=!0,e.allLoaded=!0,e.isLoadMore=!1}),(function(t){}))}},loadTop:function(){this.initData(),this.getSearch()},moreEvent:function(t){0==this.datas[t].edit_active?(this.emptyEditActive(),this.datas[t].edit_active=!0):this.emptyEditActive()},Toedit:function(t){this.$router.push(this.fun.getUrl("publishFirst",{id:t}))},toUp:function(t,e){var a=this,i={art:"upperLower",goods_id:t,status:0==e?1:0};$http.get("plugin.auction.api.index.getAuctionData",i,"获取中").then((function(t){1==t.result?(Object(n["a"])(t.data.upperLower),a.getSearch()):a.$dialog.alert({message:t.msg})})).catch((function(t){}))},emptyEditActive:function(){for(var t=0;t<this.datas.length;t++)this.datas[t].edit_active=!1},toPublish:function(){"0"==this.uncertified_status?Object(n["a"])("未认证会员不允许发布拍品"):this.getNum()},toDetail:function(t){this.$router.push(this.fun.getUrl("auctionGood",{id:t.auctioneer_id,goods_id:t.goods_id}))},commodityDelete:function(t){var e=this,a=this;this.emptyEditActive(),this.$dialog.confirm({title:"提示",message:"此操作将永久删除该拍品, 是否继续?"}).then((function(){var e={goods_id:a.datas[t].goods_id,art:"delGoods"},i="plugin.auction.api.index.getAuctionData";$http.post(i,e).then((function(e){1==e.result?(a.$notify({background:"#f0f9eb",message:"拍品删除成功",color:"#67c23a"}),a.datas.splice(t,1),a.total=Number(a.total)-1):a.$notify(e.msg)}),(function(t){}))})).catch((function(){e.$notify({background:"#edf2fc",message:"已取消删除",color:"#909399"})}))}},components:{cTitle:s["a"]}},d=l,r=d,g=(a("12cb"),a("2877")),u=Object(g["a"])(r,i,o,!1,null,"a8e579c6",null);e["default"]=u.exports},"12cb":function(t,e,a){"use strict";a("9f8b")},"9f8b":function(t,e,a){var i=a("c1f4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("18810df3",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(){}}}},c1f4:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#good_manage[data-v-a8e579c6]{background-color:#fff;height:100vh}#good_manage .content[data-v-a8e579c6]{padding:0 .75rem;padding-top:.75rem;background-color:#fff;padding-bottom:3.75rem}#good_manage .content .list[data-v-a8e579c6]{margin-bottom:.75rem;position:relative}#good_manage .content .list[data-v-a8e579c6],#good_manage .content .list .image[data-v-a8e579c6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#good_manage .content .list .image[data-v-a8e579c6]{width:7.9375rem;height:8rem;border-radius:.3125rem}#good_manage .content .list .image img[data-v-a8e579c6]{width:100%;height:100%;border-radius:.3125rem}#good_manage .content .list .right[data-v-a8e579c6]{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}#good_manage .content .list .right .title[data-v-a8e579c6]{text-align:left;font-size:14px;color:#000;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#good_manage .content .list .right .bottom[data-v-a8e579c6]{text-align:left;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}#good_manage .content .list .right .bottom .cash[data-v-a8e579c6]{font-size:12px}#good_manage .content .list .right .bottom .cash span[data-v-a8e579c6]:last-child{font-size:16px;color:#f01818}#good_manage .content .list .more[data-v-a8e579c6]{background:rgba(51,51,51,.9);border-radius:.25rem;color:#f0f0f0;width:7.5rem;position:absolute;right:.375rem;top:3.375rem;padding:.125rem 0}#good_manage .content .list .more ul[data-v-a8e579c6]{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}#good_manage .content .list .more ul li[data-v-a8e579c6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center;font-size:12px}#good_manage .content .list .more ul li i[data-v-a8e579c6]{display:block;margin-top:.125rem}#good_manage .content .list .more .icon[data-v-a8e579c6]{position:absolute;right:0;top:2rem}#good_manage .content .list .more .icon i[data-v-a8e579c6]{color:rgba(51,51,51,.9)}#good_manage .content .list[data-v-a8e579c6]:last-child{margin-bottom:0}#good_manage .content .blank[data-v-a8e579c6]{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%)}#good_manage .content .blank img[data-v-a8e579c6]{width:6rem;height:6rem}#good_manage .content .blank span[data-v-a8e579c6]{margin-top:15px;color:#ccc;font-size:14px}#good_manage .bd[data-v-a8e579c6]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;position:fixed;bottom:0;padding:0 .75rem;width:100%;height:3rem;z-index:9999;background-color:#fff;-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)}#good_manage .bd[data-v-a8e579c6],#good_manage .bd .btn[data-v-a8e579c6]{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}#good_manage .bd .btn[data-v-a8e579c6]{width:5.8125rem;height:1.875rem;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:.9375rem;color:#fff;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:red}.pc[data-v-a8e579c6]{width:375px!important}",""]),t.exports=e}}]); |