Browse Source

輪播

undefined
xubin 4 years ago
parent
commit
774dd3f1d5
5 changed files with 20 additions and 22 deletions
  1. +17
    -19
      addons/unishop/uniapp/uni-shop/pages/index/index.vue
  2. +1
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html
  3. +1
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.2347fb58.js
  4. +1
    -0
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.123d8142.js
  5. +0
    -1
      addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.1fe4b508.js

+ 17
- 19
addons/unishop/uniapp/uni-shop/pages/index/index.vue View File

@@ -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 {


+ 1
- 1
addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/index.html View File

@@ -1,3 +1,3 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>宜家自购商城</title><script>document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})</script><link rel=stylesheet href=/h5/static/index.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5/static/js/chunk-vendors.73b1d7ab.js></script><script src=/h5/static/js/index.1c2ef60c.js></script></body></html>
})</script><link rel=stylesheet href=/h5/static/index.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5/static/js/chunk-vendors.73b1d7ab.js></script><script src=/h5/static/js/index.2347fb58.js></script></body></html>

addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/index.2347fb58.js
File diff suppressed because it is too large
View File


+ 1
- 0
addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.123d8142.js
File diff suppressed because it is too large
View File


+ 0
- 1
addons/unishop/uniapp/uni-shop/unpackage/dist/build/h5/static/js/pages-index-index.1fe4b508.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save