Commit 34f9a7ca authored by qipeng's avatar qipeng

错误修改

parent 2f343d5b
......@@ -341,6 +341,7 @@ export default {
}
this.$request('wechatUser/myPage/usableCouponList',data).then((res)=>{
if(res.code=='00'){
if(res.data.masterSlaveCouponList!=undefined){
if(res.data.masterSlaveCouponList.length>0){
res.data.masterSlaveCouponList.forEach(item=>{
item['couponPrice']=item.savedMoney
......@@ -349,6 +350,8 @@ export default {
this.favorablePrice = this.masterSlaveCouponList[0].savedMoney
this.sellingPrices = this.sellingPrices-this.masterSlaveCouponList[0].savedMoney
}
}
if(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