123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import request from '@/utils/request'
- //获取优惠券列表
- export function getCouponsList(data,types) {
- //优惠券状态 0全部 1未使用 2已使用
- return request({
- url: '/api/coupons/user/'+types,
- method: 'get',
- data
- });
- }
- //领取优惠券
- export function setCoupons(data) {
- return request({
- url: '/api/coupon/receive',
- method: 'post',
- data
- });
- }
- //获取可使用优惠券
- export function couponsOrder(data,price) {
- return request({
- url: '/api/coupons/order/'+price,
- method: 'get',
- data
- });
- }
- // 积分列表
- export function integrallist(data) {
- return request({
- url: '/api/integral/list',
- method: 'get',
- data
- });
- }
- // 获取签到列表
- export function signList(data) {
- return request({
- url: '/api/sign/list',
- method: 'get',
- data
- });
- }
- // 点击签到
- export function integral(data) {
- return request({
- url: '/api/sign/integral',
- method: 'post',
- data
- });
- }
- // 签到信息
- export function signUser(data) {
- return request({
- url: '/api/sign/user',
- method: 'post',
- data
- });
- }
|