• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • public
  • hbs
  • product
  • detail
  • valid.js
  • save 商品详情页 品牌券
    8fbfd0cf
    by 陈轩
    2016-10-31 15:41:03 +0800  
    Browse Directory »
valid.js 233 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10
/**
 *  当 acquireStatus 为1 时,即优惠券可以领取
 */
module.exports = (conditional, options) => {
    if (conditional === 1) {
        return options.fn(this);
    } else {
        return options.inverse(this);
    }
};