/**
* @Author: liutao
* @Date: 2017-03-14T18:17:44+08:00
* @Email: 947809647@qq.com
* @Last modified by: liutao
* @Last modified time: 2017-04-25T15:42:38+08:00
*/
import queryString from 'query-string'
import Vue from 'vue'
const SUCCESS = 1000000
const API_ROOT = server.root + '/newmanage'
const activityListResource = Vue.resource(API_ROOT + '/task/activity/list')
const activityUpdateResource = Vue.resource(API_ROOT + '/task/activity/update')
const activityAddResource = Vue.resource(API_ROOT + '/task/activity/insert')
const customMiniListResource = Vue.resource(API_ROOT + '/activity/list')
const customAddResource = Vue.resource(API_ROOT + '/activity/add')
const customUpdateResource = Vue.resource(API_ROOT + '/activity/update')
const customPrizeListResource = Vue.resource(API_ROOT + '/prize/list')
const customPrizeAddResource = Vue.resource(API_ROOT + '/prize/add')
const customPrizeUpdateResource = Vue.resource(API_ROOT + '/prize/update')
const customPrizeResultLResource = Vue.resource(API_ROOT + '/prize/result/list')
const customPrizeCodeLResource = Vue.resource(API_ROOT + '/prize/code/list')
const customCodeRemoveResource = Vue.resource(API_ROOT + '/prize/code/remove')
const customCodeAddResource = Vue.resource(API_ROOT + '/prize/code/batchadd')
const customCodeExcelResource = Vue.resource(API_ROOT + '/prize/code/excel')
export const exportCodeResource = API_ROOT + '/prize/code/export'
const customMsgListResource = Vue.resource(API_ROOT + '/activity/msg/list')
const customMsgConfigResource = Vue.resource(API_ROOT + '/activity/msg/config')
const customMsgSendResource = Vue.resource(API_ROOT + '/activity/msg/send')
const guoxinListResource = Vue.resource(API_ROOT + '/gxopen/list')
const guoxinUpdateResource = Vue.resource(API_ROOT + '/gxopen/changestatus')
const guoxinInviteListResource = Vue.resource(API_ROOT + '/gxopen/sharelist')
const guoxinUpdateInviteResource = Vue.resource(API_ROOT + '/gxopen/sharelist/changestatus')
const customFakeRecordsResource = Vue.resource(API_ROOT + '/activity/fakeaward/list')
const customFakeAddResource = Vue.resource(API_ROOT + '/activity/fakeaward/add')
const customFakeRemoveResource = Vue.resource(API_ROOT + '/activity/fakeaward/remove')
const hualinListResource = Vue.resource(API_ROOT + '/hlopen/list')
const hualinUpdateResource = Vue.resource(API_ROOT + '/hlopen/changestatus')
const hualinInviteListResource = Vue.resource(API_ROOT + '/hlopen/sharelist')
const hualinUpdateInviteResource = Vue.resource(API_ROOT + '/hlopen/sharelist/changestatus')
// 充流量
const getDataflowListResource = Vue.resource(API_ROOT + '/dataflow/list')
const getInvalidOrderResource = Vue.resource(API_ROOT + '/dataflow/invalidOrder')
const chargeDataflowResource = Vue.resource(API_ROOT + '/dataflow/chargeDataflow')
const updateOrderResultResource = Vue.resource(API_ROOT + '/dataflow/updateOrderResult')
const getAccountResource = Vue.resource(API_ROOT + '/dataflow/account')
// 年度票选
const getVoteListResource = Vue.resource(API_ROOT + '/year/top/list')
const getAddVoteResource = Vue.resource(API_ROOT + '/year/top/votes')
const getSearchListResource = Vue.resource(API_ROOT + '/year/top/search')
// 金贝塔小游戏
const awardResource = Vue.resource(API_ROOT + '/game/no/award')
const searchResource = Vue.resource(API_ROOT + '/game/list/phone')
const gameRankResource = Vue.resource(API_ROOT + '/game/list/rank')
const gameUpdateResource = Vue.resource(API_ROOT + '/game/inc')
export const getActivityList = ({dispatch}, params) => {
return activityListResource.get(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
dispatch('UPDATE_ACTIVITY_FRESH', 0)
return Promise.resolve(res.data.data)
}
return Promise.reject(res.data)
})
}
export const updateActivity = ({dispatch}, params) => {
return activityUpdateResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('UPDATE_ACTIVITY_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const addActivity = ({dispatch}, params) => {
return activityAddResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('UPDATE_ACTIVITY_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const customList = ({dispatch}, params) => {
return customMiniListResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
dispatch('UPDATE_CUSTOM_FRESH', 0)
return Promise.resolve(res.data.data)
}
return Promise.reject(res.data)
})
}
export const addCustom = ({dispatch}, params) => {
return customAddResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('UPDATE_CUSTOM_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const updateCustom = ({dispatch}, params) => {
return customUpdateResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('UPDATE_CUSTOM_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const prizeList = ({dispatch}, params) => {
return customPrizeListResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
dispatch('UPDATE_PRIZE_FRESH', 0)
return Promise.resolve(res.data.data)
}
return Promise.reject(res.data)
})
}
export const addPrize = ({dispatch}, params) => {
return customPrizeAddResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('UPDATE_PRIZE_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const updatePrize = ({dispatch}, params) => {
return customPrizeUpdateResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('UPDATE_PRIZE_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const prizeResultList = ({dispatch}, params) => {
return customPrizeResultLResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return Promise.resolve(res.data.data)
}
return Promise.reject(res.data)
})
}
export const prizeCodeList = ({dispatch}, params) => {
return customPrizeCodeLResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
dispatch('IMPORT_CODE_FRESH', 0)
return Promise.resolve(res.data.data)
}
return Promise.reject(res.data)
})
}
export const codeRemoveBatch = ({dispatch}, params) => {
return customCodeRemoveResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('IMPORT_CODE_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const codeAddBatch = ({dispatch}, params) => {
return customCodeAddResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('IMPORT_CODE_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const codeExcel = ({dispatch}, params) => {
return customCodeExcelResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return dispatch('IMPORT_CODE_FRESH', 1)
}
return Promise.reject(res.data)
})
}
export const msgList = ({dispatch}, params) => {
return customMsgListResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
dispatch('UPDATE_MSG_FRESH', 0)
return Promise.resolve(res.data.data)
}
return Promise.reject(res.data)
})
}
export const msgConfig = ({dispatch}, params) => {
return customMsgConfigResource.save(params)
.then((res) => {
if (+res.data.code === SUCCESS) {
return disp
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
JavaScript开发基于vue的通用后台管理系统.zip (908个子文件)
_bootstrap.css 149KB
_font-awesome.css 36KB
_normalize.css 3KB
menu.css 2KB
style.css 2KB
_check-same.css 2KB
config.css 1KB
header.css 1KB
_animate.css 1KB
app.css 765B
nav-menu.css 745B
nav-menu.css 745B
activity-list.css 699B
index-ad-list.css 699B
layout.css 680B
course-manage.css 572B
result-list.css 533B
flash-ad-new.css 503B
_var.css 434B
modal-search-portfolio.css 423B
config.css 416B
guide-list.css 402B
open-ad-list.css 392B
game-list.css 381B
_common.css 348B
flash-ad-detail.css 344B
expert-list.css 342B
item-config.css 341B
item-list.css 315B
personal-list.css 278B
gao-list.css 276B
item-config.css 257B
item-config.css 257B
item-config.css 257B
question-list.css 252B
item-list.css 252B
item-list.css 252B
item-list.css 252B
item-list.css 252B
config.css 238B
subscribe-config.css 238B
config.css 238B
expert-config.css 231B
subscribe-list.css 220B
adjust.css 215B
vote.css 210B
user-list.css 209B
add-invester-portfolio.css 199B
award.css 195B
commission.css 189B
charge-flow.css 188B
new-shares-list.css 187B
home.css 186B
code-excel.css 182B
audit-list.css 181B
expert-import.css 178B
list.css 174B
customer-list.css 174B
list.css 172B
question-log.css 172B
add-inverstor-portfolio.css 166B
update-inverstor-portfolio.css 166B
subscription-manage.css 155B
audit-detail.css 154B
login.css 152B
subscription-detail.css 148B
portfolio-list.css 143B
users.css 143B
user-subscribe.css 142B
user-config.css 142B
feedback-list.css 142B
item-config.css 138B
tab.css 136B
tab.css 136B
tab.css 136B
tab.css 136B
tab.css 136B
invester-list.css 132B
price-user-list.css 117B
update-invester-portfolio.css 116B
mini-banner-update.css 98B
index-ad-update.css 98B
update-package-activity.css 97B
open-ad-update.css 96B
gao-update.css 96B
cgb-update.css 95B
add-package-activity.css 94B
app-update.css 83B
import.css 83B
config-banner.css 83B
inverstor-portfolio-manage.css 81B
pages.css 80B
certificate-user-list.css 79B
hualin-pay.css 76B
export-settle.css 76B
settle-detail.css 76B
product-list.css 74B
export-pay.css 74B
import-data.css 74B
query-modal.css 74B
共 908 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
omyligaga
- 粉丝: 88
- 资源: 2万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 要你命三千,集多种渗透工具于一身的终极武器霸王 .zip
- Python课程设计:手动/自动发射烟花项目实现源代码
- 技术资料分享010511-Translated-IP-test很好的技术资料.zip
- 全志 PMU axp707 完整 规格书 pdf
- 是的讣告哈桑大厦送到华山派的哈桑
- 规范渗透测试报告中的漏洞名称以及修复建议.zip
- 技术资料分享ADPCM格式说明很好的技术资料.zip
- 技术资料分享ADXL345很好的技术资料.zip
- com.tocaboca.tocahairsalon4zxb.apk
- 全志 A133 标案原理图 SCH PDF
- 新能源汽车类型识别,支持yolov8格式的标注,5391张正常采集的车辆信息可识别特斯拉 北汽新能源 宝马 世界 比亚迪秦,比亚迪宋 比亚迪唐 奇瑞 易达 福特 江淮汽车 江淮等.zip
- 计划创建遍布渗透测试平台,主要包括信息收集和漏洞扫描.zip
- 技术资料分享AL422B很好的技术资料.zip
- LeetCode145. 二叉树的后序遍历
- 技术资料分享AMS1117很好的技术资料.zip
- leetCode199. 二叉树的右视图
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功