|
@@ -4,7 +4,6 @@
|
|
<head>
|
|
<head>
|
|
<title>采美365网-中国美业全方位线上交易服务互动平台,做美业,上采美</title>
|
|
<title>采美365网-中国美业全方位线上交易服务互动平台,做美业,上采美</title>
|
|
<template th:replace="components/headLink"></template>
|
|
<template th:replace="components/headLink"></template>
|
|
- <link href="/lib/swiper.min.css" media="screen and (max-width:768px)" rel="stylesheet" type="text/css">
|
|
|
|
<link th:href="@{/css/index/index.h5.css(v=${version})}" media="screen and (max-width:768px)" rel="stylesheet" type="text/css">
|
|
<link th:href="@{/css/index/index.h5.css(v=${version})}" media="screen and (max-width:768px)" rel="stylesheet" type="text/css">
|
|
<link th:href="@{/css/index/index.pc.css(v=${version})}" media="screen and (min-width:768px)" rel="stylesheet" type="text/css">
|
|
<link th:href="@{/css/index/index.pc.css(v=${version})}" media="screen and (min-width:768px)" rel="stylesheet" type="text/css">
|
|
</head>
|
|
</head>
|
|
@@ -51,29 +50,49 @@
|
|
<!--页面主体数据-->
|
|
<!--页面主体数据-->
|
|
<div class="wrap">
|
|
<div class="wrap">
|
|
<div th:each="item: ${pageFloors}">
|
|
<div th:each="item: ${pageFloors}">
|
|
- <div th:if="${item.type}==1">
|
|
|
|
|
|
+ <div th:if="${item.type}==1" class="recMain">
|
|
<!--推荐专区-->
|
|
<!--推荐专区-->
|
|
<div class="floorTit">
|
|
<div class="floorTit">
|
|
<h2 th:text="${item.title}" data-id="1"></h2>
|
|
<h2 th:text="${item.title}" data-id="1"></h2>
|
|
</div>
|
|
</div>
|
|
- <div id="recommendBox" class="swiper-container">
|
|
|
|
- <ul class="swiper-wrapper">
|
|
|
|
- <li class="swiper-slide mfc" v-for="product in recommends">
|
|
|
|
- <a :href="'/product/detail.html?pid='+product.pid" target="_blank">
|
|
|
|
- <img :src="product.image" :alt="product.name">
|
|
|
|
- <p v-html="product.name"></p>
|
|
|
|
- <div>
|
|
|
|
- 价格{{product.pricegrade}}
|
|
|
|
|
|
+ <div class="floorCon">
|
|
|
|
+ <div id="recommendBox" class="swiper-container">
|
|
|
|
+ <ul class="swiper-wrapper" v-cloak>
|
|
|
|
+ <li class="swiper-slide mfc" v-for="p in recommends">
|
|
|
|
+ <div class="item">
|
|
|
|
+ <a class="image" :href="'/product/detail.html?pid='+p.pid" target="_blank">
|
|
|
|
+ <img :src="p.image" :alt="p.name">
|
|
|
|
+ <span v-if="p.acttype==1||p.acttype==2" :class="p.acttype==1?'icon hot':'icon new'"></span>
|
|
|
|
+ </a>
|
|
|
|
+ <a class="name" :href="'/product/detail.html?pid='+p.pid" target="_blank">
|
|
|
|
+ <span v-html="p.name"></span>
|
|
|
|
+ </a>
|
|
|
|
+ <div class="price">
|
|
|
|
+ <template v-if="loginState">
|
|
|
|
+ <em v-if="p.priceflag==1">未公开价格</em>
|
|
|
|
+ <template v-else-if="priceLoading">
|
|
|
|
+ <em>正在获取价格...</em>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <em v-if="p.priceflag==2 && p.userIdentity!=2">价格仅会员可见</em>
|
|
|
|
+ <em v-else class="p" v-text="'¥'+parseFloat(p.pricegrade).toFixed(2)"></em>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <em>价格:<i class="icon" v-for="i in 5">
|
|
|
|
+ <i v-if="i==1||p.pricegrade>=i" class="icon"></i>
|
|
|
|
+ </i></em>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="btnBox">
|
|
|
|
+ <a v-if="p.priceflag==2 && p.userIdentity!=2" href="javascript:void(0)" class="btn">升级成为会员</a>
|
|
|
|
+ <a v-else-if="p.priceflag!=1" href="javascript:void(0)" class="btn on">加入购物车</a>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <span class="icon">
|
|
|
|
- 热销:acttype=1,
|
|
|
|
- 上新:actType=2
|
|
|
|
- </span>
|
|
|
|
- </a>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- <div class="swiper-pagination"><span v-if="isPC" v-for="i in recommends"></span></div>
|
|
|
|
- <span v-if="isPC" class="pageState"></span>
|
|
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ <div class="swiper-pagination"><span v-if="isPC" v-for="i in recommendPage"></span></div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div th:if="${item.type}==2">
|
|
<div th:if="${item.type}==2">
|