You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
209 lines
3.6 KiB
209 lines
3.6 KiB
import request from '@/utils/request'
|
|
|
|
export default {
|
|
|
|
// 礼包设置
|
|
|
|
// 获取礼包列表
|
|
giftBagListPage: function(data) {
|
|
return request({
|
|
url: '/lpkgiftbag/giftBagListPage',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 修改上架/下架状态
|
|
updateIsEnable: function(sid,isEnable) {
|
|
return request({
|
|
url: '/lpkgiftbag/isGrounding/'+sid+"/"+isEnable
|
|
});
|
|
},
|
|
|
|
|
|
// 获取发放网点列表
|
|
bankList: function(data) {
|
|
return request({
|
|
url: '/lpkbank/listAll',
|
|
method: 'get',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
|
|
// 礼包选择商品时,返回的商品列表
|
|
getGoods: function(data) {
|
|
return request({
|
|
url: '/lpkgoods/getGoods',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
|
|
// 新增、保存礼包
|
|
saveGiftBag: function(data) {
|
|
return request({
|
|
url: '/lpkgiftbag/saveGiftBag',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 初始化礼包
|
|
giftBagInit: function(data) {
|
|
return request({
|
|
url: '/lpkgiftbag/giftBagInit/'+data,
|
|
method: 'get'
|
|
});
|
|
},
|
|
|
|
|
|
|
|
|
|
// 提货卡设置
|
|
|
|
// 提货卡发行记录
|
|
recordListPage: function(data) {
|
|
return request({
|
|
url: '/lpkcardbuildrecord/recordListPage',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 发行记录详细
|
|
recordDetails: function(data) {
|
|
return request({
|
|
url: '/lpkgiftcard/recordDetails',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
|
|
// 导出
|
|
exportExcel: function(data) {
|
|
return request({
|
|
url: '/lpkgiftcard/exportExcel',
|
|
method: 'post',
|
|
responseType: 'blob', // 表明返回服务器返回的数据类型
|
|
data: data,
|
|
headers: { 'Content-Type': 'application/json' }
|
|
})
|
|
},
|
|
|
|
// 作废提货卡
|
|
cancelCard: function(sid) {
|
|
return request({
|
|
url: '/lpkgiftcard/cancelCard/'+sid,
|
|
method: 'get'
|
|
});
|
|
},
|
|
|
|
|
|
|
|
// 获取提货卡页面 礼包列表
|
|
giftBagList: function(data) {
|
|
return request({
|
|
url: '/lpkgiftbag/giftBagList',
|
|
method: 'get',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 发行提货卡
|
|
generateCard: function(data) {
|
|
return request({
|
|
url: '/lpkgiftcard/generateCard',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 发放提货卡
|
|
cardGrant: function(data) {
|
|
return request({
|
|
url: '/lpkgiftcard/cardGrant',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
|
|
|
|
// 小程序礼包
|
|
// 获取礼包列表
|
|
appletGiftBagListPage: function(data) {
|
|
return request({
|
|
url: '/appletgiftbag/giftBagListPage',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
|
|
// 修改小程序礼包上架/下架状态
|
|
updateAppletgiftbagState: function(sid,isEnable) {
|
|
return request({
|
|
url: '/appletgiftbag/isGrounding//'+sid+"/"+isEnable
|
|
});
|
|
},
|
|
|
|
// 新增、保存礼包
|
|
saveAppletGiftBag: function(data) {
|
|
return request({
|
|
url: '/appletgiftbag/saveGiftBag',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 初始化礼包
|
|
AppletGiftBagInit: function(data) {
|
|
return request({
|
|
url: '/appletgiftbag/giftBagInit/'+data,
|
|
method: 'get'
|
|
});
|
|
},
|
|
|
|
|
|
|
|
|
|
// 新人推荐礼包
|
|
// 获取礼包列表
|
|
newUserGiftListPage: function(data) {
|
|
return request({
|
|
url: '/ecommendnewuserbag/giftBagListPage',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
|
|
// 修改小程序礼包上架/下架状态
|
|
updateNewUserGiftState: function(sid,isEnable) {
|
|
return request({
|
|
url: '/ecommendnewuserbag/isGrounding/'+sid+"/"+isEnable
|
|
});
|
|
},
|
|
|
|
// 新增、保存礼包
|
|
saveNewUserGift: function(data) {
|
|
return request({
|
|
url: '/ecommendnewuserbag/saveGiftBag',
|
|
method: 'post',
|
|
data: data
|
|
});
|
|
},
|
|
|
|
// 初始化礼包
|
|
newUserGiftInit: function(data) {
|
|
return request({
|
|
url: '/ecommendnewuserbag/giftBagInit/'+data,
|
|
method: 'get'
|
|
});
|
|
},
|
|
|
|
}
|
|
|
|
|