|
|
|
@ -83,10 +83,10 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 今日头条 TODO 暂时借用快捷导航字段判断 --> |
|
|
|
<view class="fuwu-tips" v-if="item.name == 'micro_page_componet_nav' && item.value && item.value.length"> |
|
|
|
<view class="fuwu-tips" v-if="item.name == 'micro_page_componet_tips'"> |
|
|
|
<view class="fuwu-tips-title">今日头条</view> |
|
|
|
<view> |
|
|
|
<text class="fuwu-tips-desc1">来自太阳的宝石-8月生辰石</text> |
|
|
|
<text class="fuwu-tips-desc1">{{ item.title }}</text> |
|
|
|
<!-- <text class="fuwu-tips-desc1">线上商城全场限时包邮</text> |
|
|
|
<text class="fuwu-tips-desc2">(部分品牌满额包邮)</text> --> |
|
|
|
</view> |
|
|
|
@ -104,7 +104,7 @@ |
|
|
|
<lf-multi-column-ad :cube-data="item.value"></lf-multi-column-ad> |
|
|
|
</view> |
|
|
|
<!-- TODO 首页发现推荐模块,根据大咖推荐文章修改 --> |
|
|
|
<view v-if="item.name == 'micro_page_componet_article_-' && item.value && item.value.length"> |
|
|
|
<view v-if="item.name == 'micro_page_componet_discovery' && item.value && item.value.length"> |
|
|
|
<lf-index-find :list="item.value"></lf-index-find> |
|
|
|
</view> |
|
|
|
<!-- TODO 大牌不停推模块 - 店铺矩阵 --> |
|
|
|
@ -129,10 +129,10 @@ |
|
|
|
<indexGrouping :grouping-data="item.value" :meta="item.meta"></indexGrouping> |
|
|
|
</view> --> |
|
|
|
<!-- TODO 为你推荐模块 --> |
|
|
|
<view v-if="item.name == 'micro_page_componet_category' && item.value && item.value.length"> |
|
|
|
<view v-if="item.name == 'micro_page_componet_recommended' && item.value && item.value.length"> |
|
|
|
<view class="lf-module-title">为你推荐</view> |
|
|
|
<view style="padding: 0 11px;"> |
|
|
|
<lf-waterfall :list="recommend_list"></lf-waterfall> |
|
|
|
<lf-waterfall :list="transformList(item.value)"></lf-waterfall> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -462,49 +462,7 @@ |
|
|
|
is_login:'',// 是否是登陆状态 |
|
|
|
show_ad: false, // 是否显示ad广告 |
|
|
|
ad_modal_list: [], // ad广告列表 |
|
|
|
nav_bg_color: 'transparent' ,// 导航背景颜色 |
|
|
|
recommend_list: [ |
|
|
|
{ |
|
|
|
id: 10, |
|
|
|
original_price: "4111.00", |
|
|
|
picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", |
|
|
|
pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], |
|
|
|
price: "2412.00", |
|
|
|
product_id: 1008, |
|
|
|
sale: 0, |
|
|
|
title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 10, |
|
|
|
original_price: "4111.00", |
|
|
|
picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", |
|
|
|
pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], |
|
|
|
price: "2412.00", |
|
|
|
product_id: 1008, |
|
|
|
sale: 0, |
|
|
|
title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 10, |
|
|
|
original_price: "4111.00", |
|
|
|
picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", |
|
|
|
pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], |
|
|
|
price: "2412.00", |
|
|
|
product_id: 1008, |
|
|
|
sale: 0, |
|
|
|
title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: 10, |
|
|
|
original_price: "4111.00", |
|
|
|
picture: "https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png", |
|
|
|
pictures: ["https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png"], |
|
|
|
price: "2412.00", |
|
|
|
product_id: 1008, |
|
|
|
sale: 0, |
|
|
|
title: "三亚悦榕庄(Banyan Tree Sanya Resort and Spa)" |
|
|
|
} |
|
|
|
] |
|
|
|
nav_bg_color: 'rgba(255,255,255,0)' ,// 导航背景颜色 |
|
|
|
}; |
|
|
|
}, |
|
|
|
// 注册组件 |
|
|
|
@ -533,7 +491,24 @@ |
|
|
|
lfMultiColumnAd, |
|
|
|
lfSeckill |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
transformList(){ |
|
|
|
return function(list=[]){ |
|
|
|
let new_list = list.map(item => { |
|
|
|
return { |
|
|
|
original_price: item.associate.market_price, |
|
|
|
picture: item.associate.img, |
|
|
|
pictures: [item.associate.img], |
|
|
|
price: item.associate.max_price, |
|
|
|
product_id: item.associate.id, |
|
|
|
sale: item.associate.sale_count, |
|
|
|
title: item.associate.name |
|
|
|
} |
|
|
|
}); |
|
|
|
return new_list; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow(e) { |
|
|
|
|
|
|
|
|
|
|
|
@ -595,13 +570,13 @@ |
|
|
|
// 页面滚动 |
|
|
|
onPageScroll(event){ |
|
|
|
if(event.scrollTop >= 100){ |
|
|
|
this.nav_bg_color = '#ffffff'; |
|
|
|
this.nav_bg_color = 'rgba(255,255,255,1)'; |
|
|
|
uni.setNavigationBarColor({ |
|
|
|
frontColor: "#000000", |
|
|
|
backgroundColor: "#0000000" |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.nav_bg_color = 'transparent'; |
|
|
|
this.nav_bg_color = 'rgba(255,255,255,0)'; |
|
|
|
uni.setNavigationBarColor({ |
|
|
|
frontColor: "#ffffff", |
|
|
|
backgroundColor: "#FFFFFF" |
|
|
|
@ -1193,21 +1168,23 @@ |
|
|
|
} |
|
|
|
.fuwu-tips{ |
|
|
|
width: 686rpx; |
|
|
|
height: 70rpx; |
|
|
|
min-height: 70rpx; |
|
|
|
background-color: #eff6f7; |
|
|
|
margin: 60rpx auto 0; |
|
|
|
display: flex; |
|
|
|
// justify-content: space-between; |
|
|
|
box-sizing: border-box; |
|
|
|
align-items: center; |
|
|
|
padding: 0 30rpx; |
|
|
|
padding: 12rpx 30rpx; |
|
|
|
border-radius: 40rpx; |
|
|
|
line-height: 1.2; |
|
|
|
.fuwu-tips-title{ |
|
|
|
font-size: 36rpx; |
|
|
|
color: #186c6b; |
|
|
|
margin-right: 15rpx; |
|
|
|
font-weight: bold; |
|
|
|
font-family: '华文行楷'; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
.fuwu-tips-desc1{ |
|
|
|
font-size: 28rpx; |
|
|
|
|