|
|
|
|
@ -28,10 +28,16 @@ const GetPersonIntegralSaveMoneyCouponInfo = async () => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const selectCoupon = (item) => {
|
|
|
|
|
let buyinfo=$store.getBuyInfo()
|
|
|
|
|
if(buyinfo.item_ids.length==0)
|
|
|
|
|
{
|
|
|
|
|
uni.$lu.toast("无自选项目,无需使用代金券");
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
yytjInfo.value.couponId = item.id;
|
|
|
|
|
yytjInfo.value.couponPrice = item.price;
|
|
|
|
|
yytjInfo.value.couponName = item.title;
|
|
|
|
|
$store.setYytjInfo(yytjInfo.value);
|
|
|
|
|
let buyinfo=$store.getBuyInfo()
|
|
|
|
|
buyinfo.coupon_id= item.id
|
|
|
|
|
$store.setBuyInfo(buyinfo);
|
|
|
|
|
uni.navigateBack({ delta: 1 });
|
|
|
|
|
|