|
@@ -89,13 +89,13 @@
|
|
</view>
|
|
</view>
|
|
<!-- 快捷导航 -->
|
|
<!-- 快捷导航 -->
|
|
<view class="quick-nav pa-box" v-if="hasShopiing&&navList.length">
|
|
<view class="quick-nav pa-box" v-if="hasShopiing&&navList.length">
|
|
- <iconItemsList :list="navList" :isLogin="true" :iconSize="45" @callback="onNavFun"></iconItemsList>
|
|
|
|
|
|
+ <iconItemsList :list="navList" :isLogin="true" :sysUserFlag="userInfo.sysUserFlag" :iconSize="45" @callback="onNavFun"></iconItemsList>
|
|
</view>
|
|
</view>
|
|
<!-- 产品分类 -->
|
|
<!-- 产品分类 -->
|
|
<view class="ptype-nav pa-box" v-if="hasShopiing&&productTypeList.length">
|
|
<view class="ptype-nav pa-box" v-if="hasShopiing&&productTypeList.length">
|
|
<swiper class="swiper" :style="{height:navHeight==44?'160px':'160px'}" @change="e=>{currentPtypeDot=e.detail.current}">
|
|
<swiper class="swiper" :style="{height:navHeight==44?'160px':'160px'}" @change="e=>{currentPtypeDot=e.detail.current}">
|
|
<swiper-item v-for="(item, idx) in productTypeList" :index="idx" :key="item.id">
|
|
<swiper-item v-for="(item, idx) in productTypeList" :index="idx" :key="item.id">
|
|
- <iconItemsList :isLogin="hasLogin" :list="item.list" type="img"></iconItemsList>
|
|
|
|
|
|
+ <iconItemsList :isLogin="hasLogin" :sysUserFlag="userInfo.sysUserFlag" :list="item.list" type="img"></iconItemsList>
|
|
</swiper-item>
|
|
</swiper-item>
|
|
</swiper>
|
|
</swiper>
|
|
<view class="indicator-dots" v-if="productTypeList.length>1">
|
|
<view class="indicator-dots" v-if="productTypeList.length>1">
|
|
@@ -119,6 +119,7 @@
|
|
:itemWidth="(screenWidth-25)*0.5"
|
|
:itemWidth="(screenWidth-25)*0.5"
|
|
:gap="5"
|
|
:gap="5"
|
|
:isLogin="hasLogin"
|
|
:isLogin="hasLogin"
|
|
|
|
+ :sysUserFlag="userInfo.sysUserFlag"
|
|
></productItem>
|
|
></productItem>
|
|
<view style="padding: 50upx 0;">
|
|
<view style="padding: 50upx 0;">
|
|
<u-empty :src="`/static/nodata.png`" icon-size="180" :text="noDataText" img-width="120" v-if="totalhotPage==0 && status!='loading'" mode="list"></u-empty>
|
|
<u-empty :src="`/static/nodata.png`" icon-size="180" :text="noDataText" img-width="120" v-if="totalhotPage==0 && status!='loading'" mode="list"></u-empty>
|
|
@@ -394,7 +395,9 @@
|
|
// 获取扫描记录
|
|
// 获取扫描记录
|
|
this.getVinLog()
|
|
this.getVinLog()
|
|
// 商品分类
|
|
// 商品分类
|
|
- this.getGoodType()
|
|
|
|
|
|
+ if(this.productTypeList.length == 0){
|
|
|
|
+ this.getGoodType()
|
|
|
|
+ }
|
|
// 获取推荐产品
|
|
// 获取推荐产品
|
|
this.getHotProductList()
|
|
this.getHotProductList()
|
|
}
|
|
}
|
|
@@ -403,8 +406,8 @@
|
|
this.hasShopiing = true
|
|
this.hasShopiing = true
|
|
// 隐藏促销模块
|
|
// 隐藏促销模块
|
|
this.hidePromoTab()
|
|
this.hidePromoTab()
|
|
- if(!flag){
|
|
|
|
- // 商品分类
|
|
|
|
|
|
+ // 商品分类
|
|
|
|
+ if(this.productTypeList.length == 0){
|
|
this.getGoodType()
|
|
this.getGoodType()
|
|
}
|
|
}
|
|
// 获取推荐产品
|
|
// 获取推荐产品
|
|
@@ -619,6 +622,11 @@
|
|
// 去搜索产品
|
|
// 去搜索产品
|
|
toSearch(event){
|
|
toSearch(event){
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
|
|
+ // 游客去认证
|
|
|
|
+ if(this.userInfo.sysUserFlag == '0'){
|
|
|
|
+ this.toAuthStore()
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'/pagesB/shopiing/searchProduct?queryWord='+event.value+'&clzId='
|
|
url:'/pagesB/shopiing/searchProduct?queryWord='+event.value+'&clzId='
|
|
})
|
|
})
|