|
|
@ -12,6 +12,7 @@ |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
video: true, |
|
|
// register 自定义登录字段 |
|
|
// register 自定义登录字段 |
|
|
register: -1, |
|
|
register: -1, |
|
|
// 小广告按钮 |
|
|
// 小广告按钮 |
|
|
@ -1052,6 +1053,9 @@ |
|
|
let that = this |
|
|
let that = this |
|
|
that.isRegister = true |
|
|
that.isRegister = true |
|
|
} else if (res.error == 0) { |
|
|
} else if (res.error == 0) { |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: '../index/index2' |
|
|
|
|
|
}) |
|
|
let that = this |
|
|
let that = this |
|
|
that.isRegister = false |
|
|
that.isRegister = false |
|
|
} |
|
|
} |
|
|
@ -1102,10 +1106,10 @@ |
|
|
//////console.info(res,'最好的') |
|
|
//////console.info(res,'最好的') |
|
|
if (res.error == 0) { |
|
|
if (res.error == 0) { |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
|
|
|
|
|
|
res.data.map(item => { |
|
|
res.data.map(item => { |
|
|
//console.log(item) |
|
|
console.log(item.goods_video) |
|
|
this.bestlist.push({ |
|
|
this.bestlist.push({ |
|
|
|
|
|
goods_video: item.goods_video, |
|
|
block_pic: item.goods_img, |
|
|
block_pic: item.goods_img, |
|
|
block_title3: 'US$' + item.shop_price, |
|
|
block_title3: 'US$' + item.shop_price, |
|
|
block_name: item.short_name, |
|
|
block_name: item.short_name, |
|
|
@ -1368,7 +1372,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<!-- HOMEAD --> |
|
|
<!-- HOMEAD --> |
|
|
<!-- :class="isRegister == true ? 'isRegister-active' : 'isRegister-default'" --> |
|
|
<!-- :class="isRegister == true ? 'isRegister-active' : 'isRegister-default'" --> |
|
|
<view v-if="isRegister == true"> |
|
|
<view v-if="isRegister == true" style="position: fixed; width: 100%; bottom: 9.4%; opacity: 1;z-index: 1;"> |
|
|
<view ref="register" v-if="register == -1"> |
|
|
<view ref="register" v-if="register == -1"> |
|
|
<view class="HOMEAD" v-if="item.zone_code=='HOMEAD' && item.zone_status=='NORMAL'" style="position: relative;"> |
|
|
<view class="HOMEAD" v-if="item.zone_code=='HOMEAD' && item.zone_status=='NORMAL'" style="position: relative;"> |
|
|
<!-- class="discount page_padding" --> |
|
|
<!-- class="discount page_padding" --> |
|
|
@ -1590,7 +1594,18 @@ |
|
|
<view class="container" v-if="bestlist.length>0"> |
|
|
<view class="container" v-if="bestlist.length>0"> |
|
|
<view class="left"> |
|
|
<view class="left"> |
|
|
<view v-for="(item,index) in leftList" :key="index"> |
|
|
<view v-for="(item,index) in leftList" :key="index"> |
|
|
<image :src="item.block_pic" alt="" mode="widthFix" @click="imgTo(item)" |
|
|
<block v-if="item.goods_video"> |
|
|
|
|
|
<scroll-view style="position: relative;"> |
|
|
|
|
|
<video preload="true" webkit-playsinline="true" x5-video-player-type="h5" x5-video-orientation="portraint" controls :autoplay="true" :enable-progress-gesture="true" muted="" style="width: 100%;" |
|
|
|
|
|
:mobilenet-hint-type="1" class="video_play" :http-cache="true" @pause="VideoPuse()" |
|
|
|
|
|
object-fit="contain" :direction="0" :src="item.goods_video" :show-mute-btn="true" |
|
|
|
|
|
@touchstart="touchStart" @touchend="touchEnd"> |
|
|
|
|
|
</video> |
|
|
|
|
|
</scroll-view> |
|
|
|
|
|
<view class="play_icon" v-show="!video" @click="isVideo"></view> |
|
|
|
|
|
</block> |
|
|
|
|
|
|
|
|
|
|
|
<image v-else :src="item.block_pic" alt="" mode="widthFix" @click="imgTo(item)" |
|
|
:class="item.block_title==0&&!item.block_title2&&!item.block_name&&!item.block_title3?'img_border':''"> |
|
|
:class="item.block_title==0&&!item.block_title2&&!item.block_name&&!item.block_title3?'img_border':''"> |
|
|
</image> |
|
|
</image> |
|
|
<view class="item" v-if="item.block_title!=0"> |
|
|
<view class="item" v-if="item.block_title!=0"> |
|
|
@ -1604,11 +1619,22 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="right"> |
|
|
<view class="right"> |
|
|
<view v-for="(item1,index1) in rightList" :key="index1"> |
|
|
<view v-for="(item1,index1) in rightList" :key="index1"> |
|
|
<image :src="item1.block_pic" alt="" mode="widthFix" @click="imgTo(item1)" |
|
|
<block v-if="item1.goods_video"> |
|
|
|
|
|
<scroll-view style="position: relative;"> |
|
|
|
|
|
<video preload="true" webkit-playsinline="true" x5-video-player-type="h5" x5-video-orientation="portraint" controls :autoplay="true" :enable-progress-gesture="true" muted="" style="width: 100%;" |
|
|
|
|
|
:mobilenet-hint-type="1" class="video_play" :http-cache="true" @pause="VideoPuse()" |
|
|
|
|
|
object-fit="contain" :direction="0" :src="item1.goods_video" :show-mute-btn="true" |
|
|
|
|
|
@touchstart="touchStart" @touchend="touchEnd"> |
|
|
|
|
|
</video> |
|
|
|
|
|
</scroll-view> |
|
|
|
|
|
<view class="play_icon" v-show="!video" @click="isVideo"></view> |
|
|
|
|
|
</block> |
|
|
|
|
|
<image v-else :src="item1.block_pic" alt="" mode="widthFix" @click="imgTo(item1)" |
|
|
:class="item1.block_title==0&&!item1.block_title2&&!item1.block_name&&!item1.block_title3?'img_border':''"> |
|
|
:class="item1.block_title==0&&!item1.block_title2&&!item1.block_name&&!item1.block_title3?'img_border':''"> |
|
|
</image> |
|
|
</image> |
|
|
<view class="item" v-if="item1.block_title!=0"> |
|
|
<view class="item" v-if="item1.block_title!=0"> |
|
|
@ -1622,6 +1648,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -1958,6 +1985,10 @@ |
|
|
// padding-top: 90rpx; |
|
|
// padding-top: 90rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.video_play { |
|
|
|
|
|
z-index: 0; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
} |
|
|
.navigation { |
|
|
.navigation { |
|
|
/* display: flex; */ |
|
|
/* display: flex; */ |
|
|
background-color: #000000; |
|
|
background-color: #000000; |
|
|
|