['设置中心']

This commit is contained in:
2021-09-24 15:11:14 +08:00
parent 08c56ea921
commit 3dc185139c
172 changed files with 13194 additions and 433 deletions

View File

@@ -8,27 +8,6 @@
import { request } from '../index'
// 商城首页
const mall = data => {
return request({
url: "mall"
})
}
// 商品列表
const list = data => {
return request({
url: "mall/goods",
data
})
}
// 商品详情
const goods = id => {
return request({
url: 'mall/goods/' + id
})
}
// 商品管理-商品列表
const managesGoodsIndex = data => {
@@ -56,22 +35,6 @@ const managesGoodsBurn = data => {
})
}
// 商品管理-商品上架 ********已废弃
const managesGoodsOnsale = id => {
return request({
url: 'manages/goods/'+id+'/onsale',
method:'PUT'
})
}
// 商品管理-商品下架 ********已废弃
const managesGoodsOffsale = id => {
return request({
url: 'manages/goods/'+id+'/offsale',
method:'PUT'
})
}
// 发布商品前置
const managesGoodsCreateBefore = () => {
return request({
@@ -126,35 +89,6 @@ const managesGoodsEdit = id => {
url: 'manages/goods/' + id
})
}
// 区块链证书
const managesChain = (id) => {
return request({
url: 'mall/goods/'+ id + '/chain'
})
}
// 商品认证
const managesAttestation = (id) => {
return request({
url: 'mall/goods/'+ id +'/message'
})
}
// 商品溯源
const managesTracedTo = (id) => {
return request({
url: 'mall/goods/'+ id +'/trace'
})
}
// 领取优惠券
const managesCoupons = (id) => {
return request({
url: 'coupons/'+ id +'/grant',
method: 'POST'
})
}
// 产品编辑
const managesGoodsPut = (id, data) => {
@@ -173,14 +107,9 @@ const managesGoodsExtends = id => {
}
export {
mall,
list,
goods,
managesGoodsIndex,
managesGoodsMint,
managesGoodsBurn,
managesGoodsOnsale,
managesGoodsOffsale,
managesGoodsCreateBefore,
managesGoodsCreate,
managesCategory,
@@ -188,10 +117,6 @@ export {
managesGoodsDelete,
managesGoodsEdit,
managesCreate,
managesChain,
managesAttestation,
managesTracedTo,
managesCoupons,
managesGoodsPut,
managesGoodsExtends
}