15410946 by zhangmeng

购票价格

1 parent b738561d
...@@ -129,6 +129,13 @@ ...@@ -129,6 +129,13 @@
129 {{ 129 {{
130 language == 0 ? (price.total_cn * 1).toFixed(2) : (price.total_en * 1).toFixed(2) 130 language == 0 ? (price.total_cn * 1).toFixed(2) : (price.total_en * 1).toFixed(2)
131 }} 131 }}
132
133 <span v-if="tickType.isCountSale==1&&orderForm.message.length>=tickType.counts" class="total">
134 {{ language == 0 ? "¥" : "€" }}
135 {{
136 language == 0 ? (price.total_cnY * 1).toFixed(2) : (price.total_enY * 1).toFixed(2)
137 }}
138 </span>
132 </div> 139 </div>
133 </div> 140 </div>
134 </div> 141 </div>
...@@ -202,7 +209,9 @@ const orderForm = ref({ ...@@ -202,7 +209,9 @@ const orderForm = ref({
202 }) 209 })
203 const price = ref({ 210 const price = ref({
204 total_en: 0, 211 total_en: 0,
205 total_cn: 0 212 total_cn: 0,
213 total_enY: 0,
214 total_cnY: 0,
206 }) 215 })
207 const tickType = ref({}) 216 const tickType = ref({})
208 const matchType = ref({}) 217 const matchType = ref({})
...@@ -250,15 +259,18 @@ function changeGroup(e) { ...@@ -250,15 +259,18 @@ function changeGroup(e) {
250 // 计算价格 259 // 计算价格
251 price.value = { 260 price.value = {
252 total_en: 0, 261 total_en: 0,
253 total_cn: 0 262 total_cn: 0,
263 total_enY: 0,
264 total_cnY: 0,
254 } 265 }
255 orderForm.value.message.forEach(v => { 266 orderForm.value.message.forEach(v => {
256 if (v.discount) { 267 if (v.discount) {
257 price.value.total_cn += (tickType.value.rebatePrice * 1) 268 price.value.total_cnY = price.value.total_cn += (tickType.value.rebatePrice * 1)
258 price.value.total_en += (tickType.value.rebatePriceEn * 1) 269 price.value.total_enY = price.value.total_en += (tickType.value.rebatePriceEn * 1)
270
259 } else { 271 } else {
260 price.value.total_cn += (tickType.value.price * 1) 272 price.value.total_cnY = price.value.total_cn += (tickType.value.price * 1)
261 price.value.total_en += (tickType.value.priceEn * 1) 273 price.value.total_enY = price.value.total_en += (tickType.value.priceEn * 1)
262 } 274 }
263 }) 275 })
264 276
...@@ -389,6 +401,12 @@ div { ...@@ -389,6 +401,12 @@ div {
389 box-sizing: border-box; 401 box-sizing: border-box;
390 } 402 }
391 403
404 .total {
405 color: #9f9c9c;
406 font-size: 20px;
407 text-decoration: line-through
408 }
409
392 .qrcode { 410 .qrcode {
393 width: 200px; 411 width: 200px;
394 height: 200px; 412 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!