Commit 5cca28db authored by qipeng's avatar qipeng

相册优惠券查询添加新参数

parent bcc9dc38
......@@ -179,7 +179,7 @@ export default {
this.obtainProvince()//获取省市区
this.inquireMerchant()//查询所有商户
this.getPhotos()//照片列表
this.mearchLoadList()
},
methods: {
mearchLoadList(){//调用参数
......@@ -190,6 +190,7 @@ export default {
}).then((res)=>{
if(res.code=='00'){
this.merchantMessage = res.data
this.checkMonkey()
}else{
this.$refs.uToast.show({
title: res.message,
......@@ -251,6 +252,8 @@ export default {
item['image']=item.faceSourceUrl||item.faceAiUrl
item['title']=''
})
this.mearchLoadList()
}else{
this.$refs.uToast.show({
title: res.message,
......@@ -315,7 +318,6 @@ export default {
if(item.checkType==true){
this.originalPrices += item.originalPrice//原价
this.sellingPrices += item.sellingPrice//售价
console.log(item.sellingPrice)
this.priceNum++
}
})
......@@ -327,15 +329,21 @@ export default {
merchantId:this.merchantMessage[0].merchantId,
tickets:1,
productId:this.merchantMessage[0].merchantExtendProjectId,
orderSource:11,//指定为相册优惠券
}
this.$request('wechatUser/myPage/usableCouponList',data).then((res)=>{
if(res.code=='00'){
res.data.masterSlaveCouponList.forEach(item=>{
item['couponPrice']=item.deductPrice
})
this.masterSlaveCouponList = res.data.masterSlaveCouponList
this.favorablePrice = this.masterSlaveCouponList[0].deductPrice
this.sellingPrices = this.sellingPrices-this.masterSlaveCouponList[0].deductPrice
if(res.data.masterSlaveCouponList!=undefined){
res.data.masterSlaveCouponList.forEach(item=>{
item['couponPrice']=item.deductPrice
})
this.masterSlaveCouponList = res.data.masterSlaveCouponList
this.favorablePrice = this.masterSlaveCouponList[0].deductPrice
this.sellingPrices = this.sellingPrices-this.masterSlaveCouponList[0].deductPrice
}
if(this.sellingPrices<0){
this.sellingPrices=0
}
}else{
this.$refs.uToast.show({
title: res.message,
......
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