Authored by 514335620@qq.com

增加楼层

... ... @@ -111,14 +111,32 @@ const getActivityDetail = () => {
});
};
const getHomeActivity = () => {
var params = {
method: 'app.outlets.activityGet',
platform: 2,
size: 0,
yh_channel: 1,
type: 0,
sort: 2,
client_type: 'h5'
};
return api.get('', sign.apiSign(params)).then(res => {
return res;
});
};
exports.getContent = () => {
let floorsData = {};
return Promise.all([getNavData(), getOutletResource(), getGoodsList()]).then(data => {
return Promise.all([getNavData(), getOutletResource(), getHomeActivity(), getGoodsList()]).then(data => {
floorsData.nav = data[0] || [];
floorsData.content = data[1] || [];
floorsData.goods = data[2];
floorsData.activity = data[2] || [];
floorsData.goods = data[3];
return floorsData;
});
... ...
{{log activity}}
{{! 活动列表}}
{{#activity}}
{{> resources/acivity-outlets}}
{{/activity}}
{{#content}}
{{! 头部banner}}
{{#if focus}}
... ... @@ -48,4 +54,4 @@
{{> resources/plus-star}}
{{/if}}
{{/content}}
{{log goods}}
... ...
{{log data}}
{{#data}}
<div class="back-ground-white">
<img class="back-image" src="{{image coverUrl 640 300}}">
<div class="center-square">
<img class="logo" src="{{image logoUrl 150 100}}"></img>
<div class="title">{{title}}</div>
<div class="num">{{promotionName}} </div>
<div class="time">{{startLeftTime}}</div>
</div>
</div>
{{/data}}
... ...
.outlet-page {
.back-ground-white {
position: relative;
margin: 20px 0;
width: 100%;
height: 300px;
.back-image {
width: 100%;
height: auto;
}
.center-square {
position: absolute;
background: #fffefa;
opacity: 0.9;
top: 50px;
width: 70%;
margin-left: 15%;
height: 200px;
}
.logo {
opacity: 1;
width: 100px;
height: auto;
}
.num {
text-align: center;
font-size: 28px;
color: #ff0705;;
}
.title {
text-align: center;
font-size: 28px;
font-weight: bold;
}
.time {
text-align: center;
font-size: 22px;
}
}
}
... ...
@import "nav";
@import "left-right";
@import "activity";
... ...