acdr-ui/dist/dev/mp-weixin/sheep/components/s-discount-list/s-discount-list.js.map

1 line
4.1 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"s-discount-list.js","sources":["../../../../../../src/sheep/components/s-discount-list/s-discount-list.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC9jb21wb25lbnRzL3MtZGlzY291bnQtbGlzdC9zLWRpc2NvdW50LWxpc3QudnVl"],"sourcesContent":["<template>\r\n <su-popup\r\n :show=\"show\"\r\n type=\"bottom\"\r\n round=\"20\"\r\n @close=\"emits('close')\"\r\n showClose\r\n backgroundColor=\"#f2f2f2\"\r\n >\r\n <view class=\"model-box\">\r\n <view class=\"title ss-m-t-38 ss-m-l-20 ss-m-b-40\">活动优惠</view>\r\n <scroll-view\r\n class=\"model-content ss-m-l-20\"\r\n scroll-y\r\n :scroll-with-animation=\"false\"\r\n :enable-back-to-top=\"true\"\r\n >\r\n <view v-for=\"(item, index) in state.orderInfo.promo_infos\" :key=\"index\">\r\n <view class=\"ss-flex ss-m-b-40 subtitle\">\r\n <view>共{{ item.goods_ids.length }}件,</view>\r\n <view v-if=\"item.activity_type === 'full_discount'\">\r\n 满{{ item.discount_rule.full }}打{{ item.discount_rule.discount }}折,已减\r\n </view>\r\n <view v-if=\"item.activity_type === 'full_gift'\">满赠</view>\r\n <view v-if=\"item.activity_type === 'full_reduce'\">\r\n 满{{ item.discount_rule.full }}减{{ item.discount_rule.discount }},已减\r\n </view>\r\n <view class=\"price-text\">¥{{ item.promo_discount_money || '0.00' }}</view>\r\n </view>\r\n <scroll-view class=\"scroll-box\" scroll-x scroll-anchoring>\r\n <view class=\"ss-flex\">\r\n <view v-for=\"i in item.goods_ids\" :key=\"i\">\r\n <image class=\"content-img\" :src=\"sheep.$url.cdn(getGoodsImg(i))\" />\r\n </view>\r\n </view>\r\n </scroll-view>\r\n </view>\r\n </scroll-view>\r\n </view>\r\n <view class=\"modal-footer ss-flex\">\r\n <button class=\"confirm-btn ss-reset-button\" @tap=\"emits('close')\">确认</button>\r\n </view>\r\n </su-popup>\r\n</template>\r\n<script setup>\r\nimport { computed, reactive } from 'vue'\r\nimport sheep from '@/sheep'\r\nconst props = defineProps({\r\n promoInfo: {\r\n type: Array,\r\n default: () => [],\r\n },\r\n goodsList: {\r\n type: Array,\r\n default: () => [],\r\n },\r\n modelValue: {\r\n type: Object,\r\n default() {},\r\n },\r\n show: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n})\r\nconst emits = defineEmits(['close'])\r\nconst state = reactive({\r\n orderInfo: computed(() => props.modelValue),\r\n})\r\nconst getGoodsImg = (e) => {\r\n let goodsImg = ''\r\n state.orderInfo.goods_list.forEach((i) => {\r\n if (e == i.goods_id) {\r\n goodsImg = i.goods.image\r\n }\r\n })\r\n return goodsImg\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n \r\n.model-box {\r\n height: 60vh;\r\n}\r\n.model-content {\r\n height: 54vh;\r\n}\r\n.modal-footer {\r\n width: 100%;\r\n height: 120rpx;\r\n background: #fff;\r\n}\r\n.confirm-btn {\r\n width: 710rpx;\r\n height: 80rpx;\r\n margin-left: 20rpx;\r\n color: #fff;\r\n background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));\r\n border-radius: 40rpx;\r\n}\r\n.content-img {\r\n width: 140rpx;\r\n height: 140rpx;\r\n margin-right: 20rpx;\r\n margin-bottom: 20rpx;\r\n}\r\n.subtitle {\r\n font-size: 28rpx;\r\n font-weight: 500;\r\n color: #333333;\r\n}\r\n.price-text {\r\n color: #ff3000;\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/sheep/components/s-discount-list/s-discount-list.vue'\nwx.createComponent(Component)"],"names":["reactive","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,UAAM,QAAQ;AAkBd,UAAM,QAAQ;AACd,UAAM,QAAQA,cAAAA,SAAS;AAAA,MACrB,WAAWC,cAAQ,SAAC,MAAM,MAAM,UAAU;AAAA,IAC5C,CAAC;AACD,UAAM,cAAc,CAAC,MAAM;AACzB,UAAI,WAAW;AACf,YAAM,UAAU,WAAW,QAAQ,CAAC,MAAM;AACxC,YAAI,KAAK,EAAE,UAAU;AACnB,qBAAW,EAAE,MAAM;AAAA,QACpB;AAAA,MACL,CAAG;AACD,aAAO;AAAA,IACT;;