Commit f61c6a3d authored by 徐光星's avatar 徐光星

feat: 调整优惠券弹窗出现的判断条件

parent 1744cace
...@@ -204,8 +204,10 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle ...@@ -204,8 +204,10 @@ export default class Activity extends Mixins(TransformStyleMixin, BottomNavStyle
tongdunDeviceId tongdunDeviceId
}); });
if (err) { return; } if (err) { return; }
this.couponModalData = res; if (res && Object.keys(res).length) {
this.showCouponModal = true; this.couponModalData = res;
this.showCouponModal = true;
}
} }
comparePageTime(serverTime) { comparePageTime(serverTime) {
const { validStartTime, validEndTime } = this.pageInfo; const { validStartTime, validEndTime } = this.pageInfo;
......
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