Vipps with qr amount

This commit is contained in:
2020-01-24 14:50:37 +01:00
parent ab53303e26
commit 397de7b3b6
2 changed files with 6 additions and 3 deletions

View File

@@ -53,7 +53,7 @@
></div>
</div>
<Vipps class="vipps" />
<Vipps class="vipps" :amount="numberOfBallots" />
<Countdown :hardEnable="hardStart" @countdown="changeEnabled" />
</div>
</template>

View File

@@ -3,7 +3,7 @@
<img src="/public/assets/images/vipps-logo.svg" class="vipps-logo" />
<span>
kr.
<span class="big-money">10,-</span> pr. lodd
<span class="big-money">{{ amount * 10 }},-</span> pr. lodd
</span>
<img src="/public/assets/images/vipps-qr.png" class="qr-logo" />
<span class="phone-number">977 40 427</span>
@@ -14,9 +14,12 @@
<script>
export default {
props: {
amount: Number
},
methods: {
openVipps: () => {
window.location.assign('https://qr.vipps.no/28/2/01/031/4797740427?v=1')
window.location.assign('https://qr.vipps.no/28/2/01/031/4797740427?v=1&m=Vinlotteri🍾&a=' + 100 * amount)
}
}
}