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
2.9 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/views/moment/childComps/icon.vue?vue&type=style&index=0&id=e7283f2c&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/views/moment/childComps/icon.vue","mtime":1616403635810},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgouaWNvbnsKICBkaXNwbGF5OiBmbGV4OwogIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5Owp9Cg=="},{"version":3,"sources":["icon.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA;AACA;AACA;AACA","file":"icon.vue","sourceRoot":"src/views/moment/childComps","sourcesContent":["<template>\n <div class=\"icon\">\n <div>\n <i id=\"icon-1\" @click=\"clickpraise\"\n ><img src=\"@/assets/img/moment/praise.svg\" /></i\n ><sup>{{ this.praise.promiseCount}}</sup>\n </div>\n <div>\n <i\n id=\"icon-1\"\n class=\"el-icon-chat-dot-square\"\n style=\"font-size: 20px\"\n @click=\"Popup\"\n > </i>\n <sup>{{ comments.commentCount }}</sup> \n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"icon\",\n props: {\n comments:{\n type:Object,\n default(){\n return {}\n }\n },\n },\n data(){\n return {\n praise:{},\n momentId:'',\n token:''\n }\n },\n mounted(){\n this.token = window.sessionStorage.getItem(\"token\");\n },\n created() {\n this.momentId = this.$route.params.iid;\n this.getAllPraise();\n },\n methods: {\n async getAllPraise() {\n const { data: res } = await this.$http.get(\"/praise/\" + this.momentId);\n this.praise = res;\n },\n clickpraise(){\n if(!this.token){\n this.$router.push('/login')\n }else{\n this.$emit('clickpraise')\n }\n },\n Popup(){\n if(!this.token){\n this.$router.push('/login')\n }else{\n this.$emit('Popup')\n }\n },\n }\n};\n</script>\n\n<style scoped>\n.icon{\n display: flex;\n justify-content: space-evenly;\n}\n</style>"]}]}