|
|
|
@ -188,7 +188,6 @@ |
|
|
|
title: '网络不佳,请重新打开........', |
|
|
|
duration: 20000 |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
that.typee = 2 |
|
|
|
console.log("有网络", that.typee); |
|
|
|
@ -196,13 +195,11 @@ |
|
|
|
title: '网络不佳,请重新打开........', |
|
|
|
duration: 2000 |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, 3000) |
|
|
|
} |
|
|
|
}); */ |
|
|
|
// }, |
|
|
|
|
|
|
|
onLoad() { |
|
|
|
let that = this; |
|
|
|
let s = 0; |
|
|
|
@ -384,7 +381,6 @@ |
|
|
|
// 计算图片渲染高度 |
|
|
|
let showH = (50 * image.height) / image.width |
|
|
|
// console.log(Swiper_H) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
return this.hotheight |
|
|
|
@ -434,7 +430,6 @@ |
|
|
|
this.popUrl = item.zone_more_link |
|
|
|
this.open() |
|
|
|
// console.log(this.popImg,item.zone_code) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
@ -463,14 +458,10 @@ |
|
|
|
// if (this.countdownTime < 1) { |
|
|
|
// clearInterval(timer) |
|
|
|
// this.countdownTime = 0 |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// }, 1000) |
|
|
|
|
|
|
|
let timer2 = setInterval(() => { |
|
|
|
// uni.hideTabBar(); |
|
|
|
|
|
|
|
this.countdownTime2--; |
|
|
|
|
|
|
|
console.log(this.countdownTime2) |
|
|
|
@ -571,13 +562,11 @@ |
|
|
|
if (item.zone_code == 'HONLIST3') { |
|
|
|
item.blocks.map(item1 => { |
|
|
|
// console.log('HONLIST3',item1) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
if (item.zone_code == 'HONLIST2') { |
|
|
|
item.blocks.map(item1 => { |
|
|
|
// console.log('HONLIST2',item1) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
if (this.info.length > 1) { |
|
|
|
@ -691,7 +680,6 @@ |
|
|
|
// if(item.attr_name){ |
|
|
|
// this.sizenum=item.goods_attrs.length |
|
|
|
// } |
|
|
|
|
|
|
|
// if(item.attr_name=="Color"){ |
|
|
|
// this.colorNum=item.goods_attrs.length |
|
|
|
// console.log(this.colorNum) |
|
|
|
@ -707,11 +695,9 @@ |
|
|
|
// } |
|
|
|
// else if(item.attr_name=="Size"){ |
|
|
|
// Size_list = item.goods_attrs |
|
|
|
|
|
|
|
// console.log(this.sizenum) |
|
|
|
// Size_list.map( item =>{ |
|
|
|
// this.Size_list +=item.attr_value + ' ' |
|
|
|
|
|
|
|
// }) |
|
|
|
// this.Size_list= this.Size_list.substring(0, this.Size_list.length-1) |
|
|
|
// } |
|
|
|
@ -744,7 +730,6 @@ |
|
|
|
} |
|
|
|
|
|
|
|
// this.catQuery.cat=res.data.cat_id |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -916,7 +901,6 @@ |
|
|
|
|
|
|
|
// ////console.log(sum) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
gotoSearch() { |
|
|
|
@ -961,9 +945,7 @@ |
|
|
|
// skillList.push(mm) |
|
|
|
// this.skillList = skillList |
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -1100,7 +1082,6 @@ |
|
|
|
let code = item.zone_code |
|
|
|
this.getIndex(code) |
|
|
|
// this.getCatList() |
|
|
|
|
|
|
|
}, |
|
|
|
start(e) { |
|
|
|
// console.log(e) |
|
|
|
@ -1135,7 +1116,6 @@ |
|
|
|
// console.log('滚动了',this.hot_index) |
|
|
|
// this.start(this.hot_index) |
|
|
|
// this.end(this.hot_index) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
gridSwiper(e) { |
|
|
|
@ -1206,7 +1186,6 @@ |
|
|
|
<view v-if="typee == 2" class="body" :class="isScrollShow?'body_pad':''"> |
|
|
|
<!-- 进入页面部分 --> |
|
|
|
<view v-show="!open_img || countdownTime2==0"> |
|
|
|
|
|
|
|
<!-- 头部导航栏 --> |
|
|
|
<view class="navigation "> |
|
|
|
<view class="status_bar"></view> |
|
|
|
@ -1219,11 +1198,8 @@ |
|
|
|
<image src="../../static/img/msg_white.png" mode=""></image> |
|
|
|
</uni-badge> |
|
|
|
</navigator> |
|
|
|
|
|
|
|
<image src="/static/img/dope plus_white.png" mode="" class="index_logo"></image> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<view class="navigation_title_right" :class="isScrollShow?'navigation_title_padding':'' "> |
|
|
|
<navigator> |
|
|
|
<image src="../../static/img/like_white.png" mode="" @click="Iswish()"></image> |
|
|
|
@ -1233,17 +1209,14 @@ |
|
|
|
<image src="../../static/img/shop_cart1.png" mode=""></image> |
|
|
|
</uni-badge> |
|
|
|
</navigator> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<navigator> |
|
|
|
<view v-if="isScrollShow " :class="isScrollShow?'isScrollShow3':'' "> |
|
|
|
<image src="/static/icon/home_white.png" mode=""></image> |
|
|
|
</view> |
|
|
|
<view class="navigation_seach" :class="isScrollShow?'isScrollShow1':'' " |
|
|
|
@click="gotoSearch()"> |
|
|
|
|
|
|
|
<image src="../../static/img/seach.png" mode=""></image> |
|
|
|
<text>search</text> |
|
|
|
</view> |
|
|
|
@ -1262,9 +1235,7 @@ |
|
|
|
@click="scrollChange(item,index)" :key="item.zone_name">{{item.zone_name}}</view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="max-width: 100%" v-for="(item,index) in indexDate.zones" :key="item.zone_id"> |
|
|
|
|
|
|
|
<!-- 轮播图 --> |
|
|
|
<view class="uni-margin-wrap page_padding_left1" style="padding-left: 0; padding-right: 0;" |
|
|
|
v-if="item.zone_code=='BANNER' && item.zone_status=='NORMAL'"> |
|
|
|
@ -1278,7 +1249,6 @@ |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 宫格 --> |
|
|
|
<uni-swiper-dot :info="info" :current="current" field="content" mode="default" |
|
|
|
v-if="item.zone_code=='ICON' && item.zone_status=='NORMAL' && item.zone_code!=indexDate.zones[index-1].zone_code"> |
|
|
|
@ -1292,13 +1262,11 @@ |
|
|
|
</view> |
|
|
|
<text>{{item2.block_title}}</text> |
|
|
|
</template> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</uni-swiper-dot> |
|
|
|
|
|
|
|
<!-- ONEPIC --> |
|
|
|
<view class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'"> |
|
|
|
<!-- class="discount page_padding" --> |
|
|
|
@ -1349,9 +1317,6 @@ |
|
|
|
mode="" @click="imgTo(item1)" v-for="(item1,index1) in item.blocks" :key="item1.block_id"> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 标题 --> |
|
|
|
<navigator url="/pages/index/flashSale" v-if="item.zone_code=='SPIKE1' && item.zone_status=='NORMAL'"> |
|
|
|
<view class="index_title page_padding"> |
|
|
|
@ -1363,8 +1328,6 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</navigator> |
|
|
|
|
|
|
|
|
|
|
|
<!-- SPIKE 1 --> |
|
|
|
<scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false" |
|
|
|
v-if="item.zone_code=='SPIKE1' && item.zone_status=='NORMAL'"> |
|
|
|
@ -1378,10 +1341,8 @@ |
|
|
|
<text>US${{item1.promote_price}}</text> |
|
|
|
<view class="spike1_item_text">US${{item1.shop_price}}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<!-- 标题 --> |
|
|
|
<view class="index_title page_padding" v-if="item.zone_code=='TITLE' && item.zone_status=='NORMAL'"> |
|
|
|
<text>{{item.blocks[0].block_title}}</text> |
|
|
|
@ -1389,9 +1350,7 @@ |
|
|
|
<image src="../../static/icon/right_white.png" mode="" @click="Hotgoto(item.blocks)"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- HOT SELLS 1 --> |
|
|
|
|
|
|
|
<view class="hotSells1 page_padding" |
|
|
|
v-if="item.zone_code=='GOODSTWO1' || item.zone_code=='GOODSTHREE1'"> |
|
|
|
<template v-if="item.zone_code=='GOODSTWO1' && item.zone_status=='NORMAL'"> |
|
|
|
@ -1415,7 +1374,6 @@ |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 标题 --> |
|
|
|
<!-- <view class="index_title page_padding"> |
|
|
|
<text>Hot Selle</text> |
|
|
|
@ -1423,8 +1381,6 @@ |
|
|
|
<image src="../../static/img/right.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- HOT SELLS 2 --> |
|
|
|
<scroll-view class="spike1 page_padding" scroll-x="true" @change="handlechange" :show-scrollbar="false" |
|
|
|
:indicator-dots="true" :circular="true" :interval="3000" :duration="1000" |
|
|
|
@ -1464,7 +1420,6 @@ |
|
|
|
</swiper> |
|
|
|
</view> --> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<!-- 标题 --> |
|
|
|
<!-- <view class="index_title page_padding"> |
|
|
|
<text>Hot Selle</text> |
|
|
|
@ -1472,7 +1427,6 @@ |
|
|
|
<image src="../../static/img/right.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- HOT SELLS 3 --> |
|
|
|
<scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false" |
|
|
|
v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot"> |
|
|
|
@ -1485,7 +1439,6 @@ |
|
|
|
<text>{{item1.block_title}}</text> |
|
|
|
<view class="spike1_item_text1">{{item1.block_title2}}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
<!-- HOT SELLS 1 --> |
|
|
|
@ -1502,14 +1455,12 @@ |
|
|
|
<text>{{item1.block_title}}</text> |
|
|
|
<view class="spike1_item_text1">{{item1.block_title2}}</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
<!-- GOODSTHREE 2 --> |
|
|
|
<!-- <view class="goodsthree2"> |
|
|
|
<view class="goodsthree2_item" v-for="(item,index) in 3" :key="index"></view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- 轮播图 --> |
|
|
|
<!-- <view class="uni-margin-wrap"> |
|
|
|
<swiper class="swiper" circular :indicator-dots="true" :autoplay="true" > |
|
|
|
@ -1524,7 +1475,6 @@ |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- SPIKE 1 --> |
|
|
|
<!-- <scroll-view class="spike1 page_padding_left" scroll-x="true" :show-scrollbar="false"> |
|
|
|
<view class="spike1_item" v-for="(item,index) in 8" :key="index"> |
|
|
|
@ -1538,7 +1488,6 @@ |
|
|
|
</view> |
|
|
|
<!-- 瀑布流标题 --> |
|
|
|
<!-- <view class="index_title1" v-if="bestlist.length>0">PRODUCTS FRO YOU</view> --> |
|
|
|
|
|
|
|
<!-- <view class="waterfall" v-if="bestlist.length>0" > |
|
|
|
<custom-waterfalls-flow :value="bestlist" imageKey="block_pic"@imageClick="imgTo(bestlist)"> |
|
|
|
<template v-slot:default="item2"> |
|
|
|
@ -1587,7 +1536,6 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- //购物车 --> |
|
|
|
@ -1619,13 +1567,11 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="quantity"> |
|
|
|
<text>Quantity</text> |
|
|
|
<uni-number-box background="#FFFFFF" v-model="cartQuery.goods_number" :min="1"></uni-number-box> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<button @click="addCart">ADD TO CART</button> |
|
|
|
</view> |
|
|
|
<view class="mask" @click="isCart=false" v-show="isCart"></view> |
|
|
|
@ -1633,7 +1579,6 @@ |
|
|
|
<view v-show="popImg"> |
|
|
|
<!-- <button @click="open">打开弹窗</button> --> |
|
|
|
<uni-popup ref="popup" :mask-click="false"> |
|
|
|
|
|
|
|
<view class="Popup"> |
|
|
|
<view class="popup_close"> |
|
|
|
<image mode=" " @click="close" src="../../static/img/close2.png"></image> |
|
|
|
@ -1647,7 +1592,6 @@ |
|
|
|
</uni-popup> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 启动页广告 --> |
|
|
|
<view class="open_bg" ref="imgRef" v-show="countdownTime2>0?true:false"> |
|
|
|
<!-- <view class="open_text"><text @click="countdownTime2 =0">{{ countdownTime2 }}s skip</text></view> --> |
|
|
|
@ -1661,7 +1605,6 @@ |
|
|
|
<image :src="item.block_pic" mode="" @click="imgTo(item)"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="bootom_last" v-if="bootom == 1">-THE END-</view> |
|
|
|
<view class="tarbar"> |
|
|
|
@ -1873,7 +1816,6 @@ |
|
|
|
z-index: 99; |
|
|
|
background: rgba(0, 0, 0, 0.7) !important; |
|
|
|
// margin-top: -150rpx; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.isScrollShow3 { |
|
|
|
@ -2016,7 +1958,6 @@ |
|
|
|
// height: 0; |
|
|
|
// background-color: #000; |
|
|
|
// } |
|
|
|
|
|
|
|
view { |
|
|
|
margin-left: 46.67rpx; |
|
|
|
display: inline-block; |
|
|
|
@ -2085,7 +2026,6 @@ |
|
|
|
.grid_swiper { |
|
|
|
// height: 380rpx; |
|
|
|
// margin: 0 10rpx 0 10rpx; |
|
|
|
|
|
|
|
.grid_content { |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
@ -2127,7 +2067,6 @@ |
|
|
|
// .grid_item:nth-child(n+4){ |
|
|
|
// margin-right: 0; |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -2361,7 +2300,6 @@ |
|
|
|
// margin-top: 24.67rpx; |
|
|
|
margin-top: 14.67rpx; |
|
|
|
// margin-bottom: 32.67rpx; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.title1 { |
|
|
|
@ -2409,7 +2347,6 @@ |
|
|
|
margin: 0 10rpx 0 10rpx; |
|
|
|
// width: 80vw; |
|
|
|
// height:400rpx ; |
|
|
|
|
|
|
|
.best_one { |
|
|
|
width: 45vw; |
|
|
|
height: 400rpx; |
|
|
|
@ -2444,7 +2381,6 @@ |
|
|
|
background-color: #000; |
|
|
|
color: white; |
|
|
|
// padding-bottom: 50rpx; |
|
|
|
|
|
|
|
.uni-view {} |
|
|
|
|
|
|
|
} |
|
|
|
@ -2464,7 +2400,6 @@ |
|
|
|
// margin-top: 24.67rpx; |
|
|
|
color: #fff; |
|
|
|
// margin-bottom: 10.67rpx; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.title1 { |
|
|
|
@ -2607,7 +2542,6 @@ |
|
|
|
z-index: 9999999; |
|
|
|
position: fixed; |
|
|
|
// padding-top: 50rpx; |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
background-size: cover; |
|
|
|
background-repeat: no-repeat; |
|
|
|
@ -2663,7 +2597,6 @@ |
|
|
|
// width: 100%; |
|
|
|
// height: 100%; |
|
|
|
// margin: -6px 0; |
|
|
|
|
|
|
|
// image { |
|
|
|
// width: 100%; |
|
|
|
// } |
|
|
|
|