1 line
3.6 KiB
Plaintext
1 line
3.6 KiB
Plaintext
|
{"version":3,"file":"detail-activity-tip.js","sources":["../../../../../../../../src/modules/mall/goods/components/detail/detail-activity-tip.vue","../../../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9tb2R1bGVzL21hbGwvZ29vZHMvY29tcG9uZW50cy9kZXRhaWwvZGV0YWlsLWFjdGl2aXR5LXRpcC52dWU"],"sourcesContent":["<template>\r\n <su-fixed bottom placeholder :val=\"44\">\r\n <view>\r\n <view v-for=\"activity in props.activityList\" :key=\"activity.id\">\r\n <!-- TODO 芋艿:拼团 -->\r\n <view\r\n class=\"activity-box ss-p-x-38 ss-flex ss-row-between ss-col-center\"\r\n :class=\"activity.type === 1 ? 'seckill-box' : 'groupon-box'\"\r\n >\r\n <view class=\"activity-title ss-flex\">\r\n <view class=\"ss-m-r-16\">\r\n <image\r\n v-if=\"activity.type === 1\"\r\n :src=\"sheep.$url.static('/static/img/shop/goods/seckill-icon.png')\"\r\n class=\"activity-icon\"\r\n />\r\n <!-- TODO 芋艿:拼团 -->\r\n <image\r\n v-else-if=\"activity.type === 3\"\r\n :src=\"sheep.$url.static('/static/img/shop/goods/groupon-icon.png')\"\r\n class=\"activity-icon\"\r\n />\r\n </view>\r\n <view>该商品正在参与{{ activity.name }}活动</view>\r\n </view>\r\n <button class=\"ss-reset-button activity-go\" @tap=\"onActivity(activity)\">GO</button>\r\n </view>\r\n </view>\r\n </view>\r\n </su-fixed>\r\n</template>\r\n\r\n<script setup>\r\nimport sheep from '@/sheep'\r\n\r\n// TODO 芋艿:这里要迁移下;\r\nconst seckillBg = sheep.$url.css('/static/img/shop/goods/seckill-tip-bg.png')\r\nconst grouponBg = sheep.$url.css('/static/img/shop/goods/groupon-tip-bg.png')\r\n\r\nconst props = defineProps({\r\n activityList: {\r\n type: Array,\r\n default() {\r\n return []\r\n },\r\n },\r\n})\r\n\r\nfunction onActivity(activity) {\r\n const type = activity.type\r\n const typePath = type === 1 ? 'seckill' : type === 2 ? 'TODO 拼团' : 'groupon'\r\n sheep.$router.go(`/modules/mall/goods/${typePath}`, {\r\n id: activity.id,\r\n })\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n \r\n.activity-box {\r\n box-sizing: border-box;\r\n width: 100%;\r\n height: 80rpx;\r\n margin-bottom: 10rpx;\r\n\r\n .activity-title {\r\n font-size: 26rpx;\r\n font-weight: 500;\r\n line-height: 42rpx;\r\n color: #ffffff;\r\n\r\n .activity-icon {\r\n width: 38rpx;\r\n height: 38rpx;\r\n }\r\n }\r\n\r\n .activity-go {\r\n width: 70rpx;\r\n height: 32rpx;\r\n font-size: 24rpx;\r\n font-weight: 500;\r\n line-height: normal;\r\n color: #ff6000;\r\n background: #ffffff;\r\n border-radius: 16rpx;\r\n }\r\n}\r\n\r\n//秒杀卡片\r\n.seckill-box {\r\n background: v-bind(seckillBg) no-repeat;\r\n background-size: 100% 100%;\r\n}\r\n\r\n.groupon-box {\r\n background: v-bind(grouponBg) no-repeat;\r\n background-size: 100% 100%;\r\n}\r\n</style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/modules/mall/goods/components/detail/detail-activity-tip.vue'\nwx.createComponent(Component)"],"names":["sheep"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,YAAYA,YAAK,MAAC,KAAK,IAAI,2CAA2C;AAC5E,UAAM,YAAYA,YAAK,MAAC,KAAK,IAAI,2CAA2C;AAE5E,UAAM,QAAQ;AASd,aAAS,WAAW,UAAU;AAC5B,YAAM,OAAO,SAAS;AACtB,YAAM,WAAW,SAAS,IAAI,YAAY,SAAS,IAAI,YAAY;AACnEA,kBAAK,MAAC,QAAQ,GAAG,uBAAuB,QAAQ,IAAI;AAAA,QAClD,IAAI,SAAS;AAAA,MACjB,CAAG;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrDA,GAAG,gBAAgB,SAAS;"}
|