调试接口
This commit is contained in:
@ -1,22 +1,45 @@
|
||||
<template>
|
||||
<view class="p-30rpx rounded-16rpx mb-20rpx bg-white" @click="onCheck(coupon.id)">
|
||||
<view class="flex justify-between items-start relative ">
|
||||
<view class="w-180rpx h-180rpx">
|
||||
<wd-img width="100%" height="100%" :src="coupon.tea_store_group.img"></wd-img>
|
||||
</view>
|
||||
<view class="flex-1 ml-32rpx line-1" :class="canUse ? '' : 'opacity-40'">
|
||||
<view class="text-32rpx text-[#303133] leading-44rpx line-1 w-350rpx">{{ coupon.tea_store_group.title }}</view>
|
||||
<view class="text-26rpx text-[#6A6363] leading-36rpx mt-30rpx flex">
|
||||
<view class="line-1">{{ coupon.store_msg.name }}</view>
|
||||
<view class="mx-14rpx">|</view>
|
||||
<view>{{ coupon.tea_store_group.hour }}小时</view>
|
||||
<template v-if="couponType == 'coupon'">
|
||||
<view class="flex justify-between items-start relative ">
|
||||
<view class="w-180rpx h-180rpx">
|
||||
<wd-img width="100%" height="100%" :src="coupon.tea_store_group.img"></wd-img>
|
||||
</view>
|
||||
<view class="flex-1 ml-32rpx line-1" :class="canUse ? '' : 'opacity-40'">
|
||||
<view class="text-32rpx text-[#303133] leading-44rpx line-1 w-350rpx">{{ coupon.tea_store_group.title }}</view>
|
||||
<view class="text-26rpx text-[#6A6363] leading-36rpx mt-30rpx flex">
|
||||
<view class="line-1">{{ coupon.store_msg.name }}</view>
|
||||
<view class="mx-14rpx">|</view>
|
||||
<view>{{ coupon.tea_store_group.hour }}小时</view>
|
||||
</view>
|
||||
<!-- <view class="text-24rpx leading-34rpx text-[#909399] mt-16rpx">有效期:2025-01-01至2025-05-05</view> -->
|
||||
</view>
|
||||
<view>
|
||||
<wd-radio :value="coupon.id" shape="dot" :disabled="!canUse"></wd-radio>
|
||||
</view>
|
||||
<!-- <view class="text-24rpx leading-34rpx text-[#909399] mt-16rpx">有效期:2025-01-01至2025-05-05</view> -->
|
||||
</view>
|
||||
<view>
|
||||
<wd-radio :value="coupon.id" shape="dot" :disabled="!canUse"></wd-radio>
|
||||
</template>
|
||||
|
||||
<template v-if="couponType == 'groupCoupon'">
|
||||
<view class="flex justify-between items-start relative ">
|
||||
<view class="w-180rpx h-180rpx">
|
||||
<wd-img width="100%" height="100%" :src="coupon?.img" radius="16rpx"></wd-img>
|
||||
</view>
|
||||
<view class="flex-1 ml-32rpx line-1" :class="canUse ? '' : 'opacity-40'">
|
||||
<view class="text-32rpx text-[#303133] leading-44rpx line-1 w-350rpx">{{ coupon?.title }}</view>
|
||||
<view class="text-26rpx text-[#6A6363] leading-36rpx mt-30rpx flex">
|
||||
<view class="line-1 w-150rpx">{{ coupon.store_msg.name }}</view>
|
||||
<view class="mx-14rpx">|</view>
|
||||
<view>{{ coupon?.hour }}小时</view>
|
||||
</view>
|
||||
<!-- TODO暂时隐藏 -->
|
||||
<!-- <view class="text-24rpx leading-34rpx text-[#909399] mt-16rpx">有效期:2025-01-01至2025-05-05</view> -->
|
||||
</view>
|
||||
<view>
|
||||
<wd-radio :value="coupon.id" shape="dot" :disabled="!canUse"></wd-radio>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -41,10 +64,14 @@
|
||||
}
|
||||
store_msg: {
|
||||
name: string
|
||||
}
|
||||
},
|
||||
img?: string //兼容团购优惠券-图片
|
||||
title?: string //兼容团购优惠券-团购券标题
|
||||
hour?: number //兼容团购优惠券-使用时长
|
||||
}
|
||||
canUse: boolean
|
||||
checked: boolean
|
||||
couponType: string
|
||||
onCheck: (id: number) => void
|
||||
}>()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user