|
@@ -7,7 +7,6 @@
|
|
|
<bt-search :clickPath="clickPath" :toestText='hotSearchText'></bt-search>
|
|
|
</view>
|
|
|
<view class="banner-section">
|
|
|
- <!-- <uni-swiper-dot :info="bannerList" :current="current" field="content" :mode="mode" > -->
|
|
|
<swiper class="banner tui-banner tui-skeleton-rect" circular @change="swiperChange" :autoplay="true" :interval="5000" :duration="500" :circular="true">
|
|
|
<swiper-item v-for="(item, index) in bannerImageList" :key="index" class="banner-item">
|
|
|
<image :src="item" />
|
|
@@ -19,34 +18,33 @@
|
|
|
:class="[idx===current?'swiper__dots-long':'none']"
|
|
|
:data-index="current" class="swiper__dots-item" />
|
|
|
</view>
|
|
|
- <!-- </uni-swiper-dot> -->
|
|
|
</view>
|
|
|
<view class="cate-section clearfix">
|
|
|
<!-- 自定义分类导航栏 -->
|
|
|
<view class="tabbar clearfix">
|
|
|
- <view class="cate-item" v-for="(nav,idx) in productsClassify" :key="idx" @click.stop="navToListPage(nav)">
|
|
|
- <image class="tui-skeleton-fillet" :src="nav.classifyImage"></image>
|
|
|
+ <view class="cate-item" v-for="(nav,idx) in productsClassifyList" :key="idx" @click.stop="navToListPage(nav)">
|
|
|
+ <image class="tui-skeleton-circular" :src="nav.classifyImage"></image>
|
|
|
<text class="tui-skeleton-rect">{{nav.classifyName}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 优选分类 -->
|
|
|
<view class="tabbar clearfix">
|
|
|
<view class="cate-item-info" @click.stop="this.$api.navToListPage({type:'1',value:firstModulesName})">
|
|
|
- <image class="tui-skeleton-fillet" :src="firstModulesImage"></image>
|
|
|
+ <image class="tui-skeleton-circular" :src="firstModulesImage"></image>
|
|
|
<text class="tui-skeleton-fillet">{{firstModulesName}}</text>
|
|
|
</view>
|
|
|
<view class="cate-item-info" @click.stop="this.$api.navToListPage({type:'2',value:secondModulesName})">
|
|
|
- <image class="tui-skeleton-fillet" :src="secondModulesImage"></image>
|
|
|
+ <image class="tui-skeleton-circular" :src="secondModulesImage"></image>
|
|
|
<text class="tui-skeleton-fillet">{{secondModulesName}}</text>
|
|
|
</view>
|
|
|
<view class="cate-item-info" @click="showTost">
|
|
|
- <image class="tui-skeleton-fillet" :src="navInforList[0].icon"></image>
|
|
|
+ <image class="tui-skeleton-circular" :src="navInforList[0].icon"></image>
|
|
|
<text class="tui-skeleton-fillet">{{navInforList[0].text}}</text>
|
|
|
</view>
|
|
|
<view class="cate-item-info">
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
<button class="contact-btn" open-type="contact" @bindcontact="handleContact">
|
|
|
- <image class="tui-skeleton-fillet" :src="navInforList[1].icon"></image>
|
|
|
+ <image class="tui-skeleton-circular" :src="navInforList[1].icon"></image>
|
|
|
</button>
|
|
|
<!-- #endif -->
|
|
|
<text class="tui-skeleton-fillet">{{navInforList[1].text}}</text>
|
|
@@ -55,9 +53,9 @@
|
|
|
</view>
|
|
|
<!-- 热销商品 -->
|
|
|
<view class="hotgoods-section">
|
|
|
- <view class="s-header tui-skeleton-fillet" @click="this.$api.navToListPage({type:'3',value:thirdModulesName})">
|
|
|
- <text class="tip">{{thirdModulesName}}</text>
|
|
|
- <text class="tit">更多</text>
|
|
|
+ <view class="s-header" @click="this.$api.navToListPage({type:'3',value:thirdModulesName})">
|
|
|
+ <text class="tip tui-skeleton-fillet">{{thirdModulesName}}</text>
|
|
|
+ <text class="tit tui-skeleton-fillet">更多</text>
|
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
|
</view>
|
|
|
<view class="hotgoods-swiper">
|
|
@@ -136,6 +134,7 @@
|
|
|
|
|
|
<script>
|
|
|
import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
|
|
|
+ import navigationTab from "@/components/cm-module/home/navigationTab.vue"
|
|
|
import authorize from '@/common/config/authorize.js'
|
|
|
import modalLayer from "@/components/modal-layer"
|
|
|
import btSearch from '@/components/uni-search/bt-search.vue'
|
|
@@ -146,6 +145,7 @@
|
|
|
export default {
|
|
|
components:{
|
|
|
tuiSkeleton,
|
|
|
+ navigationTab,
|
|
|
modalLayer,
|
|
|
btSearch,
|
|
|
uniStars,
|
|
@@ -166,24 +166,23 @@
|
|
|
modallayer:false,
|
|
|
isLogin:false,
|
|
|
bannerImageList:[],
|
|
|
- hotGoodsList:[],
|
|
|
skeletonShow: true,
|
|
|
organizeProducts:[],//常用商品
|
|
|
+ productsClassifyList:[
|
|
|
+ {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-vip%403x.png',classifyName:'采美采购'},
|
|
|
+ {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-vip%403x.png',classifyName:'采美采购'},
|
|
|
+ {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-vip%403x.png',classifyName:'采美采购'},
|
|
|
+ {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-vip%403x.png',classifyName:'采美采购'},
|
|
|
+ {classifyImage:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-vip%403x.png',classifyName:'采美采购'}
|
|
|
+ ],//分类导航
|
|
|
firstModulesName:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png', //优惠模块1
|
|
|
secondModulesName:'', //优惠模块2
|
|
|
firstModulesImage:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png',//优惠模块icon1
|
|
|
secondModulesImage:'',//优惠模块icon2
|
|
|
thirdModulesName:'', //优惠模块3
|
|
|
navInforList:[
|
|
|
- {text:'会员中心',icon:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png'},
|
|
|
- {text:'在线客服',icon:'https://img.caimei365.com/group1/M00/03/8D/Cmis215XHXWABv0rAACt9b8scec656.png'}
|
|
|
- ],
|
|
|
- productsClassify:[
|
|
|
- {classifyName:'针剂',classifyImage:'https://img.caimei365.com/group1/M00/03/7A/Cmis213wz86AQuJBAABgU_SS4II914.png'},
|
|
|
- {classifyName:'线材/假体',classifyImage:'https://img.caimei365.com/group1/M00/03/7A/Cmis213wz-OAei3KAABf7oyhz8c939.png'},
|
|
|
- {classifyName:'仪器',classifyImage:'https://img.caimei365.com/group1/M00/03/7A/Cmis213w0AeAJGGSAABlVRKhWFE375.png'},
|
|
|
- {classifyName:'护肤',classifyImage:'https://img.caimei365.com/group1/M00/03/7A/Cmis213w0ByABQfJAABdoMz4qTo227.png'},
|
|
|
- {classifyName:'易耗品',classifyImage:'https://img.caimei365.com/group1/M00/03/7A/Cmis213w0DKAKKaaAABbkEy5ilM324.png'}
|
|
|
+ {text:'会员中心',icon:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-vip%403x.png'},
|
|
|
+ {text:'在线客服',icon:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/04/icon-kefu%403x.png'}
|
|
|
],
|
|
|
navServerList:[
|
|
|
{text:'会员优惠',icon:'../../../static/temp/server1@2x.png',path:'/pages/service/member'},
|
|
@@ -236,6 +235,7 @@
|
|
|
this.firstModulesImage= data.firstModulesImage
|
|
|
this.secondModulesImage= data.secondModulesImage
|
|
|
this.thirdModulesName= data.thirdModulesName
|
|
|
+ this.productsClassifyList = data.productsClassifyList
|
|
|
this.skeletonShow = false;
|
|
|
if(this.isWxAuthorize){
|
|
|
this.$store.commit('updateAllNum',data.shoppingCartCount)
|
|
@@ -268,7 +268,7 @@
|
|
|
key: 'commodity_id',
|
|
|
data: nav.id,
|
|
|
success: function () {
|
|
|
- self.$api.navToListPage({type:'商品分类',value:nav.classifyName,id:nav.id});
|
|
|
+ self.$api.navToListPage({type:'导航分类',value:nav.classifyName,id:nav.id});
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -419,7 +419,6 @@
|
|
|
.cate-item {
|
|
|
width: 118rpx;
|
|
|
margin-right:28rpx;
|
|
|
- margin-bottom:28rpx;
|
|
|
display: flex;
|
|
|
float: left;
|
|
|
flex-direction: column;
|
|
@@ -437,11 +436,12 @@
|
|
|
width: 90rpx;
|
|
|
height: 90rpx;
|
|
|
margin-bottom: 8rpx;
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
|
}
|
|
|
.cate-item-info {
|
|
|
- width: 160rpx;
|
|
|
- margin-right:20.666rpx;
|
|
|
+ width: 118rpx;
|
|
|
+ margin-right:76.5rpx;
|
|
|
display: flex;
|
|
|
float: left;
|
|
|
flex-direction: column;
|
|
@@ -453,12 +453,13 @@
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
image {
|
|
|
- width: 160rpx;
|
|
|
+ width: 90rpx;
|
|
|
height: 90rpx;
|
|
|
margin-bottom: 16rpx;
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
|
button.contact-btn{
|
|
|
- width: 160rpx;
|
|
|
+ width: 118rpx;
|
|
|
height: 90rpx;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
@@ -474,46 +475,22 @@
|
|
|
background-color:#FFFFFF;
|
|
|
margin-bottom: 16rpx;
|
|
|
image{
|
|
|
- width: 160rpx;
|
|
|
+ width: 90rpx;
|
|
|
height: 90rpx;
|
|
|
margin-bottom: 0;
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- /* 活动 */
|
|
|
- .hot-section{
|
|
|
- padding:0 24rpx 48rpx 24rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- .ht-l{
|
|
|
- width: 339rpx;
|
|
|
- height: 188rpx;
|
|
|
- float: left;
|
|
|
- image{
|
|
|
- width: 339rpx;
|
|
|
- height: 188rpx;
|
|
|
- border-radius:10rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- .ht-r{
|
|
|
- width: 339rpx;
|
|
|
- height: 188rpx;
|
|
|
- float: right;
|
|
|
- image{
|
|
|
- width: 339rpx;
|
|
|
- height: 188rpx;
|
|
|
- border-radius:10rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
.hotgoods-section{
|
|
|
padding: 4rpx 0 24rpx 24rpx;
|
|
|
background: #fff;
|
|
|
.s-header{
|
|
|
display:flex;
|
|
|
align-items:center;
|
|
|
- height: 40rpx;
|
|
|
- line-height: 40rpx;
|
|
|
+ height: 50rpx;
|
|
|
+ line-height: 50rpx;
|
|
|
.tip{
|
|
|
flex: 4;
|
|
|
font-size: 30rpx;
|