This commit is contained in:
weipengfei 2024-01-24 18:22:31 +08:00
parent 8b147d461c
commit 08742b5870

View File

@ -381,7 +381,7 @@
<view>红包抵扣<!-- <text @tap="showCoupon" class="iconfont icon-wenhao1"></text> --></view> <view>红包抵扣<!-- <text @tap="showCoupon" class="iconfont icon-wenhao1"></text> --></view>
<block v-if="platformConsumption.length > 0"> <block v-if="platformConsumption.length > 0">
<view class='discount money red_packet' @tap='couponTap3()'> <view class='discount money red_packet' @tap='couponTap3()'>
<text v-if="consumption_id">-{{red_price}}</text> <text v-if="consumption_id">-{{consumption_money||'0.00'}}</text>
<text v-else>有补贴红包未选</text> <text v-else>有补贴红包未选</text>
<text class='iconfont icon-jiantou'></text> <text class='iconfont icon-jiantou'></text>
</view> </view>
@ -677,6 +677,7 @@
settle_cycle: '', // settle_cycle: '', //
type_id: '', // type_id: '', //
consumption_id: '', //id consumption_id: '', //id
consumption_money: '', //
}; };
}, },
computed: { computed: {
@ -1077,6 +1078,7 @@
} }
}) })
}else res.data.platformCoupon = []; }else res.data.platformCoupon = [];
that.consumption_money = res.data.consumption_money;
that.$set(that.coupon, "coupon", that.plantCoupon ? res.data.platformCoupon : res.data that.$set(that.coupon, "coupon", that.plantCoupon ? res.data.platformCoupon : res.data
.order[that.couponIndex].coupon); .order[that.couponIndex].coupon);
that.$set(that, "store_coupon_number", res.data.order[that.couponIndex].order.useCouponIds that.$set(that, "store_coupon_number", res.data.order[that.couponIndex].order.useCouponIds
@ -1209,7 +1211,6 @@
success:(res)=> { success:(res)=> {
res.eventChannel.emit('changeRedPacketInfo', this.platformConsumption) res.eventChannel.emit('changeRedPacketInfo', this.platformConsumption)
uni.$once('changeRedPacket', (data)=>{ uni.$once('changeRedPacket', (data)=>{
console.log('选择红包', data);
this.consumption_id = data; this.consumption_id = data;
}) })
} }