Authored by biao

update for outlet

... ... @@ -93,14 +93,21 @@ const getGoodsList = () => {
const getActivityDetail = () => {
var params = {
method: 'app.outlet.activityGet',
limit: 50,
page: 1,
outlets: 1
method: 'app.outlets.activityGet',
sort: 2,
platform: 2,
yh_channel: 1,
id: 170,
type: 0
};
return api.get('', sign.apiSign(params)).then(res => {
console.log(res);
if (res.code === 200) {
return res.data;
} else {
log.error('获取奥莱活动详情页接口返回状态码 不是 200', res);
return {};
}
});
};
... ... @@ -111,9 +118,6 @@ exports.getContent = () => {
return Promise.all([getNavData(), getOutletResource(), getGoodsList()]).then(data => {
floorsData.nav = data[0] || [];
floorsData.content = data[1] || [];
// floorsData.content.goods = data[2] || [];
floorsData.goods = data[2];
return floorsData;
... ... @@ -122,5 +126,10 @@ exports.getContent = () => {
exports.getActivity = () => {
return getActivityDetail();
return getActivityDetail().then(res => {
var data = {};
data.outletActivity = res;
return data;
});
};
... ...
... ... @@ -12,4 +12,9 @@
<p class="activity-time" data-time-ms="{{leftTime}}"><i class="iconfont time-ico">&#xe603;</i><span>{{time}}</span></p>
{{/ activity}}
</div>
\ No newline at end of file
{{# outletActivity}}
<img src="{{image webUrl 640 250}}"/>
<p class="activity-time" data-time-ms="{{startLeftTime}}"><i class="iconfont time-ico">&#xe603;</i><span>{{time}}</span></p>
{{/ outletActivity}}
</div>
... ...
... ... @@ -13,11 +13,11 @@ module.exports = {
port: 6001,
siteUrl: '//m.yohobuy.com',
domains: {
// api: 'http://testapi.yoho.cn:28078/', // http://192.168.102.205:8080/gateway
api: 'http://api.yoho.cn/', // http://192.168.102.205:8080/gateway
service: 'http://testservice.yoho.cn:28077/'
api: 'http://devapi.yoho.cn:58078/', // http://192.168.102.205:8080/gateway
// api: 'http://api.yoho.cn/', // http://192.168.102.205:8080/gateway
// service: 'http://testservice.yoho.cn:28077/'
// service: 'http://devservice.yoho.cn:58077/'
service: 'http://devservice.yoho.cn:58077/'
},
useOneapm: false,
useCache: false,
... ...