...
|
...
|
@@ -10,12 +10,17 @@ const logger = global.yoho.logger; |
|
|
const service = global.yoho.ServiceAPI;
|
|
|
|
|
|
const shopList = (uid, tabName, channelId) => {
|
|
|
return api.get('', {
|
|
|
let params = {
|
|
|
method: 'app.shops.promote',
|
|
|
uid: uid,
|
|
|
tab_name: tabName,
|
|
|
channel_id: channelId
|
|
|
}, {
|
|
|
tab_name: tabName
|
|
|
};
|
|
|
|
|
|
if (channelId) {
|
|
|
params.channel_id = channelId;
|
|
|
}
|
|
|
|
|
|
return api.get('', params, {
|
|
|
code: 200
|
|
|
}).then((result) => {
|
|
|
if (result && result.code === 200) {
|
...
|
...
|
@@ -40,10 +45,14 @@ const shopList = (uid, tabName, channelId) => { |
|
|
};
|
|
|
|
|
|
const shopNav = (channelId) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.shops.promoteTabNameList',
|
|
|
channel_id: channelId
|
|
|
}, {
|
|
|
let params = {
|
|
|
method: 'app.shops.promoteTabNameList'
|
|
|
};
|
|
|
|
|
|
if (channelId) {
|
|
|
params.channel_id = channelId;
|
|
|
}
|
|
|
return api.get('', params, {
|
|
|
cache: true,
|
|
|
code: 200
|
|
|
}).then((result) => {
|
...
|
...
|
|