Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 修复打赏弹出层依旧使用余额的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Jun 20, 2018
1 parent 5720836 commit 0cf4766
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/reward.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<main class="m-box-model m-aln-center m-justify-center">
<div class="m-box-model m-lim-width m-main">
<div class="m-pinned-amount-btns">
<p class="m-pinned-amount-label">选择打赏金额</p>
<p class="m-pinned-amount-label">选择打赏积分</p>
<div class="m-box m-aln-center ">
<button
:key="item"
v-for="item in items"
class="m-pinned-amount-btn"
:style="{ width: `${1 / items.length * 100}%` }"
:class="{ active: ~~amount === ~~item && !customAmount }"
@click="chooseDefaultAmount(item)">{{((~~item) / 100) }}</button>
@click="chooseDefaultAmount(item)">{{ ~~item }}</button>
</div>
</div>
<div class="m-box m-aln-center m-justify-bet m-bb1 m-bt1 m-pinned-row plr20 m-pinned-amount-customize">
Expand All @@ -36,7 +36,7 @@
class="m-text-r"
pattern="[0-9]*"
v-model="customAmount"
placeholder="输入金额"
placeholder="输入积分"
oninput="value=value.slice(0,8)">
<span>积分</span>
</div>
Expand Down Expand Up @@ -81,7 +81,7 @@ export default {
},
watch: {
customAmount(val) {
this.amount = ~~val * 100;
this.amount = ~~val;
}
},
created() {
Expand Down

0 comments on commit 0cf4766

Please sign in to comment.