调试接口
This commit is contained in:
@ -33,6 +33,7 @@
|
||||
showChecked
|
||||
:checked="item.id === checkedId"
|
||||
:onCheck="Coupons.handleCheck"
|
||||
couponType="coupon"
|
||||
:class="index !== couponList.use.length - 1 ? 'mb-20rpx' : ''"
|
||||
></coupon>
|
||||
</wd-radio-group>
|
||||
@ -51,6 +52,7 @@
|
||||
:coupon="item"
|
||||
:canUse="false"
|
||||
showChecked
|
||||
couponType="coupon"
|
||||
:checked="item.id === checkedId"
|
||||
:onCheck="Coupons.handleCheck"
|
||||
:class="index !== couponList.no_use.length - 1 ? 'mb-20rpx' : ''"
|
||||
@ -65,7 +67,7 @@
|
||||
<view class="mx-30rpx">
|
||||
<view class="mx30rpx">
|
||||
<text class="text-[#303133] font-bold text-30rpx leading-42rpx">可用团购券</text>
|
||||
<text class="text-[#606266] font-400 text-28rpx leading-40rpx ml-24rpx">2张</text>
|
||||
<text class="text-[#606266] font-400 text-28rpx leading-40rpx ml-24rpx">{{ groupCouponList.length }}张</text>
|
||||
</view>
|
||||
<view class="mt-28rpx radio">
|
||||
<wd-radio-group v-model="checkedId" size="large" checked-color="#4C9F44">
|
||||
@ -74,6 +76,7 @@
|
||||
:key="item.id"
|
||||
:coupon="item"
|
||||
canUse
|
||||
couponType="groupCoupon"
|
||||
:checked="item.id === checkedId"
|
||||
:onCheck="Coupons.handleCheck"
|
||||
:class="index !== groupCouponList.length - 1 ? 'mb-20rpx' : ''"
|
||||
@ -128,7 +131,7 @@
|
||||
no_use: [],
|
||||
use: []
|
||||
})
|
||||
const groupCouponList = ref<any>()
|
||||
const groupCouponList = ref<Array<any>>([])
|
||||
const checkedId = ref<number>(0)
|
||||
|
||||
const unCouponList = ref([
|
||||
@ -141,6 +144,7 @@
|
||||
|
||||
onLoad((args) => {
|
||||
teaRoomId.value = args.id
|
||||
console.log("🚀 ~ teaRoomId.value:", teaRoomId.value)
|
||||
storeId.value = args.storeId || 0
|
||||
couponType.value = args.type // 1:优惠券 2:团购券
|
||||
|
||||
@ -168,7 +172,9 @@
|
||||
* 初始化团购券列表
|
||||
*/
|
||||
handleInitGroupCoupon: async (id: number, numbers: number) => {
|
||||
const res = await getTeaRoomGroupCouponList({store_id: storeId.value})
|
||||
console.log("🚀 ~ teaRoomId.value2:", teaRoomId.value)
|
||||
|
||||
const res = await getTeaRoomGroupCouponList({store_id: storeId.value, room_id: teaRoomId.value})
|
||||
groupCouponList.value = res.list
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user