1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9b1c98c0"],{"29b3":function(t,e,a){var i=a("51af");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("09029ce8",i,!0,{sourceMap:!1,shadowMode:!1})},"4f34":function(t,e,a){"use strict";a("29b3")},"51af":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".isPcBtn[data-v-55162f72]{width:375px!important;left:50%!important;-webkit-transform:translateX(-50%)!important;transform:translateX(-50%)!important}.my-promulgator-mangae[data-v-55162f72]{padding-bottom:6.25rem}.my-promulgator-mangae .reason[data-v-55162f72]{margin-top:.5rem;text-align:left;background:#fff;color:#797979;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.my-promulgator-mangae .box[data-v-55162f72]{background:#fff;margin:.5rem 0;padding:.75rem}.my-promulgator-mangae .btn[data-v-55162f72]{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:.625rem .75rem}.my-promulgator-mangae .list-item[data-v-55162f72]{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.my-promulgator-mangae .item-right[data-v-55162f72]{margin-left:.375rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-top:.4063rem;text-align:left}.my-promulgator-mangae .title[data-v-55162f72]{font-size:.9rem}.my-promulgator-mangae .fw-500[data-v-55162f72]{font-weight:500}.my-promulgator-mangae .content[data-v-55162f72]{color:#999;font-size:.9rem;margin-top:.75rem;margin-bottom:.5rem}.my-promulgator-mangae .sold[data-v-55162f72]{color:#999;font-size:.9rem}.my-promulgator-mangae .flex-between[data-v-55162f72]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.my-promulgator-mangae .fz32[data-v-55162f72]{font-size:1.1rem}.my-promulgator-mangae .time[data-v-55162f72]{background:#ffeedf;color:#ff9c43;font-size:.75rem;padding:.3125rem .375rem}",""]),t.exports=e},"6e6a":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",{staticClass:"my-promulgator-mangae"},[a("c-title",{attrs:{text:"技能管理"}}),a("van-tabs",{attrs:{color:"#4978F8","title-active-color":"#4978F8"},on:{click:t.handle},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"已上架",name:1}}),a("van-tab",{attrs:{title:"待审核",name:0}}),a("van-tab",{attrs:{title:"审核驳回",name:-1}})],1),a("div",{staticClass:"list"},t._l(t.list,(function(e){return a("router-link",{key:e.id,staticClass:"box",attrs:{tag:"div",to:t.fun.getUrl("anytimeSkillMasterRelease",{},{id:e.id})}},[a("div",{staticClass:"list-item"},[a("van-image",{staticStyle:{"border-radius":"0.25rem",overflow:"hidden"},attrs:{width:"6.8125rem",height:"6.8125rem",src:e.pic_url}}),a("div",{staticClass:"item-right"},[a("p",{staticClass:"title"},[t._v(t._s(e.title))]),a("p",{staticClass:"content"},[t._v(t._s(e.has_one_category&&e.has_one_category.title)+" | "+t._s(e.desc))]),a("p",{staticClass:"sold"},[t._v("已售"+t._s(e.service_order_num))]),a("div",{staticStyle:{"margin-top":"0.5625rem",color:"#ff9c43"}},[a("span",[t._v(t._s(t.$i18n.t("money")))]),a("span",{staticClass:"fz32 fw-500"},[t._v(t._s(e.fee)+"/次")])])])],1),-1==t.active?a("p",{staticClass:"reason"},[a("span",{staticStyle:{"flex-shrink":"0"}},[t._v("驳回原因:")]),a("span",{staticStyle:{"text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},[t._v(t._s(e.reason))])]):t._e()])})),1),a("div",{staticClass:"btn",class:{isPcBtn:t.fun.isPc()}},[a("van-button",{attrs:{block:"",round:"",color:"#4978F8"},on:{click:t.submit}},[t._v("技能发布")])],1)],1)},n=[],o=a("c7eb"),r=a("1da1"),s=(a("4056"),a("44bf")),l=(a("14d9"),a("99af"),a("ac0d")),c={mixins:[l["a"]],components:{VanImage:s["a"]},data:function(){return{active:1,isLoadMore:!0,page:1,last_page:1,list:[]}},activated:function(){var t=this;return Object(r["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.check_apply();case 2:t.isLoadMore=!0,t.getData();case 4:case"end":return e.stop()}}),e)})))()},methods:{check_apply:function(){var t=this;return Object(r["a"])(Object(o["a"])().mark((function e(){var a,i,n,r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.be-within-call.frontend.role-apply.detail",{role:2},"");case 2:a=e.sent,i=a.result,n=a.msg,r=a.data,i?1!==r.apply_status&&t.$router.push(t.fun.getUrl("anytimeRoleApply",{apply_for_type:1})):t.$toast(n);case 7:case"end":return e.stop()}}),e)})))()},handle:function(){this.getData()},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.last_page)){var t=this.page+1;this.getData(t)}},getData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a={page:e,state:this.active};$http.get("plugin.be-within-call.frontend.shi-fu.ability",a,"").then((function(a){var i=a.result,n=a.msg,o=a.data;t.isLoadMore=!0,i?(t.page=o.current_page,t.last_page=o.last_page,t.list=1==e?o.data:t.list.concat(o.data)):t.$toast(n)}))},submit:function(){this.$router.push(this.fun.getUrl("anytimeSkillMasterRelease"))}}},f=c,m=(a("4f34"),a("2877")),d=Object(m["a"])(f,i,n,!1,null,"55162f72",null);e["default"]=d.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,n=document.body,o={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:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}}}]); |