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

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

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