(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/app_admin/mch-detail/mch-detail"],{1777:function(e,t,i){"use strict";var a;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var n=function(){var e=this,t=e.$createElement,i=(e._self._c,e.pageShow?e.__map(e.detail.form_data,(function(t,i){var a=e.__get_orig(t),n="text"!==t.key&&"date"!==t.key&&"radio"!==t.key&&"time"!==t.key&&"checkbox"!==t.key&&"img_upload"===t.key?e.getTypeof(t.value):null,o="text"!==t.key&&"date"!==t.key&&"radio"!==t.key&&"time"!==t.key&&"checkbox"!==t.key&&"img_upload"===t.key?e.getTypeof(t.value):null;return{$orig:a,m0:n,m1:o}})):null);e.$mp.data=Object.assign({},{$root:{l0:i}})},o=[]},"3ddc":function(e,t,i){"use strict";i.r(t);var a=i("9772"),n=i.n(a);for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"61bb":function(e,t,i){"use strict";var a=i("8501"),n=i.n(a);n.a},"66d4":function(e,t,i){"use strict";(function(e){i("b8bc");a(i("66fd"));var t=a(i("90e0"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,i("543d")["createPage"])},8501:function(e,t,i){},"90e0":function(e,t,i){"use strict";i.r(t);var a=i("1777"),n=i("3ddc");for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("61bb");var r,d=i("f0c5"),u=Object(d["a"])(n["default"],a["b"],a["c"],!1,null,"688066a1",null,!1,a["a"],r);t["default"]=u.exports},9772:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"mch-detail",data:function(){return{detail:{user:{nickname:""},realname:"",mobile:"",wechat:"",scope:"",districts:"",address:"",cat_name:"",service_mobile:"",form_data:[]},model:!1,modelType:0,reasonRefusal:null,transfer_rate:null,pageShow:!1}},onLoad:function(e){var t=this;this.$showLoading({type:"global",text:"加载中..."}),this.$request({url:this.$api.app_admin.review_detail,data:{id:e.id}}).then((function(e){t.$hideLoading(),0===e.code&&(t.pageShow=!0,t.detail=e.data.detail)})).catch((function(){t.$hideLoading()}))},methods:{getTypeof:function(e){return typeof e},fail:function(){this.model=!0,this.modelType=1},by:function(){this.model=!0,this.modelType=2},cancel:function(){this.model=!1,this.modelType=0},confirm:function(){var t=this;2===this.modelType?(this.detail.transfer_rate=this.transfer_rate,this.$request({url:this.$api.app_admin.review_switch,method:"post",data:{type:1,status:1,form:JSON.stringify(this.detail),user_id:this.detail.id}}).then((function(i){0===i.code?(e.navigateBack(),t.model=!1):1===i.code&&e.showToast({title:i.msg})}))):1===this.modelType&&(this.detail.review_remark=this.reasonRefusal,this.$request({url:this.$api.app_admin.review_switch,method:"post",data:{type:1,status:2,form:JSON.stringify(this.detail),user_id:this.detail.id}}).then((function(i){0===i.code?(e.navigateBack(),t.model=!1):1===i.code&&e.showToast({title:i.msg})})))},preview:function(t){e.previewImage({urls:[t]})},onInput:function(e){var t=this;Number(e.detail.value)>1e3&&setTimeout((function(){t.transfer_rate=1e3}))}}};t.default=i}).call(this,i("543d")["default"])}},[["66d4","common/runtime","common/vendor"]]]);