mch-detail.js 2.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/app_admin/mch-detail/mch-detail"],{"0df8":function(t,e,i){"use strict";var a,n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__map(t.detail.form_data,(function(e,i){var a=t.getTypeof(e.value),n=t.getTypeof(e.value);return{$orig:t.__get_orig(e),m0:a,m1:n}})));t.$mp.data=Object.assign({},{$root:{l0:i}})},o=[];i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}))},"1d8d":function(t,e,i){"use strict";var a=i("2824"),n=i.n(a);n.a},2824:function(t,e,i){},"6f52":function(t,e,i){"use strict";i.r(e);var a=i("809c"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"7c9a":function(t,e,i){"use strict";i.r(e);var a=i("0df8"),n=i("6f52");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("1d8d");var r,d=i("f0c5"),s=Object(d["a"])(n["default"],a["b"],a["c"],!1,null,"507d07fc",null,!1,a["a"],r);e["default"]=s.exports},"809c":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t){var e=this;this.$showLoading({type:"global",text:"加载中..."}),this.$request({url:this.$api.app_admin.review_detail,data:{id:t.id}}).then((function(t){e.$hideLoading(),0===t.code&&(e.pageShow=!0,e.detail=t.data.detail)})).catch((function(t){e.$hideLoading()}))},methods:{getTypeof:function(t){return typeof t},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 e=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?(t.navigateBack(),e.model=!1):1===i.code&&t.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?(t.navigateBack(),e.model=!1):1===i.code&&t.showToast({title:i.msg})})))},preview:function(e){t.previewImage({urls:[e]})},onInput:function(t){var e=this;Number(t.detail.value)>1e3&&setTimeout((function(){e.transfer_rate=1e3}),0)}}};e.default=i}).call(this,i("543d")["default"])},a188:function(t,e,i){"use strict";(function(t){i("8748");a(i("66fd"));var e=a(i("7c9a"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])}},[["a188","common/runtime","common/vendor"]]]);