Commit 5cca28db authored by qipeng's avatar qipeng

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

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