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
4.1 KiB
1 line
4.1 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/detail/childComps/DetailBottomBar.vue?vue&type=script&lang=js&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/views/detail/childComps/DetailBottomBar.vue","mtime":1617881896037},{"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/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/babel-loader/lib/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:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAiRGV0YWlsQm90dG9tQmFyIiwKICBtZXRob2RzOiB7CiAgICBhZGRUb0NhcnQoKSB7CiAgICAgIGNvbnN0IHRva2VuID0gd2luZG93LmxvY2FsU3RvcmFnZS5nZXRJdGVtKCJ0b2tlbiIpOwogICAgICBpZiAodG9rZW4pIHsKICAgICAgICB0aGlzLiRlbWl0KCJhZGRUb0NhcnQiKTsKICAgICAgfSBlbHNlIHsKICAgICAgICB0aGlzLiRyb3V0ZXIucHVzaCgiL2xvZ2luIik7CiAgICAgIH0KICAgIH0sCiAgICBidWd0aGluZygpIHsKICAgICAgY29uc3QgdG9rZW4gPSB3aW5kb3cubG9jYWxTdG9yYWdlLmdldEl0ZW0oInRva2VuIik7CiAgICAgIGlmICh0b2tlbikgewogICAgICAgIHRoaXMuJGVtaXQoImJ1Z3RoaW5nIik7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgdGhpcy4kcm91dGVyLnB1c2goIi9sb2dpbiIpOwogICAgICB9CiAgICB9CiAgfQp9Owo="},{"version":3,"sources":["DetailBottomBar.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"DetailBottomBar.vue","sourceRoot":"src/views/detail/childComps","sourcesContent":["<template>\n <div class=\"bottom-bar\">\n <div class=\"bar-item bar-left\">\n <div>\n <img src=\"@/assets/img/detail/chat.svg\" alt=\"\">\n <span class=\"text\">客服</span>\n </div>\n <div>\n <i class=\"icon shop\"></i>\n <span class=\"text\">店铺</span>\n </div>\n <div>\n <i class=\"icon select\"></i>\n <span class=\"text\">收藏</span>\n </div>\n </div>\n <div class=\"bar-item bar-right\">\n <div class=\"cart\" @click=\"addToCart\">加入购物车</div>\n <div class=\"buy\" @click=\"bugthing\">立刻购买</div>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"DetailBottomBar\",\n methods: {\n addToCart() {\n const token = window.localStorage.getItem(\"token\");\n if (token) {\n this.$emit(\"addToCart\");\n } else {\n this.$router.push(\"/login\");\n }\n },\n bugthing() {\n const token = window.localStorage.getItem(\"token\");\n if (token) {\n this.$emit(\"bugthing\");\n } else {\n this.$router.push(\"/login\");\n }\n }\n }\n};\n</script>\n\n<style scoped>\n\n.bottom-bar img{\n width: 22px;\n height: 22px;\n display: block;\n margin: 10px auto 3px;\n}\n\n.bottom-bar {\n height: 58px;\n position: fixed;\n background-color: #fff;\n left: 0;\n right: 0;\n bottom: 0;\n\n display: flex;\n text-align: center;\n}\n\n.bar-item {\n flex: 1;\n display: flex;\n}\n\n.bar-item > div {\n flex: 1;\n}\n\n.bar-left .text {\n font-size: 13px;\n}\n\n.bar-left .icon {\n display: block;\n width: 22px;\n height: 22px;\n margin: 10px auto 3px;\n background: url(\"~assets/img/detail/detail_bottom.png\") 0 0/100%;\n}\n\n.bar-left .service {\n background-position: 0 -54px;\n}\n\n.bar-left .shop {\n background-position: 0 -98px;\n}\n\n.bar-right {\n font-size: 15px;\n color: #fff;\n line-height: 58px;\n}\n\n.bar-right .cart {\n background-color: #fc5a5a;\n color: #fff;\n}\n\n.bar-right .buy {\n color: #fff;\n background-color: #3c3f51;\n}\n</style>\n"]}]} |