更新
This commit is contained in:
parent
8b147d461c
commit
08742b5870
@ -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;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user