Commit 34f9a7ca authored by qipeng's avatar qipeng

错误修改

parent 2f343d5b
...@@ -341,14 +341,17 @@ export default { ...@@ -341,14 +341,17 @@ export default {
} }
this.$request('wechatUser/myPage/usableCouponList',data).then((res)=>{ this.$request('wechatUser/myPage/usableCouponList',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
if(res.data.masterSlaveCouponList.length>0){ if(res.data.masterSlaveCouponList!=undefined){
res.data.masterSlaveCouponList.forEach(item=>{ if(res.data.masterSlaveCouponList.length>0){
item['couponPrice']=item.savedMoney res.data.masterSlaveCouponList.forEach(item=>{
}) item['couponPrice']=item.savedMoney
this.masterSlaveCouponList = res.data.masterSlaveCouponList })
this.favorablePrice = this.masterSlaveCouponList[0].savedMoney this.masterSlaveCouponList = res.data.masterSlaveCouponList
this.sellingPrices = this.sellingPrices-this.masterSlaveCouponList[0].savedMoney this.favorablePrice = this.masterSlaveCouponList[0].savedMoney
this.sellingPrices = this.sellingPrices-this.masterSlaveCouponList[0].savedMoney
}
} }
if(this.sellingPrices<0){ if(this.sellingPrices<0){
this.sellingPrices=0 this.sellingPrices=0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment