apply.js 1.98 KB
Newer Older
潘琦 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
import request from '@/router/request'

//  获取当前用户可使用的健康券
export function getUserCard (size, params) {
  return request({
    url: '/apply/info/page',
    method: 'POST',
    params: { size: size },
    data: params
  })
}

//  根据user id获取用户待使用健康券
export function getunUsedCountById (params) {
  return request({
    url: '/apply/info/count',
    method: 'POST',
    data: params
  })
}

//  根据user id获取用户信息
export function getUserInfoByUserId (params) {
  return request({
    url: '/basic/userrelation/list/' + params,
    method: 'GET'
  })
}

//  获取健康券信息
export function getVoucherInfoById (params) {
  return request({
    url: '/apply/info/' + params,
    method: 'GET'
  })
}

//  根据券voucherId获取券相关操作按钮
export function getButtonByVoucherId (params) {
  return request({
    url: '/apply/info/content/' + params,
    method: 'GET'
  })
}

//  根据券makeId获取内容流
export function getContentListByMakeId (makeId, params) {
  return request({
    url: '/apply/content/' + makeId,
    method: 'GET',
    params: params
  })
}

//  根据券voucherId获取核销券二维码
export function getQrCodeByVoucherId (params) {
  return request({
    url: '/apply/info/generateQrCode/' + params,
    method: 'GET'
  })
}

//  根据券voucherId获取券小贴士
export function getTipsByVoucherId (params) {
  return request({
    url: '/apply/info/tips/' + params,
    method: 'GET'
  })
}

//  根据用户id获取用户所有健康券
export function getAllVoucherByUserId (params) {
  return request({
    url: '/apply/info/getAll/' + params,
    method: 'GET'
  })
}

//  获取知识详情信息
export function getContentInfo (params) {
  return request({
    url: '/apply/content/getContentInfo/' + params,
    method: 'GET'
  })
}
潘琦 committed
86 87 88 89 90 91

// 服务券服务评价
export function evaluationThree (params) {
  return request({
    url: '/apply/evaluation/evaluationThree',
    method: 'POST',
潘琦 committed
92
    data: params
潘琦 committed
93 94
  })
}