|
@ -6,23 +6,8 @@ import { routeTo, showModal } from '@/utils/polish'; |
|
|
import { userCertificates } from "../api"; |
|
|
import { userCertificates } from "../api"; |
|
|
const ticketLs = ref([]); |
|
|
const ticketLs = ref([]); |
|
|
onLoad(() => { |
|
|
onLoad(() => { |
|
|
// tt.login({ |
|
|
|
|
|
// success() { |
|
|
|
|
|
// tt.showToast({ |
|
|
|
|
|
// title: '登录成功', |
|
|
|
|
|
// icon: 'success', |
|
|
|
|
|
// }); |
|
|
|
|
|
// }, |
|
|
|
|
|
// fail() { |
|
|
|
|
|
// tt.showToast({ |
|
|
|
|
|
// title: '登录失败', |
|
|
|
|
|
// icon: 'fail', |
|
|
|
|
|
// }); |
|
|
|
|
|
// }, |
|
|
|
|
|
// }); |
|
|
|
|
|
userCertificates({ |
|
|
userCertificates({ |
|
|
data: { |
|
|
data: { |
|
|
debug: 1, |
|
|
|
|
|
appid: tt.getEnvInfoSync()?.microapp?.appId ?? '', |
|
|
appid: tt.getEnvInfoSync()?.microapp?.appId ?? '', |
|
|
data: JSON.stringify({ |
|
|
data: JSON.stringify({ |
|
|
"account_id": "7419147144797358116", |
|
|
"account_id": "7419147144797358116", |
|
@ -41,28 +26,7 @@ function ticketClick(e){ |
|
|
let _ouxuan_group_purchase_info = certificates?.sku_info?.ouxuan_group_purchase_info ?? {}; |
|
|
let _ouxuan_group_purchase_info = certificates?.sku_info?.ouxuan_group_purchase_info ?? {}; |
|
|
let _merchandise_type = _ouxuan_group_purchase_info?.merchandise_type; |
|
|
let _merchandise_type = _ouxuan_group_purchase_info?.merchandise_type; |
|
|
if(![0, 1].includes(_merchandise_type))return showModal({ content: '无效的商品类型' }); |
|
|
if(![0, 1].includes(_merchandise_type))return showModal({ content: '无效的商品类型' }); |
|
|
// const _query = { |
|
|
|
|
|
// verifyToken: new Date().getTime() + '', |
|
|
|
|
|
// poiId: '7174984639059068985', |
|
|
|
|
|
// orderList: [{ |
|
|
|
|
|
// orderId: e.order_id, |
|
|
|
|
|
// certificateList: [{ |
|
|
|
|
|
// code: certificates.certificate_id, |
|
|
|
|
|
// times: 1 |
|
|
|
|
|
// }] |
|
|
|
|
|
// }], |
|
|
|
|
|
// orderEntrySchema: { |
|
|
|
|
|
// path: 'subpackage/order/pages/detail' |
|
|
|
|
|
// }, |
|
|
|
|
|
// complete(res){ |
|
|
|
|
|
// console.warn('verifyCertificates', res); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
// console.log('tt.verifyCertificates -->', _query) |
|
|
|
|
|
// tt.verifyCertificates(_query); |
|
|
|
|
|
|
|
|
|
|
|
// return |
|
|
|
|
|
|
|
|
|
|
|
let _ticketInfo = { |
|
|
let _ticketInfo = { |
|
|
expire_time: certificates?.expire_time ?? 0, |
|
|
expire_time: certificates?.expire_time ?? 0, |
|
|
dy_title: certificates?.sku_info?.title ?? '', |
|
|
dy_title: certificates?.sku_info?.title ?? '', |
|
|