home.js
907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import api from '../request/http'
module.exports = {
/**获取商城首页商品数据 */
getGoodsStockroomList(data) {
return api.post({
method: 'scrm.api.shopmall.app.platform.goods.stockroom.page',
...data
})
},
/**获取商品详情 */
getGoodsDetailInfo(data) {
return api.post({
method: 'scrm.api.shopmall.app.stockroom.goods.detail',
...data
})
},
/**获取前端分类 */
getHomeCategoryList(data) {
return api.post({
method: 'scrm.api.shopmall.scrm.frontendcategory.listAll',
...data
})
},
/**确认订单下单 */
createOrder(data) {
return api.post({
method: 'scrm.api.shopmall.points.order.create',
...data
})
},
/**获取积分会首页配置数据 */
getHomeConfigData(data) {
return api.post({
method: 'scrm.api.shopmall.scrm.mallmini.findByType',
...data
})
}
}