Files
crmeb_java/admin/src/libs/public.js
stivepeim 011bbbebc0 更新Note
1. 修复购物车,订单和退单后后置任务正确执行
	2. 修复佣金记录金额和详情
	3. 修复管理端 移动应用界面下订单管理数据统计不准确的问题
	4. 修复短信API升级-后台使用一号通
	5. 修复用户管理相关问题
	6. 修复核销点核销后核销地址不准确
	7. 修复资源同步云服务的问题
新增功能
	1. 秒杀
		a. 秒杀时段配置
		b. 秒杀商品维护
	2. 财务管理
		a. 申请提现
		b. 财务记录
			i. 充值记录
			ii. 资金监控
		c. 佣金记录
	3. 普通商品显示该商品正在参加的活动信息[秒杀]
2020-11-05 16:21:06 +08:00

60 lines
1.3 KiB
JavaScript

import { storeStaffListApi } from '@/api/storePoint'
import { seckillListApi } from '@/api/marketing'
import Cookies from 'js-cookie'
/**
* @description 确定操作弹框
*/
export function modalSure(title) {
return new Promise((resolve, reject) => {
this.$confirm(`确定${title || '永久删除该文件'}?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
resolve()
}).catch(() => {
reject()
this.$message({
type: 'info',
message: '已取消'
})
})
})
}
/**
* @description 短信是否登录
*/
export function isLogin() {
return new Promise((resolve, reject) => {
isLoginApi().then(async res => {
resolve(res)
}).catch(res => {
reject(res)
})
})
}
/**
* @description 核销员列表
*/
export function getStoreStaff() {
return new Promise((resolve, reject) => {
storeStaffListApi({page: 1, limit: 9999}).then(async res => {
localStorage.setItem('storeStaffList', res.list ? JSON.stringify(res.list) : [])
})
})
}
/**
* @description 秒杀配置列表
*/
export function getSeckillList(status) {
return new Promise((resolve, reject) => {
seckillListApi({page: 1, limit: 9999, isDel: false, status: status || null}).then(async res => {
resolve(res)
})
})
}