(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/teller/index/index"],{"133f":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return r}));var a=function(){var e=this,t=e.$createElement;e._self._c},c=[]},"32c3":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i={data:function(){return{haveBackground:!1,pay_code:"",file_path:"",expiry_date:"",check:null,reload:null}},computed:c({},(0,r.mapState)({userInfo:function(e){return e.user.info}})),onHide:function(){clearInterval(this.check),clearInterval(this.reload)},onUnload:function(){clearInterval(this.check),clearInterval(this.reload)},methods:{toBalance:function(){e.navigateTo({url:"/pages/balance/balance"})},checkTime:function(){var e=this,t=Date.parse(new Date)/1e3,n=1e3*(e.expiry_date-t);this.reload=setTimeout((function(){e.getList()}),n)},getCode:function(t){var n=this,r=this;r.$request({url:r.$api.teller.search,data:{pay_code:t},method:"post"}).then((function(a){r.$hideLoading(),0==a.code&&n.userInfo&&(a.data.is_use?(clearInterval(n.check),clearInterval(n.reload),e.navigateTo({url:"/plugins/teller/result/result?code="+t})):n.check=setTimeout((function(){r.getCode(t)}),1e3))})).catch((function(e){r.$hideLoading()}))},getList:function(){var t=this;t.$request({url:t.$api.teller.code}).then((function(n){t.$hideLoading(),0==n.code?(t.pay_code=n.data.pay_code,t.file_path=n.data.file_path,t.expiry_date=n.data.expiry_date,t.getCode(n.data.pay_code),t.checkTime()):e.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(e){t.$hideLoading()}))}},onShow:function(e){this.$showLoading({type:"global",text:"加载中..."}),this.getList()}};t.default=i}).call(this,n("543d")["default"])},"3f9b":function(e,t,n){"use strict";var r=n("d0f0"),a=n.n(r);a.a},9076:function(e,t,n){"use strict";n.r(t);var r=n("133f"),a=n("e6a5");for(var c in a)"default"!==c&&function(e){n.d(t,e,(function(){return a[e]}))}(c);n("3f9b");var o,i=n("f0c5"),u=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,"7a1a48ae",null,!1,r["a"],o);t["default"]=u.exports},bc46:function(e,t,n){"use strict";(function(e){n("2d0a");r(n("66fd"));var t=r(n("9076"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},d0f0:function(e,t,n){},e6a5:function(e,t,n){"use strict";n.r(t);var r=n("32c3"),a=n.n(r);for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=a.a}},[["bc46","common/runtime","common/vendor"]]]);