|
|
@@ -41,14 +41,14 @@ |
|
|
|
:day="day" :hour="hour" :minute="minute" :second="second" color="#FFFFFF" background-color="#00B26A" border-color="#00B26A"></uni-countdown> |
|
|
|
<text class="yticon icon-you"></text> |
|
|
|
</view> |
|
|
|
<!-- <view class="floor-list-whitelist"> |
|
|
|
<view class="floor-list-whitelist"> |
|
|
|
<view v-for="(item, index) in flashSale.product" :key="index" class="floor-item" @click="navToDetailPage({ product_id: item.flash_product_id }, flashSale.flash_id)"> |
|
|
|
<image :src="item.image" mode="aspectFill"></image> |
|
|
|
<text class="title clamp">{{item.title }}</text> |
|
|
|
<text class="price">¥{{item.sales_price }}</text> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<scroll-view class="floor-list" scroll-x> |
|
|
|
</view> |
|
|
|
<!-- <scroll-view class="floor-list" scroll-x> |
|
|
|
<view class="scoll-wrapper"> |
|
|
|
<view v-for="(item, index) in flashSale.product" :key="index" class="floor-item" @click="navToDetailPage({ product_id: item.flash_product_id }, flashSale.flash_id)"> |
|
|
|
<image :src="item.image" mode="aspectFill"></image> |
|
|
@@ -56,7 +56,7 @@ |
|
|
|
<text class="price">¥{{item.sales_price }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
</scroll-view> --> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 团购楼层 --> |
|
|
@@ -257,23 +257,21 @@ |
|
|
|
let login = await this.$api.checkLogin(); |
|
|
|
if (login) { |
|
|
|
//获取广告图 |
|
|
|
uni.request({ |
|
|
|
url: that.$unishow + '/ads/index', |
|
|
|
success(res) { |
|
|
|
let carouselList = res.data.data; |
|
|
|
that.titleNViewBackground = carouselList[0].background; |
|
|
|
that.swiperLength = carouselList.length; |
|
|
|
that.carouselList = carouselList; |
|
|
|
} |
|
|
|
that.$api.request('/ads/index', 'GET').then((res) => { |
|
|
|
console.log(res) |
|
|
|
let carouselList = res; |
|
|
|
that.titleNViewBackground = carouselList[0].background; |
|
|
|
that.swiperLength = carouselList.length; |
|
|
|
that.carouselList = carouselList; |
|
|
|
}); |
|
|
|
|
|
|
|
//获取菜单栏 |
|
|
|
uni.request({ |
|
|
|
url: that.$unishow + '/category/menu', |
|
|
|
success(res) { |
|
|
|
that.menu = res.data.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
// uni.request({ |
|
|
|
// url: that.$unishow + '/category/menu', |
|
|
|
// success(res) { |
|
|
|
// that.menu = res.data.data; |
|
|
|
// } |
|
|
|
// }); |
|
|
|
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
|
|
|
@@ -404,7 +402,7 @@ |
|
|
|
position: relative; |
|
|
|
z-index: 5; |
|
|
|
border-radius: 16upx 16upx 0 0; |
|
|
|
margin-top: -20upx; |
|
|
|
margin-top: 20upx; |
|
|
|
} |
|
|
|
|
|
|
|
.carousel-section { |
|
|
|