1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e67b9c44"],{"1ae2":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".record .reason[data-v-6343cc0b]{color:#797979;margin-top:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.record .mobile[data-v-6343cc0b]{margin:.6875rem 0}.record .box[data-v-6343cc0b]{border-radius:.625rem;background:#fff;padding:.6875rem 1.125rem 1.375rem;margin-bottom:.875rem;font-size:.875rem;text-align:left}.record .time[data-v-6343cc0b]{color:#777;margin-bottom:.875rem}",""]),t.exports=e},"2ec7":function(t,e,a){"use strict";a("479bf")},"479bf":function(t,e,a){var i=a("1ae2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("cb9ae2f0",i,!0,{sourceMap:!1,shadowMode:!1})},6936: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:"record"},[a("c-title",{attrs:{text:"申请记录"}}),a("van-tabs",{on:{click:t.onClick},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",{staticStyle:{padding:"1rem"}},t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"box",on:{click:function(a){return t.goto(e)}}},[a("p",{staticClass:"time"},[t._v(t._s(e.created_at))]),a("p",[t._v("姓名:"+t._s(e.realname))]),a("p",{staticClass:"mobile"},[t._v("手机号:"+t._s(e.mobile))]),"promulgator"==t.name?a("p",[t._v("位置:"+t._s(e.province_name)+"-"+t._s(e.city_name)+"-"+t._s(e.district_name))]):a("p",[t._v("师傅所在地:"+t._s(e.province_name)+"-"+t._s(e.city_name)+"-"+t._s(e.district_name)+"-"+t._s(e.street_name))]),"promulgator"==t.name&&"-1"==t.active?a("p",{staticClass:"reason"},[a("span",{staticStyle:{"flex-shrink":"0"}},[t._v("驳回原因:")]),a("span",{staticStyle:{"text-overflow":"ellipsis",overflow:"hidden"}},[t._v(t._s(e.reason))])]):t._e()])})),0)],1)},o=[],n=(a("b0c0"),a("14d9"),a("99af"),a("ac0d")),s={mixins:[n["a"]],data:function(){return{active:"1",list:[],isLoadMore:!0,page:1,total_page:0,name:""}},activated:function(){this.name=this.$route.params.name,this.get_data()},methods:{onClick:function(){this.get_data()},goto:function(t){"skill_master"==this.name?this.$router.push(this.fun.getUrl("anytimeRoleApply",{apply_for_type:2})):0==t.apply_status||1==t.apply_status?this.$router.push(this.fun.getUrl("anytimeRoleApply",{apply_for_type:1})):this.$router.push(this.fun.getUrl("anytimeRoleApply",{apply_for_type:7}))},get_data:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a={identity:"skill_master"==this.name?2:1,status:this.active,page:e};$http.get("plugin.be-within-call.frontend.role-apply.log",a,"").then((function(a){if(t.isLoadMore=!0,a.result){var i=a.data;t.list=1==e?i:t.list.concat(i)}else t.$toast(a.msg)}))},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;this.get_data(t)}}}},l=s,r=(a("2ec7"),a("2877")),c=Object(r["a"])(l,i,o,!1,null,"6343cc0b",null);e["default"]=c.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(){}}}}}]); |