...
|
...
|
@@ -10,6 +10,7 @@ const api = global.yoho.API; |
|
|
const serviceAPI = global.yoho.ServiceAPI;
|
|
|
const utils = '../../../utils';
|
|
|
const productProcess = require(`${utils}/product-process`);
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
// 资源位
|
|
|
const _getBanner = (param) => {
|
...
|
...
|
@@ -99,6 +100,16 @@ const getPayCod = (param) => { |
|
|
resu.banner = result[0];
|
|
|
}
|
|
|
|
|
|
if (result && result[0]) {
|
|
|
_.forEach(result[0], function(val) {
|
|
|
if (val.template_name == 'single_image') {
|
|
|
resu.banner = val;
|
|
|
} else if (val.template_name == 'text') {
|
|
|
resu.prompt = val.data;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
if (result && result[1]) {
|
|
|
resu.othersBuy = result[1];
|
|
|
}
|
...
|
...
|
@@ -135,8 +146,15 @@ const getPayAli = (param) => { |
|
|
resu.banner = result[0][0];
|
|
|
}
|
|
|
|
|
|
if (result && result[0] && result[0][1]) {
|
|
|
resu.prompt = result[0][1].data;
|
|
|
if (result && result[0]) {
|
|
|
_.forEach(result[0], function(val) {
|
|
|
if (val.template_name == 'single_image') {
|
|
|
resu.banner = val;
|
|
|
} else if (val.template_name == 'text') {
|
|
|
resu.prompt = val.data;
|
|
|
}
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
if (result && result[1]) {
|
...
|
...
|
|