You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.3 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/nodejs/codewhy/src/views/moment/Moment.vue?vue&type=script&lang=js&","dependencies":[{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/src/views/moment/Moment.vue","mtime":1608532532709},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBOYXZCYXIgZnJvbSAnQC9jb21wb25lbnRzL2NvbW1vbi9uYXZiYXIvTmF2QmFyJwppbXBvcnQgeyBnZXRNb21lbnRMaXN0IH0gZnJvbSAnQC9uZXR3b3JrL21vbWVudCcKaW1wb3J0IE1vbWVudExpc3QgZnJvbSAnQC9jb21wb25lbnRzL2NvbnRlbnQvZ29vZHMvTW9tZW50TGlzdCcKaW1wb3J0IFNjcm9sbCBmcm9tICdAL2NvbXBvbmVudHMvY29tbW9uL1Njcm9sbC9TY3JvbGwnCmltcG9ydCB7ZGVib3VuY2V9IGZyb20gIkAvY29tbW9uL3V0aWxzIjsKCmV4cG9ydCBkZWZhdWx0IHsKICAgIG5hbWU6ICJNb21lbnQiLAogICAgY29tcG9uZW50czp7CiAgICAgICAgTmF2QmFyLAogICAgICAgIE1vbWVudExpc3QsCiAgICAgICAgU2Nyb2xsLAogICAgfSwKICAgIGRhdGEoKXsKICAgICAgICByZXR1cm57CiAgICAgICAgICBtb21lbnRzOltdLAogICAgICAgICAgdXBsb2FkYXZhdGFyOm51bGwKICAgICAgICB9CiAgICB9LAogICAgY3JlYXRlZCgpewogICAgICAgIGdldE1vbWVudExpc3QoMCwxMCkudGhlbihyZXM9PnsKICAgICAgICAgIGNvbnNvbGUubG9nKHJlcy5kYXRhKTsKICAgICAgICAgICAgdGhpcy5tb21lbnRzPXJlcy5kYXRhCiAgICAgICAgfSkKICAgIH0sCiAgICBtZXRob2RzOnsKICAgICAgY3JlYXRlbW9tZW50KCl7CiAgICAgICAgdGhpcy4kcm91dGVyLnB1c2goJy9jcmVhdGVtb21lbnQnKQogICAgICB9CiAgICB9LAogICAgbW91bnRlZCgpIHsKICAgIGNvbnN0IHJlZnJlc2ggPSBkZWJvdW5jZSh0aGlzLiRyZWZzLnNjcm9sbC5yZWZyZXNoKCksMzAwKQogICAgdGhpcy51cGxvYWRhdmF0YXI9KCk9PnsKICAgICAgcmVmcmVzaCgpCiAgICAgIGNvbnNvbGUubG9nKDEpOwogICAgfQogICAgdGhpcy4kYnVzLiRvbigndXBsb2FkJyx0aGlzLnVwbG9hZGF2YXRhcikKCiAgICBjb25zdCBvcHRpb25zPXsKICAgICAgY2xpY2s6dHJ1ZSwKICAgICAgdGFwOnRydWUsCiAgICB9CiAgICB0aGlzLnNjcm9sbD1uZXcgQnNjcm9sbCh0aGlzLiRyZWZzLndyYXBwZXIsb3B0aW9ucykKICB9LAogICAgICBjb21wdXRlZDp7CiAgICAvL+WIh+aNouadv+Wdl+aXtu+8jOWbnuadpeS/neWtmOW9k+WJjeeahOS9jee9rgogICAgYWN0aXZhdGVkKCl7CiAgICAgIHRoaXMuJHJlZnMuc2Nyb2xsLnJlZnJlc2goKQogICAgICB0aGlzLiRyZWZzLnNjcm9sbC5zY3JvbGxUbygwLHRoaXMuc2F2ZVksMCkKICAgIH0sCiAgICBkZWFjdGl2YXRlZCgpewogICAgICB0aGlzLnNhdmVZID0gdGhpcy4kcmVmcy5zY3JvbGwuZ2V0U2Nyb2xsWSgpCiAgICAgIC8v5Yik5pat5b2T5YmN5ZOq5Liq5Zu+54mH5Yqg6L2955uR5ZCsCiAgICAgIHRoaXMuJGJ1cy4kb2ZmKCd1cGxvYWQnLHRoaXMudXBsb2FkYXZhdGFyKQogICAgfQogIH0KfQo="},{"version":3,"sources":["Moment.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAkBA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"Moment.vue","sourceRoot":"src/views/moment","sourcesContent":["<template>\n<div class=\"home\">\n <NavBar class=\"nav-bar\">\n <div slot=\"center\">白酒论坛</div>\n <div slot=\"right\" @click=\"createmoment\" ><i class=\"el-icon-plus\" ></i></div>\n </NavBar>\n <Scroll \n class=\"content\"\n ref=\"scroll\"\n >\n <div >\n <MomentList :moments=\"moments\"></MomentList>\n </div>\n </Scroll>\n </div>\n</template>\n\n<script>\nimport NavBar from '@/components/common/navbar/NavBar'\nimport { getMomentList } from '@/network/moment'\nimport MomentList from '@/components/content/goods/MomentList'\nimport Scroll from '@/components/common/Scroll/Scroll'\nimport {debounce} from \"@/common/utils\";\n\nexport default {\n name: \"Moment\",\n components:{\n NavBar,\n MomentList,\n Scroll,\n },\n data(){\n return{\n moments:[],\n uploadavatar:null\n }\n },\n created(){\n getMomentList(0,10).then(res=>{\n console.log(res.data);\n this.moments=res.data\n })\n },\n methods:{\n createmoment(){\n this.$router.push('/createmoment')\n }\n },\n mounted() {\n const refresh = debounce(this.$refs.scroll.refresh(),300)\n this.uploadavatar=()=>{\n refresh()\n console.log(1);\n }\n this.$bus.$on('upload',this.uploadavatar)\n\n const options={\n click:true,\n tap:true,\n }\n this.scroll=new Bscroll(this.$refs.wrapper,options)\n },\n computed:{\n //切换板块时,回来保存当前的位置\n activated(){\n this.$refs.scroll.refresh()\n this.$refs.scroll.scrollTo(0,this.saveY,0)\n },\n deactivated(){\n this.saveY = this.$refs.scroll.getScrollY()\n //判断当前哪个图片加载监听\n this.$bus.$off('upload',this.uploadavatar)\n }\n }\n}\n</script>\n\n<style scoped>\n.nav-bar {\n background-color: rgb(196, 15, 15);\n font-weight: 700;\n color: rgba(255, 255, 255, 0.877);\n}\n.home{\n height: 100vh;\n position: relative;\n background-color: rgb(212, 212, 212);\n}\n.content{\n left: 0;\n right: 0;\n top:39px;\n bottom: 49px;\n overflow: hidden;\n position: absolute;\n}\n</style>"]}]}