Skip to content

Commit

Permalink
新品、推荐商品、推荐专题页面添加
Browse files Browse the repository at this point in the history
  • Loading branch information
zhh committed Nov 13, 2018
1 parent bde51f8 commit 8c86685
Show file tree
Hide file tree
Showing 6 changed files with 1,383 additions and 12 deletions.
40 changes: 40 additions & 0 deletions src/api/homeSubject.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import request from '@/utils/request'
export function fetchList(params) {
return request({
url:'/home/recommendSubject/list',
method:'get',
params:params
})
}

export function updateRecommendStatus(data) {
return request({
url:'/home/recommendSubject/update/recommendStatus',
method:'post',
data:data
})
}

export function deleteHomeSubject(data) {
return request({
url:'/home/recommendSubject/delete',
method:'post',
data:data
})
}

export function createHomeSubject(data) {
return request({
url:'/home/recommendSubject/create',
method:'post',
data:data
})
}

export function updateHomeSubjectSort(params) {
return request({
url:'/home/recommendSubject/update/sort/'+params.id,
method:'post',
params:params
})
}
40 changes: 40 additions & 0 deletions src/api/hotProduct.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import request from '@/utils/request'
export function fetchList(params) {
return request({
url:'/home/recommendProduct/list',
method:'get',
params:params
})
}

export function updateRecommendStatus(data) {
return request({
url:'/home/recommendProduct/update/recommendStatus',
method:'post',
data:data
})
}

export function deleteHotProduct(data) {
return request({
url:'/home/recommendProduct/delete',
method:'post',
data:data
})
}

export function createHotProduct(data) {
return request({
url:'/home/recommendProduct/create',
method:'post',
data:data
})
}

export function updateHotProductSort(params) {
return request({
url:'/home/recommendProduct/update/sort/'+params.id,
method:'post',
params:params
})
}
40 changes: 40 additions & 0 deletions src/api/newProduct.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import request from '@/utils/request'
export function fetchList(params) {
return request({
url:'/home/newProduct/list',
method:'get',
params:params
})
}

export function updateRecommendStatus(data) {
return request({
url:'/home/newProduct/update/recommendStatus',
method:'post',
data:data
})
}

export function deleteNewProduct(data) {
return request({
url:'/home/newProduct/delete',
method:'post',
data:data
})
}

export function createNewProduct(data) {
return request({
url:'/home/newProduct/create',
method:'post',
data:data
})
}

export function updateNewProductSort(params) {
return request({
url:'/home/newProduct/update/sort/'+params.id,
method:'post',
params:params
})
}
Loading

0 comments on commit 8c86685

Please sign in to comment.