Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

glsx / dj-scrm-to-customer

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dj-scrm-to-customer
  • src
  • api
  • couponApi.js
  • liwk's avatar
    init · c638387a
    liwk committed Nov 11, 2021
    c638387a
couponApi.js 467 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
const url = '/rop-scrm-coupon/router'
const returnAll = true
export default {
  /** 获取分享优惠卷信息 */
  getCouponInfo(data) {
    data.method = 'scrm.api.coupon.share.info'
    return window.$HTTP({
      url,
      data,
      returnAll
    })
  },
  /**领取优惠券  */
  receiveCoupon(data) {
    data.method = 'scrm.api.coupon.share.receive'
    data.receiveSource = 4
    return window.$HTTP({
      url,
      data,
      returnAll
    })
  },
}