(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/app_admin/community-detail/community-detail"],{1168:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{id:0,detail:{},modelType:1,reasonRefusal:"",model:!1,iphone_x:!1}},onLoad:function(t){this.$commonLoad.onload(t);var n=this;e.getSystemInfo({success:function(e){(e.model.indexOf("iPhone X")>-1||e.model.indexOf("iPhone 11")>-1||e.model.indexOf("iPhone11")>-1||e.model.indexOf("iPhone12")>-1||e.model.indexOf("Unknown Device")>-1)&&(n.iphone_x=!0)}}),n.$showLoading({type:"global",text:"加载中..."}),n.id=t.id,n.getDetail()},methods:{getDetail:function(){var t=this;this.$request({url:this.$api.app_admin.review_detail_v2,data:{key:"community",user_id:this.id}}).then((function(n){t.$hideLoading(),e.hideLoading(),0===n.code&&(t.detail=n.data)})).catch((function(){t.$hideLoading(),e.hideLoading()}))},refuse:function(){this.modelType=1,this.model=!0},by:function(){this.modelType=2,this.model=!0},confirm:function(){var t=this;2===this.modelType?this.$request({url:this.$api.app_admin.review_switch_v2,method:"post",data:{key:"community",status:1,user_id:this.detail.user_id}}).then((function(n){0===n.code&&(e.showToast({title:"通过申请",duration:1e3}),t.model=!1,setTimeout((function(){e.navigateBack()})))})):1===this.modelType&&this.$request({url:this.$api.app_admin.review_switch_v2,method:"post",data:{key:"community",status:2,reason:this.reasonRefusal,user_id:this.detail.user_id}}).then((function(n){0===n.code?(t.reasonRefusal="",t.model=!1,e.showToast({title:"拒绝申请",icon:"none",duration:1e3}),setTimeout((function(){e.navigateBack()}))):e.showToast({title:n.msg,icon:"none",duration:1e3})}))},cancel:function(){this.model=!1}}};t.default=n}).call(this,n("543d")["default"])},"4fa2":function(e,t,n){"use strict";(function(e){n("2d0a");i(n("66fd"));var t=i(n("9101"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},9101:function(e,t,n){"use strict";n.r(t);var i=n("ba10"),o=n("af13");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("ffa4");var d,u=n("f0c5"),s=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,"fec118cc",null,!1,i["a"],d);t["default"]=s.exports},af13:function(e,t,n){"use strict";n.r(t);var i=n("1168"),o=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},ba10:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement;e._self._c},a=[]},f5f2:function(e,t,n){},ffa4:function(e,t,n){"use strict";var i=n("f5f2"),o=n.n(i);o.a}},[["4fa2","common/runtime","common/vendor"]]]);