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.6 KiB

{"remainingRequest":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/nodejs/codewhy/src/components/content/goods/MomentListItem.vue?vue&type=script&lang=js&","dependencies":[{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/src/components/content/goods/MomentListItem.vue","mtime":1608894108878},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/nodejs/codewhy/node_modules/thread-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:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCgppbXBvcnQgeyBnZXRNb21lbnRMaXN0IH0gZnJvbSAiQC9uZXR3b3JrL21vbWVudCI7CmV4cG9ydCBkZWZhdWx0IHsKbmFtZTogIkdvb2RzTGlzdEl0ZW0iLAogIHByb3BzOnsKICAgIG1vbWVudHM6ewogICAgICB0eXBlOk9iamVjdCwKICAgICAgZGVmYXVsdCgpewogICAgICAgIHJldHVybiB7fQogICAgICB9CiAgICB9CiAgfSwKICBkYXRhKCl7CiAgICByZXR1cm57CiAgICAgIGlkOnRoaXMubW9tZW50cy5pZCwKICAgICAgaXNFeGlzdDp0cnVlCiAgICB9CiAgfSwKICBjcmVhdGVkKCl7CiAgfSwKICBtZXRob2RzOnsKICAgIHVwbG9hZGF2YXRhcigpewogICAgICB0aGlzLiRidXMuJGVtaXQoJ3VwbG9hZCcpCiAgICB9LAogICBhc3luYyAgcmVtb3ZlKCl7CiAgICAgIGNvbnN0IHtkYXRhOnJlc30gPSBhd2FpdCB0aGlzLiRodHRwLmRlbGV0ZSgiL21vbWVudC8iK3RoaXMuaWQpOwogICAgICBpZihyZXMuc3RhdHVzPT0yMDApewogICAgICB0aGlzLmlzRXhpc3Q9IXRoaXMuaXNFeGlzdAogICAgICByZXR1cm4gdGhpcy4kbWVzc2FnZS5zdWNjZXNzKCfliKDpmaTmiJDlip8nKQogICAgICB0aGlzLiRidXMuJGVtaXQoJ3VwbG9hZCcpCiAgICAgIH0KICAgICAgZWxzZXsKICAgICAgIHJldHVybiB0aGlzLiRtZXNzYWdlLmVycm9yKCfkvaDkuI3lhbflpIfliKDpmaTor6XliqjmgIHmnYPpmZAnKQogICAgICB9CiAgICB9CiAgfQp9Cg=="},{"version":3,"sources":["MomentListItem.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA;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;AACA;AACA;AACA;AACA;AACA","file":"MomentListItem.vue","sourceRoot":"src/components/content/goods","sourcesContent":["<template>\n <div class=\"moment-items\" v-if=\"isExist\">\n <!-- <p>{{moments.author.avatarUrl}}</p> -->\n <!-- :src会把后面当作一个变量 -->\n <div ><img class=\"avatar\" :src=\"moments.author.avatarUrl\" @load=\"uploadavatar\"/></div>\n <div class=\"name\">{{moments.author.name}}</div>\n <div @click=\"remove\"> \n <i id=\"delete\" class=\"el-icon-delete\" style=\"font-size: 20px;\" ></i>\n </div>\n <div class=\"time\">{{this.$moment(moments.createAT).format(\"YYYY-MM-DD HH:mm:ss\")}}</div>\n <div class=\"content\">{{moments.content}}</div>\n <div class=\"icon\">\n <i id=\"icon-1\" class=\"el-icon-thumb\" style=\"font-size: 20px;\"></i>\n <i id=\"icon-1\" class=\"el-icon-chat-dot-square\" style=\"font-size: 20px;\"></i>\n </div>\n <!-- <img v-lazy=\"showImage\" alt=\"\" @load=\"imageLoad\">\n <div class=\"goods-info\">\n <p>{{goodsItem.title}}</p>\n <span class=\"price\">{{goodsItem.price}}</span>\n <span class=\"collect\">{{goodsItem.cfav}}</span>\n </div> -->\n </div>\n</template>\n\n<script>\n\nimport { getMomentList } from \"@/network/moment\";\nexport default {\nname: \"GoodsListItem\",\n props:{\n moments:{\n type:Object,\n default(){\n return {}\n }\n }\n },\n data(){\n return{\n id:this.moments.id,\n isExist:true\n }\n },\n created(){\n },\n methods:{\n uploadavatar(){\n this.$bus.$emit('upload')\n },\n async remove(){\n const {data:res} = await this.$http.delete(\"/moment/\"+this.id);\n if(res.status==200){\n this.isExist=!this.isExist\n return this.$message.success('删除成功')\n this.$bus.$emit('upload')\n }\n else{\n return this.$message.error('你不具备删除该动态权限')\n }\n }\n }\n}\n</script>\n\n<style scoped>\n.moment-items {\n position: relative;\n background-color: rgb(255, 255, 255);\n width:100%;\n font-size: 5px;\n}\n.avatar {\n float:left;\n width: 50px;\n height: 50px;\n border-radius: 20px;\n}\n.name{\n float:left;\n margin-top: 5px;\n margin-left: 10px;\n color:rgb(0, 0, 0);\n font-size:15px;\n}\n.time{\n margin-left:60px;\n margin-top:30px;\n font-size:6px;\n}\n.content{\n margin-top:15px;\n margin-left:5px;\n font-size:15px;\n}\n.icon{\nmargin-top:15px;\ndisplay: flex;\nborder-top-style:solid;\nborder-width: 0.1px;\nborder-color: rgb(230, 220, 220);\n}\n#icon-1{\n margin-left:30% ;\n}\n#delete{\n float: right;\n}\n.el-icon-delete{\n margin-left: 20px;\n}\n.remove{\n margin-left: 20px;\n}\n\n\n\n/* .goods-items img {\n width: 100%;\n}\n\n.goods-info {\n font-size: 12px;\n position: absolute;\n bottom: 5px;\n left: 0;\n right: 0;\n overflow: hidden;\n text-align: center;\n}\n\n.goods-info p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin-bottom: 3px;\n}\n\n.goods-info .price {\n color: var(--color-high-text);\n margin-right: 20px;\n}\n\n.goods-info .collect {\n position: relative;\n}\n\n.goods-info .collect::before {\n content: '';\n position: absolute;\n left: -15px;\n top: 0;\n width: 14px;\n height: 14px;\n background: url(\"~assets/img/common/collect.svg\") 0 0/14px 14px;\n}\n.p{\n font-size: 10px;\n} */\n\n</style>\n"]}]}