(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/history"],{"0b8a":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uniSwipeAction:function(){return n.e("uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action").then(n.bind(null,"6fe0"))},uniSwipeActionItem:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item")]).then(n.bind(null,"0e88"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},"27c8":function(t,e,n){"use strict";var i=n("98b4"),o=n.n(i);o.a},"2ca5":function(t,e,n){"use strict";n.r(e);var i=n("0b8a"),o=n("6cf0");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("27c8");var r=n("828b"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"01457686",null,!1,i["a"],void 0);e["default"]=c.exports},"3ca1":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("6846");i(n("3240"));var o=i(n("2ca5"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"6cf0":function(t,e,n){"use strict";n.r(e);var i=n("f924"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"98b4":function(t,e,n){},f924:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),a=n("8f59");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var c={components:{delectList:function(){n.e("components/mark-slide-list/mark-slide-list").then(function(){return resolve(n("547e"))}.bind(null,n)).catch(n.oe)}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.mapState)(["user","appTheme"])),data:function(){return{buttonList:[{title:"删除",background:"#ff3b32"}],list:["测量时间","体重","BMI","操作"],ranklist:[],page:1,lastPage:1,type:null,id:null,startX:0,endX:0}},onLoad:function(){t.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme}),this.getList(1)},onReachBottom:function(){console.log("onReachBottom",this.lastPage),!this.lastPage||this.page>=this.lastPage?t.showToast({title:"没有更多数据！",icon:"none"}):(this.page++,this.getList(this.page))},methods:{swipeClick:function(e,n){var i=this,o=i.ranklist[n].id;t.showModal({title:"友情提示",content:"是否删除当前测量记录？",success:function(t){t.confirm?i.$model.gethistorydelete({id:o}).then((function(t){0==t.code?(i.ranklist.splice(n,1),i.$store.dispatch("getUserInfo",{familyid:i.user.familyid}),i.$store.dispatch("getResult",{birthday:i.user.birthday,familyid:i.user.familyid,height:i.user.height,sex:i.user.sex}),i.$tools.msg("删除成功")):i.$tools.msg(t.message)})):t.cancel&&i.$tools.msg("您已取消操作！")}})},clickItemMethod:function(e){t.navigateTo({url:"/pageTwo/me/info?index="+JSON.stringify(e)})},getList:function(t){var e=this;this.$model.getHistoryList({familyId:this.user.familyid,pageNo:t,pageSize:10}).then((function(t){console.log("历史记录",t),0==t.code&&(t.data.rows.forEach((function(t){t.slide_x=0})),e.ranklist=e.ranklist.concat(t.data.rows),e.lastPage=t.data.totalpage)}))}}};e.default=c}).call(this,n("df3c")["default"])}},[["3ca1","common/runtime","common/vendor"]]]);