|
@@ -135,7 +135,7 @@
|
|
<!--固定楼层-->
|
|
<!--固定楼层-->
|
|
<div class="section_page section_page_user hot" v-for="(floor,index) in hotListPageFloor">
|
|
<div class="section_page section_page_user hot" v-for="(floor,index) in hotListPageFloor">
|
|
<div class="section_page_title" >
|
|
<div class="section_page_title" >
|
|
- <h1 :data-id="0">{{ floor.title }}</h1>
|
|
|
|
|
|
+ <h1 data-id="0">{{ floor.title }}</h1>
|
|
<p>{{ floor.detail }}</p>
|
|
<p>{{ floor.detail }}</p>
|
|
<a class="section_page_btn" href="/product/hot.html" target="_blank"></a>
|
|
<a class="section_page_btn" href="/product/hot.html" target="_blank"></a>
|
|
</div>
|
|
</div>
|
|
@@ -143,48 +143,48 @@
|
|
<div class="section_page_main type_08 swiper-wrapper recommendBox-wrapper clear mfw section_8 max">
|
|
<div class="section_page_main type_08 swiper-wrapper recommendBox-wrapper clear mfw section_8 max">
|
|
<!-- 商品/图片 列表 -->
|
|
<!-- 商品/图片 列表 -->
|
|
<a :href="pros.link" class="page_main_item hot ad_04 swiper-slide" target="_blank" v-for="pros in floor.newfloorlist">
|
|
<a :href="pros.link" class="page_main_item hot ad_04 swiper-slide" target="_blank" v-for="pros in floor.newfloorlist">
|
|
- <img class="page_main_image" src="/img/base/placeholder.png" :data-original="pros.image" :alt="pros.name">
|
|
|
|
- <div class="page_main_type" v-if="pros && pros.productType && pros.productType === 2">医疗器械</div>
|
|
|
|
|
|
+ <img class="page_main_image" src="/img/base/placeholder.png" :data-original="pros.product.image" :alt="pros.name">
|
|
|
|
+ <div class="page_main_type" v-if="pros && pros.product.productType && pros.product.productType === 2">医疗器械</div>
|
|
<div class="page_main_text">
|
|
<div class="page_main_text">
|
|
- <span class="tag" v-if="pros.beautyActFlag == 1">美博会</span>
|
|
|
|
- <span v-text="pros.name"></span>
|
|
|
|
|
|
+ <span class="tag" v-if="pros.product.beautyActFlag == 1">美博会</span>
|
|
|
|
+ <span v-text="pros.product.name"></span>
|
|
</div>
|
|
</div>
|
|
<div class="page_main_price">
|
|
<div class="page_main_price">
|
|
<!-- 商品价格 -->
|
|
<!-- 商品价格 -->
|
|
<div class="main_price_text">
|
|
<div class="main_price_text">
|
|
<!-- 正常商品 -->
|
|
<!-- 正常商品 -->
|
|
- <template v-if="pros.productCategory == 1">
|
|
|
|
|
|
+ <template v-if="pros.product.productCategory == 1">
|
|
<div class="price_text_tag">
|
|
<div class="price_text_tag">
|
|
- <p class="couponTag" v-if="pros.couponsLogo">优惠券</p>
|
|
|
|
|
|
+ <p class="couponTag" v-if="pros.product.couponsLogo">优惠券</p>
|
|
<!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
<!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
- <template v-if="pros.svipProductFlag === 1">
|
|
|
|
|
|
+ <template v-if="pros.product.svipProductFlag === 1">
|
|
<div class="svip-tag">
|
|
<div class="svip-tag">
|
|
<div class="svip-icon">SVIP</div>
|
|
<div class="svip-icon">SVIP</div>
|
|
<!-- 公开价格 && (个人机构 || 资质机构) && 开通SVIP 可查看价格-->
|
|
<!-- 公开价格 && (个人机构 || 资质机构) && 开通SVIP 可查看价格-->
|
|
- <template v-if="showVipPriceTag(pros)">
|
|
|
|
|
|
+ <template v-if="showVipPriceTag(pros.product)">
|
|
<div class="svip-price">
|
|
<div class="svip-price">
|
|
- <span v-html="pros.svipPriceTag"></span>
|
|
|
|
|
|
+ <span v-html="pros.product.svipPriceTag"></span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <p class="listTag" v-if="pros.actStatus ==1 && pros.promotions">
|
|
|
|
|
|
+ <p class="listTag" v-if="pros.product.actStatus ==1 && pros.product.promotions">
|
|
<span v-text="pros.promotions.name"></span>
|
|
<span v-text="pros.promotions.name"></span>
|
|
- <template v-if="PromotionsFormat(pros.promotions)">
|
|
|
|
|
|
+ <template v-if="PromotionsFormat(pros.product.promotions)">
|
|
<!--单品优惠:优惠价-->
|
|
<!--单品优惠:优惠价-->
|
|
- <span class="price_unit">:¥</span><span class="price_num">{{ pros.price | NumFormat }}</span>
|
|
|
|
|
|
+ <span class="price_unit">:¥</span><span class="price_num">{{ pros.product.price | NumFormat }}</span>
|
|
</template>
|
|
</template>
|
|
</p>
|
|
</p>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<div class="main_price_login">
|
|
<div class="main_price_login">
|
|
<!--priceFlag 0公开价格 1不公开价格 2仅对会员机构公开-->
|
|
<!--priceFlag 0公开价格 1不公开价格 2仅对会员机构公开-->
|
|
- <template v-if="pros.priceFlag == 1">
|
|
|
|
|
|
+ <template v-if="pros.product.priceFlag == 1">
|
|
<em class="price_grade"><span>¥</span>价格未公开</em>
|
|
<em class="price_grade"><span>¥</span>价格未公开</em>
|
|
</template>
|
|
</template>
|
|
<!--机构价仅会员可见 && 用户是普通机构-->
|
|
<!--机构价仅会员可见 && 用户是普通机构-->
|
|
- <template v-else-if="pros.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
|
|
|
|
|
|
+ <template v-else-if="pros.product.priceFlag==2 && GLOBAL_USER_IDENTITY === 4 && GLOBAL_VIP_FLAG!=1">
|
|
<em class="price_grade_club"><span>¥</span>会员可见</em>
|
|
<em class="price_grade_club"><span>¥</span>会员可见</em>
|
|
</template>
|
|
</template>
|
|
<!--机构价仅医美机构可见-->
|
|
<!--机构价仅医美机构可见-->
|
|
@@ -192,16 +192,16 @@
|
|
<em class="price_grade_club red"><span>¥</span>仅医美机构可见</em>
|
|
<em class="price_grade_club red"><span>¥</span>仅医美机构可见</em>
|
|
</template>
|
|
</template>
|
|
<!-- 资质机构 || (价格全部机构可见 && 普通机构) || (供应商 && 商品为供应商下的商品) || 超级会员用户 -->
|
|
<!-- 资质机构 || (价格全部机构可见 && 普通机构) || (供应商 && 商品为供应商下的商品) || 超级会员用户 -->
|
|
- <template v-else-if="GLOBAL_USER_IDENTITY === 2 || (pros.priceFlag === 0 && GLOBAL_USER_IDENTITY === 4) || (GLOBAL_USER_IDENTITY === 3 && pros.shopID==GLOBAL_SHOP_ID) || GLOBAL_VIP_FLAG === 1">
|
|
|
|
- <div class="main_price_show" :class="{none: showVipPriceTag(pros.product) || PromotionsFormat(pros.promotions)}">
|
|
|
|
- ¥<span class="price_num" v-if="showVipPriceTag(pros)">{{ pros.originalPrice | NumFormat }}</span>
|
|
|
|
- <span class="price_num" v-else>{{ pros.price | NumFormat }}</span>
|
|
|
|
|
|
+ <template v-else-if="GLOBAL_USER_IDENTITY === 2 || (pros.product.priceFlag === 0 && GLOBAL_USER_IDENTITY === 4) || (GLOBAL_USER_IDENTITY === 3 && pros.shopID==GLOBAL_SHOP_ID) || GLOBAL_VIP_FLAG === 1">
|
|
|
|
+ <div class="main_price_show" :class="{none: showVipPriceTag(pros.product) || PromotionsFormat(pros.product.promotions)}">
|
|
|
|
+ ¥<span class="price_num" v-if="showVipPriceTag(pros.product)">{{ pros.product.originalPrice | NumFormat }}</span>
|
|
|
|
+ <span class="price_num" v-else>{{ pros.product.price | NumFormat }}</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<!--供应商除自己的商品外,也显示价格等级-->
|
|
<!--供应商除自己的商品外,也显示价格等级-->
|
|
<em class="price_grade_shop">
|
|
<em class="price_grade_shop">
|
|
- <span class="bold">¥</span><i :class="'icon mIcon price_grade_'+pros.priceGrade"></i>
|
|
|
|
|
|
+ <span class="bold">¥</span><i :class="'icon mIcon price_grade_'+pros.product.priceGrade"></i>
|
|
</em>
|
|
</em>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
@@ -210,9 +210,9 @@
|
|
<template v-else>
|
|
<template v-else>
|
|
<div class="main_price_login">
|
|
<div class="main_price_login">
|
|
<div class="price_text_tag"></div>
|
|
<div class="price_text_tag"></div>
|
|
- <div v-if="pros.detailTalkFlag==2" class="main_price_show">¥价格祥聊</div>
|
|
|
|
|
|
+ <div v-if="pros.product.detailTalkFlag==2" class="main_price_show">¥价格祥聊</div>
|
|
<div v-else class="main_price_show">
|
|
<div v-else class="main_price_show">
|
|
- ¥<span class="price_num">{{ pros.price | NumFormat }}</span>
|
|
|
|
|
|
+ ¥<span class="price_num">{{ pros.product.price | NumFormat }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -379,6 +379,69 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
|
|
+ <!--静态化固定楼层-->
|
|
|
|
+ <div class="section_page section_page_user hot" th:each="floor,stat : ${floorJson.get('PageFloor')}">
|
|
|
|
+ <div class="section_page_title">
|
|
|
|
+ <h1 th:text="${floor.get('title')}" data-id="0"></h1>
|
|
|
|
+ <p th:text="${floor.get('detail')}"></p>
|
|
|
|
+ <a class="section_page_btn" href="/product/hot.html" target="_blank"></a>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="swiper-container-floor hotList" id="recommendBox">
|
|
|
|
+ <div class="section_page_main type_08 swiper-wrapper recommendBox-wrapper clear mfw section_8">
|
|
|
|
+ <!-- 商品/图片 列表 -->
|
|
|
|
+ <th:block th:each="pros : ${floor.get('floorImageList')}" th:object="${pros}">
|
|
|
|
+ <a th:href="*{link}" class="page_main_item hot ad_04 swiper-slide" target="_blank">
|
|
|
|
+ <img class="page_main_image" src="/img/base/placeholder.png" th:attr="data-original=*{image}" th:alt="*{name}">
|
|
|
|
+ <th:block th:if="${pros.get('product')}!=null" th:object="${pros.get('product')}">
|
|
|
|
+ <div class="page_main_type" th:if="*{productType}==2">医疗器械</div>
|
|
|
|
+ </th:block>
|
|
|
|
+ <div class="page_main_tag" th:if="*{listType}==2"><p th:text="*{label}"></p></div>
|
|
|
|
+ <div class="page_main_text">
|
|
|
|
+ <th:block th:if="${pros.containsKey('product')}">
|
|
|
|
+ <span class="tag" th:if="${pros.get('product').containsKey('beautyActFlag')} and ${pros.get('product').get('beautyActFlag')}==1">美博会</span>
|
|
|
|
+ </th:block>
|
|
|
|
+ <span th:text="${pros.get('name')}"></span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="page_main_price" th:if="*{listType}==1">
|
|
|
|
+ <th:block th:if="${pros.get('product')}!=null" th:object="${pros.get('product')}">
|
|
|
|
+ <!-- 商品价格 -->
|
|
|
|
+ <div th:attr="class=*{'main_price_text product_'+productId}, data-id=*{productId}">
|
|
|
|
+ <!-- 正常商品 -->
|
|
|
|
+ <th:block th:if="*{productCategory}==1">
|
|
|
|
+ <div class="price_text_tag">
|
|
|
|
+ <p class="couponTag" th:if="*{couponsLogo}">优惠券</p>
|
|
|
|
+ <!--超级会员价格标签 svipProductFlag 1:超级会员优惠商品 0 不是商超级会员优惠商品-->
|
|
|
|
+ <div class="svip-tag" th:if="*{svipProductFlag}==1">
|
|
|
|
+ <div class="svip-icon">SVIP</div>
|
|
|
|
+ </div>
|
|
|
|
+ <p class="listTag" th:if="*{actStatus}==1 and ${pros.get('product').get('promotions')}!=null">
|
|
|
|
+ <template th:text="*{promotions.name}"></template>
|
|
|
|
+ <th:block th:if="*{promotions.type}==1 and *{promotions.mode}==1">
|
|
|
|
+ <!--单品优惠:优惠价-->
|
|
|
|
+ <span class="price_unit" style="display:none;">:¥</span><span class="price_num"></span>
|
|
|
|
+ </th:block>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="main_price_none">
|
|
|
|
+ <em class="price_grade"><span class="bold">¥</span><i th:attr="class=*{'icon mIcon price_grade_'+priceGrade}"></i></em>
|
|
|
|
+ </div>
|
|
|
|
+ </th:block>
|
|
|
|
+ <!-- 二手商品 -->
|
|
|
|
+ <th:block th:if="*{productCategory}!=1">
|
|
|
|
+ <div class="main_price_none sec">
|
|
|
|
+ <em class="price_grade"><span>¥</span>登录可见</em>
|
|
|
|
+ </div>
|
|
|
|
+ </th:block>
|
|
|
|
+ </div>
|
|
|
|
+ </th:block>
|
|
|
|
+ </div>
|
|
|
|
+ </a>
|
|
|
|
+ </th:block>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="swiper-pagination swiper-pagination-floor mfc" th:attr="data-id=${floor.get('floorImageList').size}"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!--静态化普通楼层-->
|
|
<div class="section_page" th:each="floor,stat : ${floorJson.get('homePageFloor')}">
|
|
<div class="section_page" th:each="floor,stat : ${floorJson.get('homePageFloor')}">
|
|
<th:block th:if="${floor.get('floorContent')}!=null">
|
|
<th:block th:if="${floor.get('floorContent')}!=null">
|
|
<div class="section_page_title">
|
|
<div class="section_page_title">
|