订单信息
This commit is contained in:
parent
841b823692
commit
5e2969c04f
@ -59,7 +59,7 @@
|
||||
<view class="inputkuang" @click="show = true">
|
||||
<view class="sbox">¥</view>
|
||||
<view class="sbox" style="text-align: center;font-weight: bold;">{{value}}</view>
|
||||
<view class="sbox-hui">约{{value}}L</view>
|
||||
<view class="sbox-hui">约{{liters}}L</view>
|
||||
</view>
|
||||
<view class="wrap-box">
|
||||
<view class="box-oil1" :class=" {'xz' :aindex == index }" @click="getAIndex(index,item)"
|
||||
@ -112,6 +112,7 @@
|
||||
data() {
|
||||
return {
|
||||
value: '',
|
||||
liters:"",
|
||||
show: false,
|
||||
pic: 0,
|
||||
hindex: 0,
|
||||
@ -344,7 +345,8 @@
|
||||
},
|
||||
valChange(val) {
|
||||
// 将每次按键的值拼接到value变量中,注意+=写法
|
||||
this.value += val;
|
||||
this.value += val;
|
||||
this.liters = (this.value/this.oilPrice).toFixed(2)
|
||||
console.log(this.value);
|
||||
},
|
||||
// 退格键被点击
|
||||
|
Loading…
Reference in New Issue
Block a user