| | |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | |
| | | |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <view class="centerSwiper-container colCenCen borderBox" v-if="singleLineList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="5000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in singleLineList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <view class="cardsList-container rowCenBet borderBox" v-if="doubleLineList.length>0"> |
| | | <block v-for="(items,index) in doubleLineList" :key='index'> |
| | | <view class="card-items defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFill" lazy-load="true"></image> |
| | | </view> |
| | | </block> |
| | | </view> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 金刚区 --> |
| | | <view class="navslider-box" v-if="navbarShowList.length > 0"> |
| | | <swiper class="swiper-type swiper-nav" |
| | |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <!--单列图片--> |
| | | <view class="centerSwiper-container colCenCen borderBox" v-if="singleLineList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="5000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in singleLineList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <!--双列图片--> |
| | | <view class="cardsList-container rowCenBet borderBox" v-if="doubleLineList.length>0"> |
| | | <block v-for="(items,index) in doubleLineList" :key='index'> |
| | | <view class="card-items defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFill" lazy-load="true"></image> |
| | | </view> |
| | | </block> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="pagebottomBody-container colCen borderBox"> |
| | | |
| | | |
| | | <view class="bottomSwiper-container colCenCen borderBox" v-if="bottomBannerList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="3000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in bottomBannerList" :key='index'> |
| | |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <!--全网热销--> |
| | | <view class="van-row"> |
| | | <view class="van-col van-col--12" style="padding-right: 10rpx;"> |
| | | <view class="home-row" @click="gorxb()"> |
| | |
| | | </view> |
| | | </view> |
| | | <!-- 大家都在买 --> |
| | | <view class="everysBuying-container colCen" v-if="zdmList.length>0"> |
| | | <!-- <view class="everysBuying-container colCen" v-if="zdmList.length>0"> |
| | | <view class="box-bar-content rowCen"> |
| | | <view class="title-text"> |
| | | 每日必买 |
| | |
| | | </scroll-view> |
| | | </view> |
| | | |
| | | <!-- <view class="progress"> |
| | | 后面处理 |
| | | |
| | | </view> --> |
| | | </view> |
| | | <view class="goodsFalling-container colCen" v-if="fallingList.length>0"> |
| | | <!-- <view class="goodsFalling-container colCen" v-if="fallingList.length>0"> |
| | | <view class="box-bar-content rowCen"> |
| | | <view class="title-text"> |
| | | 好货直降 |
| | |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <!-- 福利抢购 --> |
| | | <view class="welfare-container colCen"> |
| | | <!-- <view class="welfare-container colCen"> |
| | | <view class="titlebar-container rowCenBet"> |
| | | <view class="left-content rowCen"> |
| | | <view class="titletext"> |
| | |
| | | </view> |
| | | </block> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <!-- 实时疯抢榜 --> |
| | | |
| | |
| | | type: 2 |
| | | }, |
| | | { |
| | | mainTitle: '抖音', |
| | | subTitle: '好物抢购', |
| | | type: 6 |
| | | }, |
| | | { |
| | | mainTitle: '拼多多', |
| | | subTitle: '百亿补贴', |
| | | type: 3 |
| | |
| | | methods: { |
| | | changeRecommend(){ |
| | | var tmp_1 = { |
| | | mainTitle: '热推', |
| | | subTitle: '热推商品', |
| | | mainTitle: '天猫', |
| | | subTitle: '天猫热销', |
| | | type: 5 |
| | | }; |
| | | var tmp_2 = { |
| | |
| | | type: 1 |
| | | }; |
| | | var open_like_recommend = uni.getStorageSync('open_like_recommend'); |
| | | if(this.typedataList.length == 4)this.typedataList.shift() |
| | | if(this.typedataList.length == 5)this.typedataList.shift() |
| | | if(open_like_recommend == 1){ |
| | | this.typedataList.unshift(tmp_2); |
| | | this.bottomType = tmp_2.type; |
| | |
| | | pageSize: 10, |
| | | type: type |
| | | }).then(e => { |
| | | console.log(e) |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | var res = e.data.list; |
| | | if (res.length < 10) { |
| | |
| | | |
| | | .bannerSwiper-container { |
| | | width: 100%; |
| | | height: 280rpx; |
| | | height: 230rpx; |
| | | padding: 0 16rpx; |
| | | margin-bottom: 16rpx; |
| | | |