Authored by 邱骏

个人主页-优惠券-判断线上渠道,线下渠道隐藏立即使用按钮

... ... @@ -60,6 +60,7 @@ module.exports = class extends global.yoho.BaseModel {
couponApiCase.getCouponNum(uid)
]).then(result => {
Object.assign(resData, _.get(result, '[0].data', {}));
console.log('resData:', resData);
if (resData.couponList && resData.couponList.length) {
_.forEach(resData.couponList, value => {
... ...
... ... @@ -49,9 +49,11 @@
</label>
{{/if}}
</div>
{{# toUse}}
<a href="{{.}}" class="use-now-btn" target="_blank">立即使用</a>
{{/ toUse}}
{{#if is_online_avail}}
{{# toUse}}
<a href="{{.}}" class="use-now-btn" target="_blank">立即使用</a>
{{/ toUse}}
{{/if}}
</div>
{{/ couponList}}
... ...