15410946 by zhangmeng

购票价格

1 parent b738561d
......@@ -129,6 +129,13 @@
{{
language == 0 ? (price.total_cn * 1).toFixed(2) : (price.total_en * 1).toFixed(2)
}}
<span v-if="tickType.isCountSale==1&&orderForm.message.length>=tickType.counts" class="total">
{{ language == 0 ? "¥" : "€" }}
{{
language == 0 ? (price.total_cnY * 1).toFixed(2) : (price.total_enY * 1).toFixed(2)
}}
</span>
</div>
</div>
</div>
......@@ -202,7 +209,9 @@ const orderForm = ref({
})
const price = ref({
total_en: 0,
total_cn: 0
total_cn: 0,
total_enY: 0,
total_cnY: 0,
})
const tickType = ref({})
const matchType = ref({})
......@@ -250,15 +259,18 @@ function changeGroup(e) {
// 计算价格
price.value = {
total_en: 0,
total_cn: 0
total_cn: 0,
total_enY: 0,
total_cnY: 0,
}
orderForm.value.message.forEach(v => {
if (v.discount) {
price.value.total_cn += (tickType.value.rebatePrice * 1)
price.value.total_en += (tickType.value.rebatePriceEn * 1)
price.value.total_cnY = price.value.total_cn += (tickType.value.rebatePrice * 1)
price.value.total_enY = price.value.total_en += (tickType.value.rebatePriceEn * 1)
} else {
price.value.total_cn += (tickType.value.price * 1)
price.value.total_en += (tickType.value.priceEn * 1)
price.value.total_cnY = price.value.total_cn += (tickType.value.price * 1)
price.value.total_enY = price.value.total_en += (tickType.value.priceEn * 1)
}
})
......@@ -389,6 +401,12 @@ div {
box-sizing: border-box;
}
.total {
color: #9f9c9c;
font-size: 20px;
text-decoration: line-through
}
.qrcode {
width: 200px;
height: 200px;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!