|
|
@@ -1,6 +1,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { computed, ref } from 'vue'
|
|
|
import ShortLinkModal from '@/components/ShortLinkModal.vue'
|
|
|
+import { getLastPartAfterSlash } from '@/utils/couponClassFormat'
|
|
|
import { getImageUrl } from '@/utils/imageUtil'
|
|
|
import { useCouponShare } from '../hooks/useCouponShare'
|
|
|
|
|
|
@@ -28,11 +29,13 @@ const deadline = computed(() => {
|
|
|
|
|
|
const category = computed(() => {
|
|
|
const relatedType = props.coupon.relatedType
|
|
|
+ const relatedName = getLastPartAfterSlash(props.coupon.relatedName)
|
|
|
+ console.log(props.coupon.relatedName, relatedName)
|
|
|
if (relatedType === '1') {
|
|
|
- return `限${props.coupon.relatedName}分类商品使用`
|
|
|
+ return `限${relatedName}分类商品使用`
|
|
|
}
|
|
|
else {
|
|
|
- return `限${props.coupon.relatedName}商品使用`
|
|
|
+ return `限${relatedName}商品使用`
|
|
|
}
|
|
|
})
|
|
|
// 分享弹窗相关 - 使用v-model控制弹窗显示
|
|
|
@@ -185,10 +188,10 @@ function handleCloseShareModal() {
|
|
|
width: 68%;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+ justify-content: space-evenly;
|
|
|
padding-left: 18rpx;
|
|
|
|
|
|
.coupon-info-category {
|
|
|
- padding-top: 33rpx;
|
|
|
font-weight: 400;
|
|
|
font-size: 32rpx;
|
|
|
color: #333333;
|