|
|
@@ -20,8 +20,8 @@
|
|
|
<text class="name">{{res.name}}</text>
|
|
|
<text class="cg-cost">¥{{res.bigPrice?parseFloat(res.bigPrice):0}}</text>
|
|
|
<text class="cost-price">¥{{res.cost?parseFloat(res.cost):0}}</text>
|
|
|
- <input type="digit" v-model="res.suggestPrice" placeholder="花店价" />
|
|
|
- <input type="digit" v-model="res.suggestSkPrice" placeholder="个人价" />
|
|
|
+ <input type="digit" v-model="res.suggestPrice" @focus="clearPrice(i)" placeholder="花店价" />
|
|
|
+ <input type="digit" v-model="res.suggestSkPrice" @focus="clearSkPrice(i)" placeholder="个人价" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -52,17 +52,25 @@ export default {
|
|
|
info:{}
|
|
|
};
|
|
|
},
|
|
|
- onLoad(){
|
|
|
- let that = this
|
|
|
- let orderSn = this.option.orderSn ? this.option.orderSn : ''
|
|
|
- getPurchaseDetailApi(orderSn).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- that.info = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
methods: {
|
|
|
+ clearPrice(i){
|
|
|
+ this.flowersList[i].suggestPrice =''
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
+ clearSkPrice(i){
|
|
|
+ this.flowersList[i].suggestSkPrice =''
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
init(){
|
|
|
+
|
|
|
+ let that = this
|
|
|
+ let orderSn = this.option.orderSn ? this.option.orderSn : ''
|
|
|
+ getPurchaseDetailApi(orderSn).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.info = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
this.getList()
|
|
|
},
|
|
|
confirmIn(){
|