(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesAdmin/examine/index"],{"0032":function(e,t,n){"use strict";var i=n("a716"),o=n.n(i);o.a},1972:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("af34")),a=i(n("7ca3")),c=n("8f59");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var s={components:{examineItem:function(){Promise.all([n.e("common/vendor"),n.e("pagesAdmin/component/examine")]).then(function(){return resolve(n("6929"))}.bind(null,n)).catch(n.oe)},confirmModal:function(){n.e("pages/component/modal/confirm").then(function(){return resolve(n("9e1e"))}.bind(null,n)).catch(n.oe)}},data:function(){return{pageShow:!1,loadEnd:!1,titleBarHeight:0,selectScreen:1,examineList:[],page:1,limit:20,hasMore:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,c.mapState)({themeColor:function(e){return e.app.themeColor}})),mounted:function(){var t=e.getSystemInfoSync().statusBarHeight,n=e.getMenuButtonBoundingClientRect();this.titleBarHeight=t+2*(n.top-t)+n.height},onLoad:function(){var t=this;e.showLoading({title:"加载中"}),this.getExamineList((function(){e.hideLoading(),t.loadEnd=!0}))},onShow:function(){this.loadEnd&&(e.pageScrollTo({scrollTop:0,duration:0}),this.page=1,this.getExamineList())},onPullDownRefresh:function(){this.getExamineList((function(){e.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getExamineList())},methods:{pageChange:function(e){this.pageShow=e},getExamineList:function(t){var n=this;this.$util.request("member.examine.list",{page:this.page,limit:this.limit,state:this.selectScreen}).then((function(i){if(t&&t(),1==i.code){var a=i.data.data;n.hasMore=n.page<i.data.total/n.limit,n.examineList=1==n.page?a:[].concat((0,o.default)(n.examineList),(0,o.default)(a))}else e.showToast({title:i.msg,icon:"none"})})).catch((function(e){t&&t(),console.error("获取审核列表 ",e)}))},changeScreen:function(e){this.selectScreen=e,this.getExamineList()},handleConfirm:function(t){var n=this;1==t.type?this.$refs.confirmModal.open({content:"确认申请信息无误？<br />点击【确认】完成审核",cancelText:"我再想想",confirmText:"确认",cancelColor:"#999999",confirmColor:this.themeColor,success:function(i){i.confirm&&(e.showLoading({title:"加载中",mask:!0}),n.$util.request(1==t.state?"member.examine.examineApply":"member.examine.examineOffline",{state:2,id:t.id}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"审核成功",icon:"success",duration:1500}),n.page=1,n.getExamineList()):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("通过审核 ",t)})))}}):2==t.type&&this.$refs.confirmModal.open({title:"驳回申请",editable:!0,placeholderText:"请输入驳回原因",cancelText:"我再想想",confirmText:"提交",cancelColor:"#999999",confirmColor:this.themeColor,success:function(i){i.confirm&&(e.showLoading({title:"加载中",mask:!0}),n.$util.request(1==t.state?"member.examine.examineApply":"member.examine.examineOffline",{state:3,id:t.id,reject:i.content}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"审核成功",icon:"success",duration:1500}),n.page=1,n.getExamineList()):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("通过审核 ",t)})))}})}}};t.default=s}).call(this,n("df3c")["default"])},"19c70":function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("aa6c");i(n("3240"));var o=i(n("ae4c"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a716:function(e,t,n){},ac9d:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=(this._self._c,this.loadEnd?this.examineList.length:null);this.$mp.data=Object.assign({},{$root:{g0:t}})},o=[]},ae4c:function(e,t,n){"use strict";n.r(t);var i=n("ac9d"),o=n("f51b");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("0032");var c=n("828b"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=r.exports},f51b:function(e,t,n){"use strict";n.r(t);var i=n("1972"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a}},[["19c70","common/runtime","common/vendor"]]]);