(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesAdmin/examine/details"],{"13a7":function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("7ca3")),a=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var r={components:{examineCustom:function(){Promise.all([n.e("common/vendor"),n.e("pagesAdmin/component/examine-custom")]).then(function(){return resolve(n("7216"))}.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,examineId:null,examineInfo:[],timeout:null}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,a.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(t){var n=this;this.examineId=t.id,e.showLoading({title:"加载中"}),this.getExamineInfo((function(){e.hideLoading(),n.loadEnd=!0}))},onUnload:function(){clearTimeout(this.timeout)},methods:{pageChange:function(e){this.pageShow=e},getExamineInfo:function(t){var n=this;this.$util.request("member.examine.details",{id:this.examineId}).then((function(o){t&&t(),1==o.code?n.examineInfo=o.data:e.showToast({title:o.msg,icon:"none"})})).catch((function(e){t&&t(),console.error("获取审核信息 ",e)}))},previewPayVoucher:function(){e.previewImage({urls:[this.examineInfo.pay_voucher],current:0})},handleConfirm:function(t){var n=this;1==t?this.$refs.confirmModal.open({content:"确认申请信息无误？<br />点击【确认】完成审核",cancelText:"我再想想",confirmText:"确认",cancelColor:"#999999",confirmColor:this.themeColor,success:function(t){t.confirm&&(e.showLoading({title:"加载中",mask:!0}),n.$util.request(1==n.examineInfo.child_state?"member.examine.examineApply":"member.examine.examineOffline",{state:2,id:n.examineId}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"审核成功",icon:"success",duration:1500,mask:!0}),n.timeout=setTimeout((function(){e.navigateBack()}),1500)):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("通过审核 ",t)})))}}):2==t&&this.$refs.confirmModal.open({title:"驳回申请",editable:!0,placeholderText:"请输入驳回原因",cancelText:"我再想想",confirmText:"提交",cancelColor:"#999999",confirmColor:this.themeColor,success:function(t){t.confirm&&(e.showLoading({title:"加载中",mask:!0}),n.$util.request(1==n.examineInfo.child_state?"member.examine.examineApply":"member.examine.examineOffline",{state:3,id:n.examineId,reject:t.content}).then((function(t){e.hideLoading(),1==t.code?(e.showToast({title:"审核成功",icon:"success",duration:1500,mask:!0}),n.timeout=setTimeout((function(){e.navigateBack()}),1500)):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("通过审核 ",t)})))}})}}};t.default=r}).call(this,n("df3c")["default"])},"1cee":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},i=[]},2549:function(e,t,n){},"2b69":function(e,t,n){"use strict";n.r(t);var o=n("13a7"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"4da9":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("aa6c");o(n("3240"));var i=o(n("ce21"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"6a0a":function(e,t,n){"use strict";var o=n("2549"),i=n.n(o);i.a},ce21:function(e,t,n){"use strict";n.r(t);var o=n("1cee"),i=n("2b69");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("6a0a");var c=n("828b"),r=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports}},[["4da9","common/runtime","common/vendor"]]]);