|
|
@ -24,18 +24,27 @@ onLoad(() => { |
|
|
|
|
|
|
|
function ticketClick(e){ |
|
|
|
let [ certificates ] = e?.certificates || []; |
|
|
|
let _ouxuan_group_purchase_info = certificates?.sku_info?.ouxuan_group_purchase_info ?? {}; |
|
|
|
let _merchandise_type = _ouxuan_group_purchase_info?.merchandise_type; |
|
|
|
if(![0, 1].includes(_merchandise_type))return showModal({ content: '无效的商品类型' }); |
|
|
|
let _ticketInfo = { |
|
|
|
order_id: e?.order_id ?? '', |
|
|
|
expire_time: certificates?.expire_time ?? 0, |
|
|
|
dy_title: certificates?.sku_info?.title ?? '', |
|
|
|
merchandise_name: _ouxuan_group_purchase_info?.merchandise_name ?? '', |
|
|
|
// merchandise_type 1-> 订场,0-> 次卡 |
|
|
|
merchandise_type: _ouxuan_group_purchase_info?.merchandise_type, |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tt.verifyCertificates({ |
|
|
|
verifyToken: uni.getStorageSync('token'), |
|
|
|
poiId: 7419147144797358116 +'', |
|
|
|
orderList: [{ |
|
|
|
orderId: e.order_id, |
|
|
|
certificateList: [{ |
|
|
|
code: certificates.certificate_id, |
|
|
|
times: 1 |
|
|
|
}] |
|
|
|
}], |
|
|
|
orderEntrySchema: { |
|
|
|
path: '' |
|
|
|
}, |
|
|
|
complete(res){ |
|
|
|
console.warn('verifyCertificates', res); |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
return |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subpackage/groupon/pages/stadiums`, |
|
|
|
success: res => { |
|
|
@ -50,6 +59,7 @@ function ticketClick(e){ |
|
|
|
<template> |
|
|
|
<view class="groupon-list"> |
|
|
|
<view class="gl-item" v-for="(e, i) in ticketLs" :key="i"> |
|
|
|
<button @click="ticketClick(e)">使用</button> |
|
|
|
<ticket-item |
|
|
|
isUseBtn |
|
|
|
:ticketName="e?.certificates?.[0]?.sku_info?.title ?? ''" |
|
|
|