1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/app_admin/cash/cash"],{"2e70":function(t,e,s){"use strict";s.r(e);var i=s("7f33"),a=s("e64e");for(var n in a)"default"!==n&&function(t){s.d(e,t,(function(){return a[t]}))}(n);s("583a");var o,r=s("f0c5"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"5f5e2b5f",null,!1,i["a"],o);e["default"]=u.exports},"583a":function(t,e,s){"use strict";var i=s("db16"),a=s.n(i);a.a},"7f33":function(t,e,s){"use strict";var i,a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.getFocus=!0},t.e1=function(e){t.searchBool=!0},t.e2=function(e){t.model=!1,t.modelType=-1})},n=[];s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return n})),s.d(e,"a",(function(){return i}))},c78a0:function(t,e,s){"use strict";(function(t){s("8748");i(s("66fd"));var e=i(s("2e70"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,s("543d")["createPage"])},ca8b:function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(s("4795"));function a(t){return t&&t.__esModule?t:{default:t}}function n(t,e,s,i,a,n,o){try{var r=t[n](o),u=r.value}catch(h){return void s(h)}r.done?e(u):Promise.resolve(u).then(i,a)}function o(t){return function(){var e=this,s=arguments;return new Promise((function(i,a){var o=t.apply(e,s);function r(t){n(o,i,a,r,u,"next",t)}function u(t){n(o,i,a,r,u,"throw",t)}r(void 0)}))}}function r(t){return c(t)||d(t)||h(t)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(s):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?l(t,e):void 0}}function d(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=new Array(e);s<e;s++)i[s]=t[s];return i}var p={name:"cash",data:function(){return{searchBool:!1,list:[],mch:"0",share:"0",type:1,getFocus:!1,status:0,over:!1,model:!1,modelType:-1,textarea:"",setItem:{},page:1,inputText:""}},onLoad:function(t){var e=this;this.mch=t.mch,this.share=t.share,"0"===this.mch&&(this.type=2),this.$request({url:this.$api.app_admin.cash,data:{page:1,type:this.type,status:0,keyword:""}}).then((function(t){0===t.code&&(e.list=t.data.list)}))},onReachBottom:function(){this.over||(this.page++,this.bottomRequest())},methods:{searchText:function(){var t=this;setTimeout((function(e){switch(t.page=1,t.over=!1,t.getFocus=!1,""==t.inputText&&(t.searchBool=!1),t.type){case 1:t.switchRequest({type:1});break;case 2:t.switchRequest({type:2});break}}),300)},clearSearch:function(){this.inputText=""},bottomRequest:function(){var t=this;1===this.type&&0===this.status?this.$request({url:this.$api.app_admin.cash,data:{type:1,page:this.page,status:0,keyword:""}}).then((function(e){0===e.code&&(0===e.data.list.length?t.over=!0:t.list=[].concat(r(t.list),r(e.data.list)))})):1===this.type&&1===this.status?this.$request({url:this.$api.app_admin.cash,data:{type:1,page:this.page,status:1,keyword:""}}).then((function(e){0===e.code&&(0===e.data.list.length?t.over=!0:t.list=[].concat(r(t.list),r(e.data.list)))})):2===this.type&&0===this.status?this.$request({url:this.$api.app_admin.cash,data:{type:2,page:this.page,status:0,keyword:""}}).then((function(e){0===e.code&&(0===e.data.list.length?t.over=!0:t.list=[].concat(r(t.list),r(e.data.list)))})):2===this.type&&1===this.status&&this.$request({url:this.$api.app_admin.cash,data:{type:2,page:this.page,status:1,keyword:""}}).then((function(e){0===e.code&&(0===e.data.list.length?t.over=!0:t.list=[].concat(r(t.list),r(e.data.list)))}))},setStatus:function(t){var e=this;this.page=1,this.status=t,this.over=!1,this.inputText="",this.searchBool=!1,this.$request({url:this.$api.app_admin.cash,data:{page:1,type:this.type,status:t,keyword:this.inputText}}).then((function(t){0===t.code&&(e.list=t.data.list)}))},mchShare:function(t){var e=this;this.page=1,this.status=0,this.over=!1,this.type=t,this.inputText="",this.searchBool=!1,this.list=[],this.$request({url:this.$api.app_admin.cash,data:{page:1,type:t,status:0,keyword:this.inputText}}).then((function(t){0===t.code&&(e.list=t.data.list)}))},confirm:function(){var e=this;if(1===this.modelType){if(""===this.textarea)return;1===this.type&&0===this.status?this.$request({url:this.$api.app_admin.verify,method:"post",data:{status:0,id:this.setItem.id,content:this.textarea,type:1}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1,e.textarea="")})):1===this.type&&1===this.status?this.$request({url:this.$api.app_admin.user_cash,method:"post",data:{id:this.setItem.id,content:this.textarea,type:this.type,transfer_type:3}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1,e.textarea="")})):2===this.type&&0===this.status?this.$request({url:this.$api.app_admin.verify,method:"post",data:{status:3,id:this.setItem.id,content:this.textarea,type:2}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1,e.textarea="")})):2===this.type&&1===this.status&&this.$request({url:this.$api.app_admin.user_cash,method:"post",data:{id:this.setItem.id,content:this.textarea,type:2,status:3}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1,e.textarea="")}))}else 3===this.modelType?1===this.type?this.$request({url:this.$api.app_admin.user_cash,method:"post",data:{id:this.setItem.id,content:"小程序端操作",type:1,transfer_type:1}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1)})):2===this.type&&this.$request({url:this.$api.app_admin.user_cash,method:"post",data:{id:this.setItem.id,content:"小程序端操作",type:2,status:2}}).then((function(s){if(0===s.code)for(var i=0;i<e.list.length;i++)e.list[i].id===e.setItem.id&&(e.$delete(e.list,i),e.model=!1);else 1===s.code&&(t.showModal({title:"提示",content:s.msg}),e.model=!1)})):2===this.modelType&&(1===this.type?this.$request({url:this.$api.app_admin.verify,method:"post",data:{status:1,id:this.setItem.id,content:"小程序端操作",type:1}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1,e.textarea="")})):2===this.type&&this.$request({url:this.$api.app_admin.verify,method:"post",data:{status:1,id:this.setItem.id,content:"小程序端操作",type:2}}).then((function(t){if(0===t.code)for(var s=0;s<e.list.length;s++)e.list[s].id===e.setItem.id&&(e.$delete(e.list,s),e.model=!1,e.textarea="")})))},refuse:function(t){this.setItem=t,this.model=!0,this.modelType=1},byGo:function(t){this.setItem=t,this.model=!0,this.modelType=2},pay:function(t){this.setItem=t,this.model=!0,this.modelType=3},request:function(t){var e=this;return o(i.default.mark((function s(){var a;return i.default.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,e.$request({url:e.$api.app_admin.cash,data:{type:t.type,page:t.page,status:t.status,keyword:e.inputText}});case 2:a=s.sent,0===a.code&&(e.list=a.data.list);case 4:case"end":return s.stop()}}),s)})))()},switchRequest:function(t){0===this.status?this.request({type:t.type,page:this.page,status:0}):1===this.status&&this.request({type:t.type,page:this.page,status:1})}}};e.default=p}).call(this,s("543d")["default"])},db16:function(t,e,s){},e64e:function(t,e,s){"use strict";s.r(e);var i=s("ca8b"),a=s.n(i);for(var n in i)"default"!==n&&function(t){s.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a}},[["c78a0","common/runtime","common/vendor"]]]);
|