record.js 2.4 KB

1
  1. (my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/me/record"],{6274:function(t,e,n){"use strict";n.r(e);var r=n("8813"),a=n("e42d");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("d6e6");var c,i=n("f0c5"),u=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);e["default"]=u.exports},8813:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},c5b7:function(t,e,n){"use strict";(function(t){function n(t){return c(t)||o(t)||a(t)||r()}function r(){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 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 o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return i(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u={data:function(){return{page:1,pages:0,recordList:[]}},methods:{getRecord:function(){var e=this;this.$api.openRecord({page:this.page,msg:"数据加载中"}).then((function(r){t.stopPullDownRefresh(),1===r.code&&(e.recordList=1==e.page?r.data.data:[].concat(n(e.recordList),n(r.data.data)),e.pages=r.data.last_page)}))}},onLoad:function(){this.getRecord()},onPullDownRefresh:function(){this.page=1,this.getRecord()},onReachBottom:function(){this.page<this.pages&&(this.page++,this.getRecord())}};e.default=u}).call(this,n("c11b")["default"])},d6e6:function(t,e,n){"use strict";var r=n("daae"),a=n.n(r);a.a},daae:function(t,e,n){},e42d:function(t,e,n){"use strict";n.r(e);var r=n("c5b7"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},e859:function(t,e,n){"use strict";(function(t){n("6f14");r(n("66fd"));var e=r(n("6274"));function r(t){return t&&t.__esModule?t:{default:t}}my.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("c11b")["createPage"])}},[["e859","common/runtime","common/vendor"]]]);