acdr-ui/dist/dev/mp-weixin/sheep/ui/su-coupon/su-coupon.js.map

1 line
9.3 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"su-coupon.js","sources":["../../../../../../src/sheep/ui/su-coupon/su-coupon.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC91aS9zdS1jb3Vwb24vc3UtY291cG9uLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"ui-coupon-wrap\">\r\n <!-- xs: 一行三个,竖向 -->\r\n <view\r\n v-if=\"props.size === 'xs'\"\r\n class=\"xs-coupon-card ss-flex ss-flex-col ss-row-between\"\r\n :style=\"[cardStyle]\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/coupon/detail', {\r\n id: couponId,\r\n })\r\n \"\r\n >\r\n <view class=\"ss-flex ss-flex-col ss-row-center ss-col-center\">\r\n <view class=\"face-value-box ss-flex ss-col-bottom ss-m-t-50 ss-m-b-28\">\r\n <view class=\"value-text ss-m-r-4\">{{ type === 'reduce' ? value : Number(value) }}</view>\r\n <view class=\"value-unit\">{{ type === 'reduce' ? '元' : '折' }}</view>\r\n </view>\r\n <view class=\"title-text\">{{ props.title }}</view>\r\n </view>\r\n <view class=\"card-bottom ss-m-b-30 ss-flex ss-row-center\">\r\n <slot name=\"btn\">\r\n <button class=\"ss-reset-button card-btn\">{{ state.stateMap[props.state] }}</button>\r\n </slot>\r\n </view>\r\n </view>\r\n\r\n <!-- md: 一行两个,横向 -->\r\n <view\r\n v-if=\"props.size === 'md'\"\r\n class=\"md-coupon-card ss-flex ss-row-between\"\r\n :style=\"[cardStyle]\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/coupon/detail', {\r\n id: couponId,\r\n })\r\n \"\r\n >\r\n <view class=\"card-left ss-flex ss-flex-col ss-row-between ss-col-top ss-m-l-40\">\r\n <view class=\"face-value-box ss-flex ss-col-bottom ss-m-t-28\">\r\n <view class=\"value-text ss-m-r-4\">{{ type === 'reduce' ? value : Number(value) }}</view>\r\n <view class=\"value-unit\">{{ type === 'reduce' ? '元' : '折' }}</view>\r\n </view>\r\n <view class=\"ss-m-b-28\">\r\n <view class=\"title-text ss-m-b-10\">{{ props.title }}</view>\r\n <view class=\"surplus-text\" v-if=\"props.surplus\">仅剩:{{ props.surplus }}张</view>\r\n </view>\r\n </view>\r\n <view class=\"card-right ss-flex ss-row-center\">\r\n <slot name=\"btn\">\r\n <button class=\"ss-reset-button card-btn ss-flex ss-row-center ss-col-center\">\r\n <view class=\"btn-text\">{{ state.stateMap[props.state] }}</view>\r\n </button>\r\n </slot>\r\n </view>\r\n </view>\r\n\r\n <!-- lg: 一行一个,横向 -->\r\n <view\r\n v-if=\"props.size === 'lg'\"\r\n class=\"lg-coupon-card ss-flex ss-row-between\"\r\n :style=\"[cardStyle]\"\r\n @tap=\"\r\n sheep.$router.go('/modules/mall/coupon/detail', {\r\n id: couponId,\r\n })\r\n \"\r\n >\r\n <view class=\"card-left ss-flex ss-flex-col ss-row-between ss-col-top ss-m-l-40\">\r\n <view class=\"face-value-box ss-flex ss-col-bottom ss-m-t-28\">\r\n <view class=\"value-text ss-m-r-4\">{{ type === 'reduce' ? value : Number(value) }}</view>\r\n <view class=\"value-unit\">{{ type === 'reduce' ? '元' : '折' }}</view>\r\n </view>\r\n <view class=\"ss-m-b-20\">\r\n <view class=\"title-text ss-m-b-10\">{{ props.title }}</view>\r\n <view class=\"sellby-text\">有效期:{{ props.sellBy }}</view>\r\n </view>\r\n </view>\r\n <view class=\"card-right ss-flex ss-flex-col ss-col-center ss-row-center\">\r\n <slot name=\"btn\">\r\n <button class=\"ss-reset-button card-btn ss-flex ss-row-center ss-col-center\">\r\n {{ state.stateMap[props.state] }}\r\n </button>\r\n </slot>\r\n <view class=\"surplus-text ss-m-t-24\" v-if=\"props.surplus\">仅剩:{{ props.surplus }}张</view>\r\n </view>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\n/**\r\n * 优惠券 卡片\r\n *\r\n * @property {S