| 1 |
- {"remainingRequest":"D:\\front\\item\\zyAdmin\\node_modules\\babel-loader\\lib\\index.js!D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\front\\item\\zyAdmin\\src\\pages\\kefu\\pc\\components\\goods_detail.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\front\\item\\zyAdmin\\src\\pages\\kefu\\pc\\components\\goods_detail.vue","mtime":1761614939025},{"path":"D:\\front\\item\\zyAdmin\\babel.config.js","mtime":1761614925168},{"path":"D:\\front\\item\\zyAdmin\\.babelrc","mtime":1761614925165},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\babel-loader\\lib\\index.js","mtime":1761614927320},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1761614927801},{"path":"D:\\front\\item\\zyAdmin\\node_modules\\vue-loader\\lib\\index.js","mtime":1761614937402}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMubnVtYmVyLmNvbnN0cnVjdG9yLmpzIjsKaW1wb3J0IHsgSGFwcHlTY3JvbGwgfSBmcm9tICd2dWUtaGFwcHktc2Nyb2xsJzsKaW1wb3J0IHsgcHJvZHVjdEluZm8gfSBmcm9tICdAL2FwaS9rZWZ1JzsKZXhwb3J0IGRlZmF1bHQgewogIG5hbWU6ICdnb29kc19kZXRhaWwnLAogIHByb3BzOiB7CiAgICBnb29kc0lkOiB7CiAgICAgIHR5cGU6IFN0cmluZyB8IE51bWJlciwKICAgICAgZGVmYXVsdDogJycKICAgIH0KICB9LAogIGNvbXBvbmVudHM6IHsKICAgIEhhcHB5U2Nyb2xsOiBIYXBweVNjcm9sbAogIH0sCiAgZGF0YTogZnVuY3Rpb24gZGF0YSgpIHsKICAgIHJldHVybiB7CiAgICAgIHZhbHVlMjogMCwKICAgICAgZ29vZHNJbmZvOiB7fQogICAgfTsKICB9LAogIG1vdW50ZWQ6IGZ1bmN0aW9uIG1vdW50ZWQoKSB7CiAgICB0aGlzLmdldEluZm8oKTsKICB9LAogIG1ldGhvZHM6IHsKICAgIGdldEluZm86IGZ1bmN0aW9uIGdldEluZm8oKSB7CiAgICAgIHZhciBfdGhpcyA9IHRoaXM7CiAgICAgIHByb2R1Y3RJbmZvKHRoaXMuZ29vZHNJZCkudGhlbihmdW5jdGlvbiAocmVzKSB7CiAgICAgICAgX3RoaXMuZ29vZHNJbmZvID0gcmVzLmRhdGE7CiAgICAgIH0pOwogICAgfQogIH0KfTs="},{"version":3,"names":["HappyScroll","productInfo","name","props","goodsId","type","String","Number","default","components","data","value2","goodsInfo","mounted","getInfo","methods","_this","then","res"],"sources":["src/pages/kefu/pc/components/goods_detail.vue"],"sourcesContent":["<template>\r\n <div class=\"goods_detail\">\r\n <div class=\"goods_detail_wrapper\" style=\"height: 640px\">\r\n <HappyScroll size=\"5\" resize hide-horizontal>\r\n <div style=\"width: 375px\">\r\n <div class=\"title-box\">商品详情</div>\r\n <div class=\"swiper-box\">\r\n <el-carousel autoplay v-model=\"value2\" loop arrow=\"never\">\r\n <el-carousel-item v-for=\"(item, index) in goodsInfo.slider_image\" :key=\"index\">\r\n <div class=\"demo-carousel\"><img :src=\"item\" alt=\"\" /></div>\r\n </el-carousel-item>\r\n </el-carousel>\r\n </div>\r\n <div class=\"goods_info\">\r\n <div class=\"number-wrapper\">\r\n <div class=\"price\"><span>¥</span>{{ goodsInfo.price }}</div>\r\n <div class=\"old-price\">\r\n ¥{{ goodsInfo.vip_price }} <img src=\"@/assets/images/goods_vip.png\" alt=\"\" width=\"28\" />\r\n </div>\r\n </div>\r\n <div class=\"name\">{{ goodsInfo.store_name }}</div>\r\n <div class=\"msg\">\r\n <div class=\"item\">原价:¥{{ goodsInfo.ot_price }}</div>\r\n <div class=\"item\">销量:{{ goodsInfo.sales }}</div>\r\n <div class=\"item\">库存:{{ goodsInfo.stock }}</div>\r\n </div>\r\n </div>\r\n <div class=\"con-box\">\r\n <div class=\"title-box\">商品介绍</div>\r\n <div class=\"content\" v-html=\"goodsInfo.description\"></div>\r\n </div>\r\n </div>\r\n </HappyScroll>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { HappyScroll } from 'vue-happy-scroll';\r\nimport { productInfo } from '@/api/kefu';\r\nexport default {\r\n name: 'goods_detail',\r\n props: {\r\n goodsId: {\r\n type: String | Number,\r\n default: '',\r\n },\r\n },\r\n components: {\r\n HappyScroll,\r\n },\r\n data() {\r\n return {\r\n value2: 0,\r\n goodsInfo: {},\r\n };\r\n },\r\n mounted() {\r\n this.getInfo();\r\n },\r\n methods: {\r\n getInfo() {\r\n productInfo(this.goodsId).then((res) => {\r\n this.goodsInfo = res.data;\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.goods_detail {\r\n .goods_detail_wrapper {\r\n z-index: 101;\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n width: 375px;\r\n background: #f0f2f5;\r\n }\r\n .title-box {\r\n height: 46px;\r\n line-height: 46px;\r\n background: #fff;\r\n text-align: center;\r\n color: #333;\r\n font-size: 16px;\r\n }\r\n .swiper-box {\r\n height: 375px;\r\n .demo-carousel {\r\n width: 375px;\r\n height: 375px;\r\n img {\r\n width: 100%;\r\n height: 100%;\r\n display: block;\r\n }\r\n }\r\n }\r\n .goods_info {\r\n padding: 15px;\r\n background: #fff;\r\n .number-wrapper {\r\n display: flex;\r\n align-items: center;\r\n .price {\r\n color: #ff3838;\r\n font-size: 25px;\r\n span {\r\n font-size: 15px;\r\n }\r\n }\r\n .old-price {\r\n font-size: 15px;\r\n margin-left: 10px;\r\n color: #333333;\r\n }\r\n }\r\n .name {\r\n font-size: 16px;\r\n color: #333;\r\n }\r\n .msg {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n margin-top: 10px;\r\n .item {\r\n color: #999999;\r\n font-size: 14px;\r\n }\r\n }\r\n }\r\n .con-box {\r\n margin-top: 10px;\r\n padding-bottom: 20px;\r\n }\r\n .content {\r\n width: 100%;\r\n img {\r\n max-width: 100%;\r\n display: block;\r\n }\r\n }\r\n}\r\n</style>\r\n"],"mappings":";AAsCA,SAAAA,WAAA;AACA,SAAAC,WAAA;AACA;EACAC,IAAA;EACAC,KAAA;IACAC,OAAA;MACAC,IAAA,EAAAC,MAAA,GAAAC,MAAA;MACAC,OAAA;IACA;EACA;EACAC,UAAA;IACAT,WAAA,EAAAA;EACA;EACAU,IAAA,WAAAA,KAAA;IACA;MACAC,MAAA;MACAC,SAAA;IACA;EACA;EACAC,OAAA,WAAAA,QAAA;IACA,KAAAC,OAAA;EACA;EACAC,OAAA;IACAD,OAAA,WAAAA,QAAA;MAAA,IAAAE,KAAA;MACAf,WAAA,MAAAG,OAAA,EAAAa,IAAA,WAAAC,GAAA;QACAF,KAAA,CAAAJ,SAAA,GAAAM,GAAA,CAAAR,IAAA;MACA;IACA;EACA;AACA","ignoreList":[]}]}
|