在搞加密解密
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</view>
|
||||
<view class="padding-top-xs padding-left padding-right">
|
||||
<text class="strong padding-right font-16">
|
||||
0#柴油
|
||||
{{selected.oilName}}
|
||||
</text>
|
||||
<text class="padding-right">星油价格:<text class="oil-main-color text-bold">¥{{selected.xkPrice?selected.xkPrice:selected.lvPrice|numberFilter}}/L</text></text>
|
||||
<text class="s-rich">市场价:¥{{selected.standardPrice|numberFilter}}/L</text>
|
||||
@@ -41,13 +41,13 @@
|
||||
<view class="cu-form-group">
|
||||
<view class="title">加油升数</view>
|
||||
<input type="number" v-model="vol" @input="calcMoney" placeholder="请输入加油升数" name="input"></input>
|
||||
<text>约¥{{money.total}}</text>
|
||||
<text>约¥{{money.total|numberFilter}}</text>
|
||||
</view>
|
||||
<view class="my-cell">
|
||||
<text class="font-12">星卡优惠金额</text><text class="fr">-¥{{money.discount}}</text>
|
||||
<text class="font-12">星卡优惠金额</text><text class="fr">-¥{{money.discount|numberFilter}}</text>
|
||||
</view>
|
||||
<view class="my-cell">
|
||||
<text class="font-12">实际支付金额</text><text class="oil-main-color fr">¥{{money.realPay}}</text>
|
||||
<text class="font-12">实际支付金额</text><text class="oil-main-color fr">¥{{money.realPay|numberFilter}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="margin round bg-main-oil" @tap="onConfirm">确定</button>
|
||||
@@ -76,9 +76,9 @@
|
||||
standardPrice: ''
|
||||
},
|
||||
money: {
|
||||
total: 0,
|
||||
discount: 0,
|
||||
realPay: 0
|
||||
total: '',
|
||||
discount: '',
|
||||
realPay: ''
|
||||
},
|
||||
price: 1
|
||||
}
|
||||
@@ -145,6 +145,8 @@
|
||||
value = value - 1 + 1
|
||||
if (value) {
|
||||
return value.toFixed(2)
|
||||
}else{
|
||||
return '0.00'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user