|
|
@@ -3,8 +3,8 @@
|
|
|
<!-- 标题栏 -->
|
|
|
<view class="popup-header">
|
|
|
<view class="header-content">
|
|
|
- <text>剩{{customData.stock?parseFloat(customData.stock):0}}扎 单价:</text>
|
|
|
- <input class="price-input" @focus="customData.unitPrice=''" v-model="customData.unitPrice" type="digit" />
|
|
|
+ <text>剩{{customData.stock?parseFloat(customData.stock):0}}扎 单价</text>
|
|
|
+ <input class="price-input" @focus="unitPrice=''" v-model="unitPrice" type="digit" />
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -65,7 +65,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
flowerList: [],
|
|
|
- scrollHeight: '600upx'
|
|
|
+ scrollHeight: '600upx',
|
|
|
+ unitPrice:0
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -79,6 +80,13 @@ export default {
|
|
|
},
|
|
|
deep: true,
|
|
|
immediate: true
|
|
|
+ },
|
|
|
+ customData:{
|
|
|
+ handler(newData){
|
|
|
+ this.unitPrice = newData.unitPrice?parseFloat(newData.unitPrice):0
|
|
|
+ },
|
|
|
+ deep: true,
|
|
|
+ immediate: true
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|