1 line
2.4 KiB
Plaintext
1 line
2.4 KiB
Plaintext
|
{"version":3,"file":"second-one.js","sources":["../../../../../../../src/modules/mall/index/components/second-one.vue","../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9tb2R1bGVzL21hbGwvaW5kZXgvY29tcG9uZW50cy9zZWNvbmQtb25lLnZ1ZQ"],"sourcesContent":["<!-- 分类展示:second-one 风格 -->\r\n<template>\r\n <view>\r\n <!-- 一级分类的名字 -->\r\n <view class=\"title-box ss-flex ss-col-center ss-row-center ss-p-b-30\">\r\n <view class=\"title-line-left\" />\r\n <view class=\"title-text ss-p-x-20\">{{ props.data[activeMenu].name }}</view>\r\n <view class=\"title-line-right\" />\r\n </view>\r\n <!-- 二级分类的名字 -->\r\n <view class=\"goods-item-box ss-flex ss-flex-wrap ss-p-b-20\">\r\n <view\r\n class=\"goods-item\"\r\n v-for=\"item in props.data[activeMenu].children\"\r\n :key=\"item.id\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/goods/list', {\r\n categoryId: item.id,\r\n })\r\n \"\r\n >\r\n <image class=\"goods-img\" :src=\"item.picUrl\" mode=\"aspectFill\" />\r\n <view class=\"ss-p-10\">\r\n <view class=\"goods-title ss-line-1\">{{ item.name }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nimport sheep from '@/sheep'\r\n\r\nconst props = defineProps({\r\n data: {\r\n type: Object,\r\n default: () => ({}),\r\n },\r\n activeMenu: [Number, String],\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.title-box {\r\n .title-line-left,\r\n .title-line-right {\r\n width: 15px;\r\n height: 1px;\r\n background: #d2d2d2;\r\n }\r\n}\r\n\r\n.goods-item {\r\n width: calc((100% - 20px) / 3);\r\n margin-right: 10px;\r\n margin-bottom: 10px;\r\n\r\n &:nth-of-type(3n) {\r\n margin-right: 0;\r\n }\r\n\r\n .goods-img {\r\n width: calc((100vw - 140px) / 3);\r\n height: calc((100vw - 140px) / 3);\r\n }\r\n\r\n .goods-title {\r\n font-size: 26rpx;\r\n font-weight: bold;\r\n line-height: 40rpx;\r\n color: #333333;\r\n text-align: center;\r\n }\r\n\r\n .goods-price {\r\n line-height: 40rpx;\r\n color: $red;\r\n }\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/modules/mall/index/components/second-one.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;AAiCA,UAAM,QAAQ;;;;;;;;;;;;;;;;;;;AChCd,GAAG,gBAAgB,SAAS;"}
|