Merge branch 'master' of https://gitee.com/nny_1/oilSystem
This commit is contained in:
commit
1cf76004b4
@ -59,7 +59,7 @@
|
|||||||
<view class="inputkuang" @click="show = true">
|
<view class="inputkuang" @click="show = true">
|
||||||
<view class="sbox">¥</view>
|
<view class="sbox">¥</view>
|
||||||
<view class="sbox" style="text-align: center;font-weight: bold;">{{value}}</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>
|
||||||
<view class="wrap-box">
|
<view class="wrap-box">
|
||||||
<view class="box-oil1" :class=" {'xz' :aindex == index }" @click="getAIndex(index,item)"
|
<view class="box-oil1" :class=" {'xz' :aindex == index }" @click="getAIndex(index,item)"
|
||||||
@ -112,6 +112,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: '',
|
value: '',
|
||||||
|
liters:"",
|
||||||
show: false,
|
show: false,
|
||||||
pic: 0,
|
pic: 0,
|
||||||
hindex: 0,
|
hindex: 0,
|
||||||
@ -344,7 +345,8 @@
|
|||||||
},
|
},
|
||||||
valChange(val) {
|
valChange(val) {
|
||||||
// 将每次按键的值拼接到value变量中,注意+=写法
|
// 将每次按键的值拼接到value变量中,注意+=写法
|
||||||
this.value += val;
|
this.value += val;
|
||||||
|
this.liters = (this.value/this.oilPrice).toFixed(2)
|
||||||
console.log(this.value);
|
console.log(this.value);
|
||||||
},
|
},
|
||||||
// 退格键被点击
|
// 退格键被点击
|
||||||
|
Loading…
Reference in New Issue
Block a user