1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e66203b8"],{"24ec":function(t,e,r){"use strict";r.d(e,"i",function(){return s}),r.d(e,"e",function(){return c}),r.d(e,"c",function(){return u}),r.d(e,"j",function(){return h}),r.d(e,"g",function(){return l}),r.d(e,"p",function(){return d}),r.d(e,"m",function(){return f}),r.d(e,"n",function(){return p}),r.d(e,"o",function(){return v}),r.d(e,"a",function(){return m}),r.d(e,"f",function(){return g}),r.d(e,"l",function(){return y}),r.d(e,"k",function(){return b}),r.d(e,"d",function(){return w}),r.d(e,"h",function(){return x}),r.d(e,"b",function(){return j});var n=r("8982"),a="/industryParkApi",o="/wx/user",i="/wx/frameUser";function s(t){return Object(n["a"])({url:a+o+"/login_by_app_main",method:"post",data:t})}function c(t){return Object(n["a"])({url:a+o+"/editMyInformation",method:"post",data:t})}function u(t){return Object(n["a"])({url:a+o+"/changePassword",method:"post",data:t})}function h(t){return Object(n["a"])({url:a+i+"/getById",method:"post",data:t})}function l(t){return Object(n["a"])({url:a+o+"/getById",method:"post",data:t})}function d(t){return Object(n["a"])({url:a+o+"/wechatUnBind",method:"post",data:t})}function f(t){return Object(n["a"])({url:a+o+"/unbound",method:"post",data:t})}function p(t){return Object(n["a"])({url:a+o+"/unbound2",method:"post",data:t})}function v(t){return Object(n["a"])({url:a+o+"/wechatBind",method:"post",data:t})}function m(t){return Object(n["a"])({url:a+o+"/binding",method:"post",data:t})}function g(t){return Object(n["a"])({url:a+i+"/editPassword",method:"post",data:t})}function y(t){return Object(n["a"])({url:a+o+"/send",method:"post",data:t})}function b(t){return Object(n["a"])({url:a+o+"/register_by_account",method:"post",data:t})}function w(t){return Object(n["a"])({url:a+o+"/checkAccount",method:"post",data:t})}function x(t){return Object(n["a"])({url:a+o+"/userInfo/"+t,method:"post"})}function j(t){return Object(n["a"])({url:a+o+"/bizInfo/"+t,method:"post"})}},"3b8d":function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r("795b"),a=r.n(n);function o(t,e,r,n,o,i,s){try{var c=t[i](s),u=c.value}catch(h){return void r(h)}c.done?e(u):a.a.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new a.a(function(n,a){var i=t.apply(e,r);function s(t){o(i,n,a,s,c,"next",t)}function c(t){o(i,n,a,s,c,"throw",t)}s(void 0)})}}},"7ff8":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"employee"},[r("div",{staticClass:"white-box part-1"},[r("div",{staticClass:"search-box"},[r("div",{staticClass:"search-input-box"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.requestParam.keyword,expression:"requestParam.keyword"}],attrs:{type:"text",placeholder:"姓名、手机号模糊查询"},domProps:{value:t.requestParam.keyword},on:{input:function(e){e.target.composing||t.$set(t.requestParam,"keyword",e.target.value)}}})]),r("div",{staticClass:"search-icon-box"},[r("i",{staticClass:"iconfont icon-sousuo",on:{click:t.getProveList}})])])]),r("div",{staticClass:"list-box"},[r("van-pull-refresh",{staticStyle:{"min-height":"85vh"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[r("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,function(e){return r("div",{key:e.id,staticClass:"card-item white-card",staticStyle:{"min-height":"100px"}},[r("div",{staticClass:"card-top"},[r("div",{staticClass:"card-left"},[r("div",{staticClass:"date"},[r("p",[t._v("姓名:"+t._s(e.userName))]),r("p",[t._v("手机号:"+t._s(e.userPhone))]),r("p",[t._v("申请时间:"+t._s(e.creationTime))]),r("p",[t._v("审核时间:"+t._s(e.handleTime))])])]),r("div",{staticClass:"card-right"},["0"==e.handleResult?r("span",{staticClass:"z"},[t._v("待审 ")]):"3"==e.handleResult?r("span",{staticClass:"z"},[t._v("已解绑\n ")]):r("span",{staticClass:"h"},[t._v("已审 ")])])]),"1"==e.handleResult?r("div",{staticClass:"txt-bottom"},[t._v("\n 审核通过\n ")]):t._e(),"1"==e.handleResult?r("div",{staticClass:"card-bottom"},[r("span",{staticClass:"normal-button-app z-bt",on:{click:function(r){return t.jiebang(e.userId,e.id,1)}}},[t._v("解绑")])]):"2"==e.handleResult?r("div",{staticClass:"txt-bottom",staticStyle:{color:"#ec6d6d"}},[t._v("\n 审核拒绝\n ")]):t._e(),"0"==e.handleResult?r("div",{staticClass:"card-bottom"},[r("span",{staticClass:"normal-button-app z-bt",on:{click:function(r){return t.staffProve(e.id,1)}}},[t._v("通过")]),r("span",{staticClass:"normal-button-app y-bt",on:{click:function(r){return t.staffProve(e.id,2)}}},[t._v("拒绝")])]):t._e()])}),0)],1)],1)])},a=[],o=(r("ac6a"),r("96cf"),r("3b8d")),i=r("5cab"),s=r("8982"),c="/industryParkApi",u="/wx/WxParkStaffProveInfoController";function h(t){return Object(s["a"])({url:c+u+"/staffProveList",method:"post",data:t})}function l(t){return Object(s["a"])({url:c+u+"/staffProve",method:"post",data:t})}var d=r("c518"),f=r("24ec"),p=r("8bbf"),v=r.n(p),m=r("3089");v.a.use(m["List"]),v.a.use(m["PullRefresh"]);var g={data:function(){return{loading:!1,finished:!1,refreshing:!1,requestParam:{keyword:"",pageNum:1,pageSize:10},total:0,currUser:{},bizId:"",list:[]}},mounted:function(){this.currUser=i["a"].currUser(),this.initUserIdentity()},methods:{jiebang:function(){var t=Object(o["a"])(regeneratorRuntime.mark(function t(e,r){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(f["n"])({userId:e,id:r});case 2:n=t.sent,console.log(n),this.initUserIdentity();case 5:case"end":return t.stop()}},t,this)}));function e(e,r){return t.apply(this,arguments)}return e}(),clickSeach:function(){this.requestParam.pageNum=1,this.getProveList()},onRefresh:function(){this.requestParam.pageNum=1,this.getProveList()},onLoad:function(){var t=this;if(""==this.bizId)return!1;if(this.refreshing&&(this.list=[],this.refreshing=!1),this.list.length>=this.total)this.finished=!0;else{this.requestParam.pageNum+=1;var e={keyword:this.requestParam.keyword,bizId:this.bizId,pageNum:this.requestParam.pageNum,pageSize:this.requestParam.pageSize};h(e).then(function(e){e.rows.forEach(function(e){t.list.push(e)}),t.total=e.total})}this.loading=!1},initUserIdentity:function(){var t=this,e={userId:this.currUser.id};Object(d["d"])(e).then(function(e){console.log("用户身份——:",e),3==e.data.userType?(t.bizId=e.data.referenceId,t.getProveList()):t.bizId=""})},getProveList:function(){var t=this;if(""==this.bizId)return!1;var e={keyword:this.requestParam.keyword,bizId:this.bizId,pageNum:this.requestParam.pageNum,pageSize:this.requestParam.pageSize};h(e).then(function(e){t.list=e.rows,t.total=e.total,t.refreshing=!1})},staffProve:function(t,e){var r=this,n={id:t,request:e};l(n).then(function(t){r.getProveList(),Object(m["Toast"])(t.data)})}}},y=g,b=(r("8431"),r("2877")),w=Object(b["a"])(y,n,a,!1,null,"2ff751da",null);e["default"]=w.exports},8431:function(t,e,r){"use strict";var n=r("bcd7"),a=r.n(n);a.a},8982:function(t,e,r){"use strict";r.d(e,"a",function(){return f}),r.d(e,"b",function(){return p});var n=r("795b"),a=r.n(n),o=r("bc3a"),i=r.n(o),s=r("4328"),c=r.n(s),u=r("4360"),h=r("5cab"),l=r("a18c"),d=r("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&h["a"].getToken()&&(t.headers["RC-Token"]=h["a"].getToken());var r={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(r.data=t.data),t.headers&&(r.headers=t.headers),new a.a(function(e,n){i()(r).then(function(t){if(t&&t.data&&200===t.status){var r=t.data;switch(r.errno){case 501:Object(d["Toast"])(r.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(r.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(r.errmsg),n(r.errmsg);break}e(r)}else console.log(t),n(t)}).catch(function(e,r){console.log(t.url+" fail",e,r),Object(d["Toast"])(e),n(e,r)})})}function p(t){t.headers||(t.headers={}),t.headers&&h["a"].getToken()&&(t.headers["RC-Token"]=h["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new a.a(function(r,n){i.a.defaults.withCredentials=!0,i()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(d["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(e.errmsg),n(e.errmsg);break}r(e)}else console.log(t),n(t)}).catch(function(e,r){console.log(t.url+" fail",e,r),Object(d["Toast"])(e),n(e,r)})})}},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),i=new C(n||[]);return o._invoke=O(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var h="suspendedStart",l="suspendedYield",d="executing",f="completed",p={};function v(){}function m(){}function g(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==r&&n.call(w,o)&&(y=w);var x=g.prototype=v.prototype=Object.create(y);function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){function e(r,a,o,i){var s=u(t[r],t,a);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"===typeof h&&n.call(h,"__await")?Promise.resolve(h.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(h).then(function(t){c.value=t,o(c)},function(t){return e("throw",t,o,i)})}i(s.arg)}var r;function a(t,n){function a(){return new Promise(function(r,a){e(t,n,r,a)})}return r=r?r.then(a,a):a()}this._invoke=a}function O(t,e,r){var n=h;return function(a,o){if(n===d)throw new Error("Generator is already running");if(n===f){if("throw"===a)throw o;return I()}r.method=a,r.arg=o;while(1){var i=r.delegate;if(i){var s=P(i,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=u(t,e,r);if("normal"===c.type){if(n=r.done?f:l,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=u(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function T(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){while(++a<t.length)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:e,done:!0}}return m.prototype=x.constructor=g,g.constructor=m,g[s]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(k.prototype),k.prototype[i]=function(){return this},t.AsyncIterator=k,t.async=function(e,r,n,a){var o=new k(c(e,r,n,a));return t.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(x),x[s]="Generator",x[o]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=n}catch(a){Function("r","regeneratorRuntime = r")(n)}},bcd7:function(t,e,r){},c518:function(t,e,r){"use strict";r.d(e,"d",function(){return i}),r.d(e,"c",function(){return s}),r.d(e,"b",function(){return c}),r.d(e,"a",function(){return u});var n=r("8982"),a="/industryParkApi",o="/wx/userRelation";function i(t){return Object(n["a"])({url:a+o+"/getUserRelation",method:"post",data:t})}function s(t){return Object(n["a"])({url:a+o+"/getUserMain",method:"post",data:t})}function c(t){return Object(n["a"])({url:a+o+"/getBizMainList",method:"post",data:t})}function u(t){return Object(n["a"])({url:a+o+"/getUserMainApp",method:"post",data:t})}}}]);
|