1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/app_admin/mch-detail/mch-detail"],{"0952":function(t,e,n){"use strict";var a=n("9af7"),i=n.n(a);i.a},"438c":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.pageShow&&t.showForm?t.__map(t.detail.form_data,(function(e,n){var a=t.__get_orig(e),i="text"!==e.key&&"date"!==e.key&&"radio"!==e.key&&"time"!==e.key&&"checkbox"!==e.key&&"img_upload"===e.key&&e.value?t.getTypeof(e.value):null,r="text"!==e.key&&"date"!==e.key&&"radio"!==e.key&&"time"!==e.key&&"checkbox"!==e.key&&"img_upload"===e.key&&e.value?t.getTypeof(e.value):null;return{$orig:a,m0:i,m1:r}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},5794:function(t,e,n){"use strict";(function(t){function n(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){l=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={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:"",transfer_rate:null,pageShow:!1,showForm:!1}},onLoad:function(t){var e=this;this.$commonLoad.onload(t),this.$showLoading({type:"global",text:"加载中..."}),this.$request({url:this.$api.app_admin.review_detail,data:{id:t.id}}).then((function(t){if(e.$hideLoading(),0===t.code){e.pageShow=!0,e.detail=t.data.detail;var a,i=n(e.detail.form_data);try{for(i.s();!(a=i.n()).done;){var r=a.value;r.value&&(e.showForm=!0)}}catch(o){i.e(o)}finally{i.f()}}})).catch((function(){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(n){0===n.code?(t.navigateBack(),e.model=!1):1===n.code&&t.showToast({title:n.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(n){0===n.code?(t.navigateBack(),e.model=!1):1===n.code&&t.showToast({title:n.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}))}}};e.default=r}).call(this,n("543d")["default"])},5957:function(t,e,n){"use strict";n.r(e);var a=n("5794"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},6310:function(t,e,n){"use strict";(function(t){n("2d0a");a(n("66fd"));var e=a(n("8573"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},8573:function(t,e,n){"use strict";n.r(e);var a=n("438c"),i=n("5957");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("0952");var o,u=n("f0c5"),l=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"c74244c8",null,!1,a["a"],o);e["default"]=l.exports},"9af7":function(t,e,n){}},[["6310","common/runtime","common/vendor"]]]);
|