text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[1],{FJkK:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("f7-page",{ref:"homePage",attrs:{ptr:!0},on:{"page:init":t.onPageInit,"ptr:refresh":t.onRefresh}},[e("f7-navbar",{attrs:{title:"Books","back-link":"返回"}},[e("f7-nav-right",[e("f7-link",{attrs:{href:"https://www.nytimes.com/books/best-sellers/combined-print-and-e-book-nonfiction/",external:!0,target:"_blank","icon-md":"material:all_out"}})],1)],1),e("f7-list",{staticClass:"news-list",attrs:{"media-list":""}},t._l(t.newsList,function(n){return e("f7-list-item",{key:n.url,attrs:{swipeout:"",link:t.formatLink(n)}},[e("div",{attrs:{slot:"title"},slot:"title"},[t._v("\n        "+t._s(n.title)+"\n      ")]),e("div",{attrs:{slot:"text"},slot:"text"},[t._v("\n        "+t._s(n.summary)+"\n      ")]),e("f7-swipeout-actions",{attrs:{right:""}},[e("f7-swipeout-button",{attrs:{color:"blue",close:""},on:{click:function(e){t.savePocket(n)}}},[t._v("\n          Save\n        ")])],1)],1)}))],1)},o=[],s=e("7eDf"),a=e("BxIC"),r={components:{f7View:s["E"],f7Panel:s["w"],f7Page:s["u"],f7Navbar:s["t"],f7NavTitle:s["s"],f7Link:s["j"],f7List:s["k"],f7ListItem:s["m"],f7Icon:s["h"],f7SwipeoutActions:s["A"],f7SwipeoutButton:s["B"],f7NavRight:s["r"]},mixins:[a["a"]],data:function(){return{newsList:[],lfKey:"/list/book/nyt"}},created:function(){var t=this;this.$lf.getItem(this.lfKey).then(function(n){n&&(t.newsList=n)}).catch(function(t){console.log(t)})},methods:{onPageInit:function(){var t=this;this.$nextTick(function(){t.$f7.ptr.get(t.$refs.homePage.$el.querySelector(".ptr-content")).refresh()})},onRefresh:function(t,n){this.getData().then(function(){n()})},getData:function(){var t=this;return this.$http.get(this.api.book).then(function(n){n.success&&(t.newsList=n.data,t.$lf.setItem(t.lfKey,n.data).catch(function(t){console.log(t)}))}).catch(function(t){console.log(t)})},formatLink:function(t){return"/content2?name=".concat(t.url,"&title=").concat(t.title,"&region=nyt")}}},c=r,f=(e("YmBk"),e("KHd+")),l=Object(f["a"])(c,i,o,!1,null,"7a8de5fe",null);n["default"]=l.exports},YmBk:function(t,n,e){"use strict";var i=e("mCkZ"),o=e.n(i);o.a},mCkZ:function(t,n,e){}}]);
  //# sourceMappingURL=1-legacy.98c99815.js.map