feat: 添加静态资源文件及基础组件
- 新增大量图片资源,包括图标、背景图、海报等,用于页面展示 - 添加字体文件及样式配置,支持自定义字体 - 引入 uni-ui 组件库,包括图标、弹窗、日期选择器等常用组件 - 添加网络状态监听、加密工具等基础工具函数 - 配置 Vuex 状态管理,包括购物车数量、热门搜索词等 - 增加页面组件,如用户协议、分销信息、提现状态等 - 配置项目构建和忽略文件,优化开发体验
This commit is contained in:
43
api/lottery.js
Normal file
43
api/lottery.js
Normal file
@@ -0,0 +1,43 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
import request from "@/utils/request.js";
|
||||
|
||||
/**
|
||||
* 获取抽奖详情信息
|
||||
*
|
||||
*/
|
||||
export function getLotteryData(type) {
|
||||
return request.get(`v2/lottery/info/${type}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 参与抽奖
|
||||
*
|
||||
*/
|
||||
export function startLottery(data) {
|
||||
return request.post(`v2/lottery`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 领奖
|
||||
*
|
||||
*/
|
||||
export function receiveLottery(data) {
|
||||
return request.post(`v2/lottery/receive`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取中奖记录
|
||||
*
|
||||
*/
|
||||
export function getLotteryList(data) {
|
||||
return request.get(`v2/lottery/record`, data);
|
||||
}
|
||||
Reference in New Issue
Block a user