1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f57a8cfe"],{"2fd5":function(t,e,i){"use strict";i("c2d9")},4429:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#auctioneer_shop[data-v-4dd14bef]{height:100vh}#auctioneer_shop .content[data-v-4dd14bef]{background-color:#fff;height:100%;overflow:scroll}#auctioneer_shop .content .top[data-v-4dd14bef]{background-color:#ff5430;position:relative;padding-top:.75rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:8rem}#auctioneer_shop .content .top[data-v-4dd14bef],#auctioneer_shop .content .top .input[data-v-4dd14bef]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#auctioneer_shop .content .top .input[data-v-4dd14bef]{width:16.8125rem;height:1.875rem;background-color:#f8f8f8;border-radius:.9375rem;margin-right:1rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#auctioneer_shop .content .top .input i[data-v-4dd14bef]{color:#c9c9c9;margin-right:.75rem;margin-left:.75rem}#auctioneer_shop .content .top .input input[data-v-4dd14bef]{outline:none;border:none;color:#c9c9c9;font-size:12px}#auctioneer_shop .content .top .icon-bc_share_card[data-v-4dd14bef]{color:#fff;font-size:24px;margin-right:1rem}#auctioneer_shop .content .top .icon-life-code[data-v-4dd14bef]{color:#fff;font-size:24px;margin-right:1rem;display:inline-block}#auctioneer_shop .content .bot[data-v-4dd14bef]{background-color:#fff;border-radius:1.1875rem 1.1875rem 0 0;padding:0 .75rem;padding-top:.5rem;margin-top:-2rem;position:relative;z-index:999;height:100%}#auctioneer_shop .content .bot .tit[data-v-4dd14bef]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#auctioneer_shop .content .bot .tit[data-v-4dd14bef],#auctioneer_shop .content .bot .tit .user[data-v-4dd14bef]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#auctioneer_shop .content .bot .tit .user .avator[data-v-4dd14bef]{width:4.3125rem;height:4.3125rem;border:.125rem solid #fff;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50%;margin-top:-2rem}#auctioneer_shop .content .bot .tit .user .avator img[data-v-4dd14bef]{width:100%;height:100%;border-radius:50%}#auctioneer_shop .content .bot .tit .user .right[data-v-4dd14bef]{margin-left:.5rem;text-align:left}#auctioneer_shop .content .bot .tit .collect[data-v-4dd14bef]{width:2.8125rem;height:1.1875rem;border-radius:.5625rem;border:.0625rem solid #ff2c29;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;color:#ff2c29;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}#auctioneer_shop .content .good-list[data-v-4dd14bef]{margin-top:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#auctioneer_shop .content .good-list .good[data-v-4dd14bef]{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 .content .good-list .good .image[data-v-4dd14bef]{width:100%;height:10.625rem}#auctioneer_shop .content .good-list .good .image img[data-v-4dd14bef]{width:100%;height:100%;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#auctioneer_shop .content .good-list .good .bottom[data-v-4dd14bef]{padding:0 .5rem;padding-top:.5rem;padding-bottom:1rem}#auctioneer_shop .content .good-list .good .bottom .tit[data-v-4dd14bef]{color:#333;text-align:left}#auctioneer_shop .content .good-list .good .bottom .cash[data-v-4dd14bef]{text-align:left;font-size:12px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.5rem}#auctioneer_shop .content .good-list .good .bottom .cash .money[data-v-4dd14bef]{font-size:16px;color:#ef3e3e}#auctioneer_shop .content .good-list .good .time[data-v-4dd14bef]{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 .content .good-list .good[data-v-4dd14bef]:nth-child(2n){margin-right:0}#auctioneer_shop .btn[data-v-4dd14bef]{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;z-index:9999}#auctioneer_shop .pop[data-v-4dd14bef]{padding:0 .75rem}#auctioneer_shop .pop .check[data-v-4dd14bef]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:1rem}#auctioneer_shop .pop .check input[data-v-4dd14bef]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:none;outline:none;margin-left:1rem;border-bottom:1px solid #ccc}#auctioneer_shop .pop .title[data-v-4dd14bef]{padding:1.5rem 0}#auctioneer_shop .pop .bottom-btn[data-v-4dd14bef],#auctioneer_shop .pop .title[data-v-4dd14bef]{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}#auctioneer_shop .pop .bottom-btn[data-v-4dd14bef]{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-4dd14bef]{position:absolute!important}",""]),t.exports=e},9312:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"auctioneer_shop",attrs:{id:"auctioneer_shop"}},[i("c-title",{attrs:{hide:!1,text:"拍卖官店铺"}}),1==t.is_verify?i("div",{staticClass:"content"},[i("div",{staticClass:"top"},[i("div",{staticClass:"input"},[i("i",{staticClass:"iconfont icon-sousuo"}),i("input",{attrs:{type:"text",placeholder:"搜索拍卖商品"},on:{click:t.toSearch}})])]),i("div",{staticClass:"bot"},[i("div",{staticClass:"tit"},[i("div",{staticClass:"user"},[i("div",{staticClass:"avator"},[i("img",{attrs:{src:t.info.avatar}})]),i("div",{staticClass:"right"},[i("div",[t._v(t._s(t.info.nickname))]),i("div",{staticStyle:{"text-align":"left"}},["已认证"==t.info.status?i("span",{staticStyle:{"margin-right":"0.5rem","font-size":"12px"}},[i("i",{staticClass:"iconfont icon-pm_auction_certification",staticStyle:{color:"#ff6333"}}),t._v("已认证")]):t._e(),i("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("拍品:"+t._s(t.info.lot_num))])])])]),0==t.info.is_collection?i("div",{staticClass:"collect",on:{click:t.toCollect}},[t._v("收藏")]):t._e(),1==t.info.is_collection?i("div",{staticClass:"collect",on:{click:t.toCollect}},[t._v("已收藏")]):t._e()]),i("van-tabs",{attrs:{id:"tab"},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"}})],1),i("div",{staticClass:"good-list"},t._l(t.datas,(function(e,o){return i("div",{key:o,staticClass:"good"},[e.has_one_goods?i("div",{staticClass:"image",on:{click:function(i){return t.toDetail(e)}}},[i("img",{attrs:{src:e.has_one_goods.thumb}})]):t._e(),i("div",{staticClass:"bottom"},[e.has_one_goods?i("div",{staticClass:"tit"},[t._v(t._s(e.has_one_goods.title))]):t._e(),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)],1)]):t._e(),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("我的")])]),i("van-popup",{staticStyle:{width:"100%",height:"40%"},attrs:{position:"bottom","close-on-masker":!1},model:{value:t.show1,callback:function(e){t.show1=e},expression:"show1"}},[i("div",{staticClass:"pop"},[i("div",{staticClass:"title"},[t._v("请输入店铺密码")]),i("div",{staticClass:"check"},[i("span",[t._v("密码")]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),i("div",{staticClass:"bottom-btn",on:{click:function(e){return t.confirm(t.item)}}},[t._v(" 确定 ")])])])],1)},a=[],n=(i("e7e5"),i("d399")),s=(i("99af"),i("6968")),r=i("ac0d"),c={mixins:[r["a"]],data:function(){return{show1:!1,posterShow:!1,posterImg:{},status:"",activeName:"0",id:"",passwd:"",info:{},loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,datas:[],is_verify:"",password:"",now:""}},activated:function(){this.id=this.$route.params.id,this.now=new Date(this.timestampToTime((new Date).valueOf()/1e3)).valueOf()/1e3,this.getStatus()},methods:{toDetail:function(t){this.$router.push(this.fun.getUrl("auctionGood",{id:t.auctioneer_id,goods_id:t.goods_id}))},confirm:function(){var t=this,e={art:"verifyPassword",auction_id:this.id,passwd:this.password};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?(t.show1=!1,t.getStatus()):t.$dialog.alert({message:e.msg})})).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.is_verify=e.data.getVerify.is_verify,0==t.is_verify&&1==t.status?t.show1=!0:(t.is_verify=1,t.getData(),t.getSearch())):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},initData:function(){this.loading=!1,this.allLoaded=!1,this.goload=!0,this.isLoadMore=!0,this.page=1,this.total_page=0,this.datas=[],this.now=""},toMy:function(){this.$router.push(this.fun.getUrl("myIndex"))},timestampToTime:function(t){var e=new Date(1e3*t),i=e.getFullYear()+"/",o=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"/",a=this.change(e.getDate())+" ",n=this.change(e.getHours())+":",s=this.change(e.getMinutes());return i+o+a+n+s},change:function(t){return t<10?"0"+t:t},toSearch:function(){this.$router.push(this.fun.getUrl("auctioneerShopSearch",{id:this.id}))},getData:function(){var t=this,e={member_id:this.id,art:"shop"};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?t.info=e.data.shop:t.$dialog.alert({message:e.msg}).then((function(){t.$router.go(-1)}))})).catch((function(t){}))},getSearch:function(){var t;"0"==this.activeName?t="plugin.auction.api.auction.all":"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 e=this,i={auctioneer_id:this.id};$http.post(t,i,"获取中").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.$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;this.page=this.page+1,"0"==this.activeName?i="plugin.auction.api.auction.check":"1"==this.activeName?i="plugin.auction.api.auction.biding":"2"==this.activeName?i="plugin.auction.api.auction.bid":"3"==this.activeName?i="plugin.auction.api.auction.finish":"4"==this.activeName&&(i="plugin.auction.api.auction.failure");var o={auctioneer_id:this.id};$http.post(i,o,"加载中").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){}))}},toCollect:function(){var t=this,e={art:"collectionShop",auctioneer_id:this.id};$http.get("plugin.auction.api.index.getAuctionData",e,"获取中").then((function(e){1==e.result?(Object(n["a"])(e.data.collectionShop),t.getData()):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},handleClick:function(){this.initData(),this.getSearch()}},components:{cTitle:s["a"]}},d=c,l=d,f=(i("2fd5"),i("2877")),p=Object(f["a"])(l,o,a,!1,null,"4dd14bef",null);e["default"]=p.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=document.documentElement,a=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 o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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(){}}}},c2d9:function(t,e,i){var o=i("4429");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("91ed9d18",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |