Commit 30063448 authored by youjie's avatar youjie

no message

parent f32528ec
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
<div class="f12 text-dark" :class="{ 'col-2': $q.platform.is.desktop, 'col-3': $q.platform.is.mobile }">{{ $t('v102.ticket.tt') }}:</div> <div class="f12 text-dark" :class="{ 'col-2': $q.platform.is.desktop, 'col-3': $q.platform.is.mobile }">{{ $t('v102.ticket.tt') }}:</div>
<div class="row items-center col wrap q-mt-md"> <div class="row items-center col wrap q-mt-md">
<div class="q-pa-sm rounded-borders q-mr-md q-mb-md cursor-pointer row items-center" :class="{ 'bg-grey-2': !x.checked, 'bg-primary text-white': x.checked }" @click="changeDetailListHandler(x)" v-for="x in types"> <div class="q-pa-sm rounded-borders q-mr-md q-mb-md cursor-pointer row items-center" :class="{ 'bg-grey-2': !x.checked, 'bg-primary text-white': x.checked }" @click="changeDetailListHandler(x)" v-for="x in types">
<template v-if="x.RemainingInventory>0"> <!-- v-if="x.RemainingInventory>0" -->
<template>
<span style="border-right: 1px solid #eee" class="q-mr-sm q-pr-sm">{{ x.TicketName }}</span> <span style="border-right: 1px solid #eee" class="q-mr-sm q-pr-sm">{{ x.TicketName }}</span>
<span>{{ x.B2BPrice.toFixed(2) }}</span> <span>{{ x.B2BPrice.toFixed(2) }}</span>
</template> </template>
...@@ -373,11 +374,12 @@ export default defineComponent({ ...@@ -373,11 +374,12 @@ export default defineComponent({
methods.getNum() methods.getNum()
}, },
getNum(){ getNum(){
data.types.forEach(x=>{ // 剩余门票数
if(x.num>x.RemainingInventory){ // data.types.forEach(x=>{
x.num = x.RemainingInventory // if(x.num>x.RemainingInventory){
} // x.num = x.RemainingInventory
}) // }
// })
setTimeout(()=>{ setTimeout(()=>{
methods.calcMoneyHandler() methods.calcMoneyHandler()
},50) },50)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment