discoveryApi.js
1.75 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import api from '~/utils/request/request'
const path = 'scrm.api.shopmall.zoneInfo.weapp.'
module.exports = {
/**查询商户的指定类型专区列表 */
getZoneInfo(zoneType) {
return api.post({
method: `${path}listByMerchantId`,
zoneType //专区类型(1发现频道,2商城专区)
})
},
/** 晒单详情 */
getOrderShareRecordDetail(id) {
return api.post({
method: 'scrm.api.shopmall.weapp.orderShareRecord.detail',
id
})
},
getDiscoverConfig(data) {
return api.post({
method: 'scrm.api.shopmall.weapp.discover.channel.merchant.getconfig',
...data
})
},
getDiscoverChannelDetail(data) {
wx.$api.showLoading('加载中...')
return api.post({
method: 'scrm.api.shopmall.weapp.discoverchannel.detail',
...data
})
},
/**判断用户是否有领过膜类专区的优惠券 */
judgeRecord(data) {
return api.post({
method: 'scrm.api.shopmall.weapp.discoverchannel.coupon.record.get',
...data
})
},
/**发现列表视频直播 */
getDiscoverChannelVideo(data) {
return api.post({
method: 'scrm.api.busassistant.discover.channel.live',
...data
})
},
/**查询小程序发现频道-配置升级的分类列表 */
getDiscoverChannelCategory(data) {
return api.post({
method: 'scrm.api.shopmall.discover.category.merchant.list',
...data
})
},
/**查询小程序发现频道-配置升级的商品 */
getDiscoverChannelCategoryGoods(data) {
return api.post({
method: 'scrm.api.shopmall.goods.configuration.list.mini',
...data
})
},
/*获取商户详情 */
getMerchantDetail(data) {
return api.post({
method: 'scrm.api.carlife.merchant.detail',
...data
})
}
}