|
@@ -5,7 +5,7 @@
|
|
|
<view class="container-topcontent">
|
|
|
<view class="topcontent-image" :style="{ paddingTop: StatusBar + 'px' }">
|
|
|
<view class="topcontent-title">
|
|
|
- 采美新品橱窗 <view class="topcontent-title-icon"> <text class="iconfont icon-fanhui"></text> </view>
|
|
|
+ 采美新品橱窗 <view class="topcontent-title-icon" @click="haveBack"> <text class="iconfont icon-fanhui"></text> </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="topcontent-swiper" :style="{ top: StatusBar + 40 + 'px' }">
|
|
@@ -22,9 +22,9 @@
|
|
|
<swiper-item
|
|
|
v-for="(item, index) in topGoodList"
|
|
|
:key="index"
|
|
|
- @click.stop="NavToDetailPage(item)"
|
|
|
+ @click.stop="navToDetailPage(item.productId)"
|
|
|
>
|
|
|
- <view class="swiper-goods-image"> <image :src="item.image" mode="scaleToFill" /> </view>
|
|
|
+ <view class="swiper-goods-image"> <image :src="item.mainImage" mode="scaleToFill" /> </view>
|
|
|
<view class="swiper-goods-info">
|
|
|
<view class="swiper-goods-name"> {{ item.name }} </view>
|
|
|
<view class="swiper-goods-btn"> <view class="btn"> 立即购买 </view> </view>
|
|
@@ -79,13 +79,6 @@
|
|
|
<!-- </uni-transition> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- <tui-skeleton
|
|
|
- v-if="skeletonShow"
|
|
|
- backgroundColor="#fafafa"
|
|
|
- borderRadius="10rpx"
|
|
|
- :isLoading="true"
|
|
|
- :loadingType="5"
|
|
|
- ></tui-skeleton>
|
|
|
<!-- 楼层 -->
|
|
|
<view class="container-section tui-skeleton">
|
|
|
<view class="floor-item-banner ad_01" v-if="appletsBanner">
|
|
@@ -124,50 +117,105 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</view>
|
|
|
- <view>
|
|
|
- <template v-if="userIdentity === 4 && vipFlag != 1">
|
|
|
- <view class="title-none" v-if="pros.priceFlag === 1">
|
|
|
- <text class="p big">¥未公开价格</text>
|
|
|
- </view>
|
|
|
- <view class="title-none" v-if="pros.priceFlag === 2">
|
|
|
- <text class="p big">¥价格仅会员可见</text>
|
|
|
- </view>
|
|
|
- <view
|
|
|
- class="price tui-skeleton-rect"
|
|
|
- v-if="pros.priceFlag === 0"
|
|
|
- :class="PromotionsFormat(pros.promotions) ? 'none' : ''"
|
|
|
+ <view v-if="hasLogin" class="list-price">
|
|
|
+ <template v-if="userIdentity == 1">
|
|
|
+ <text
|
|
|
+ class="price-larger"
|
|
|
+ :class="
|
|
|
+ PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? 'none'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
>
|
|
|
- <text class="p sm">¥</text>
|
|
|
- <text class="p big">
|
|
|
- {{
|
|
|
- (PromotionsFormat(pros.promotions) ? pros.originalPrice : pros.price)
|
|
|
- | NumFormat
|
|
|
- }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
+ ¥{{
|
|
|
+ (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? pros.originalPrice
|
|
|
+ : pros.price) | NumFormat
|
|
|
+ }}
|
|
|
+ </text>
|
|
|
</template>
|
|
|
- <template v-else>
|
|
|
- <view class="title-none" v-if="pros.priceFlag === 1">
|
|
|
- <text class="p big">¥未公开价格</text>
|
|
|
+ <template v-if="userIdentity == 4 && vipFlag != 1">
|
|
|
+ <view class="price-larger" v-if="pros.priceFlag == 1">
|
|
|
+ <text class="txt">¥未公开价格</text>
|
|
|
+ </view>
|
|
|
+ <view class="price-larger" v-if="pros.priceFlag == 2">
|
|
|
+ <text class="txt">¥价格仅会员可见</text>
|
|
|
+ </view>
|
|
|
+ <view class="price-larger" v-else-if="pros.priceFlag == 3">
|
|
|
+ <text class="txt">¥仅医美机构可见</text>
|
|
|
</view>
|
|
|
- <view
|
|
|
- class="price tui-skeleton-rect"
|
|
|
+ <text
|
|
|
v-else
|
|
|
+ class="price-larger"
|
|
|
:class="
|
|
|
- PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1 ? 'none' : ''
|
|
|
+ PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? 'none'
|
|
|
+ : ''
|
|
|
"
|
|
|
>
|
|
|
- <text class="p sm">¥</text>
|
|
|
- <text class="p big">
|
|
|
- {{
|
|
|
+ ¥{{
|
|
|
+ (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? pros.originalPrice
|
|
|
+ : pros.price) | NumFormat
|
|
|
+ }}
|
|
|
+ </text>
|
|
|
+ </template>
|
|
|
+ <template v-if="userIdentity == 3">
|
|
|
+ <template v-if="pros.shopId === shopId">
|
|
|
+ <view class="price-larger" v-if="pros.priceFlag == 1">
|
|
|
+ <text class="txt">¥未公开价格</text>
|
|
|
+ </view>
|
|
|
+ <text
|
|
|
+ v-else
|
|
|
+ class="price-larger"
|
|
|
+ :class="
|
|
|
+ PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? 'none'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ ¥{{
|
|
|
(PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
? pros.originalPrice
|
|
|
: pros.price) | NumFormat
|
|
|
}}
|
|
|
</text>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <view class="list-login-now">
|
|
|
+ <text class="p-no">¥</text>
|
|
|
+ <uni-grader :grade="Number(pros.priceGrade)"></uni-grader>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ <template v-if="userIdentity == 2 || (userIdentity == 4 && vipFlag == 1)">
|
|
|
+ <view class="price-larger" v-if="pros.priceFlag == 1">
|
|
|
+ <text class="txt">¥未公开价格</text>
|
|
|
</view>
|
|
|
+ <view class="price-larger" v-if="pros.priceFlag == 3 && (firstClubType!=1)">
|
|
|
+ <text class="txt">¥仅医美机构可见</text>
|
|
|
+ </view>
|
|
|
+ <text
|
|
|
+ v-else
|
|
|
+ class="price-larger"
|
|
|
+ :class="
|
|
|
+ PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? 'none'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
+ ¥{{
|
|
|
+ (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ ? pros.originalPrice
|
|
|
+ : pros.price) | NumFormat
|
|
|
+ }}
|
|
|
+ </text>
|
|
|
</template>
|
|
|
</view>
|
|
|
+ <view v-else class="list-login-now">
|
|
|
+ <text class="p-no">¥</text>
|
|
|
+ <uni-grader :grade="Number(pros.priceGrade)"></uni-grader>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -183,7 +231,11 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, mapMutations } from 'vuex'
|
|
|
+import uniGrader from '@/components/uni-grade/uni-grade.vue'
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ uniGrader
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
StatusBar: this.StatusBar,
|
|
@@ -199,7 +251,8 @@ export default {
|
|
|
current: 0,
|
|
|
appletsBanner: '',
|
|
|
listQuery: {
|
|
|
- userId: 0,
|
|
|
+ userId:0,
|
|
|
+ brandID:'',
|
|
|
pageSize: 10,
|
|
|
pageNum: 1
|
|
|
},
|
|
@@ -212,7 +265,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- this.listQuery.couponId = option.couponId
|
|
|
this.initGetStotage()
|
|
|
},
|
|
|
filters: {
|
|
@@ -341,13 +393,13 @@ export default {
|
|
|
this.isAllcheckedBrand = false
|
|
|
this.checkedBrandLength = this.checkedBrandList.length
|
|
|
console.log('checkedBrandList', this.checkedBrandList)
|
|
|
- this.listQuery.brandIds = this.checkedBrandList.join(',')
|
|
|
- console.log('this.listQuery.brandIds', this.listQuery.brandIds)
|
|
|
+ this.listQuery.brandID = this.checkedBrandList.join(',')
|
|
|
+ console.log('this.listQuery.brandID', this.listQuery.brandID)
|
|
|
},
|
|
|
choiceBrandAll() {
|
|
|
// 点击选择全部品牌
|
|
|
this.isAllcheckedBrand = true
|
|
|
- this.listQuery.brandIds = ''
|
|
|
+ this.listQuery.brandID = ''
|
|
|
this.brandList.forEach(el => {
|
|
|
el.isChecked = false
|
|
|
})
|
|
@@ -355,22 +407,17 @@ export default {
|
|
|
showDropShow() {
|
|
|
this.dropShow = !this.dropShow
|
|
|
},
|
|
|
- reset() {
|
|
|
- let arr = this.proDropData
|
|
|
- for (let item of arr) {
|
|
|
- item.selected = false
|
|
|
- }
|
|
|
- this.proDropData = arr
|
|
|
- },
|
|
|
btnCloseDrop() {
|
|
|
- this.scrollTop = 1
|
|
|
- this.$nextTick(() => {
|
|
|
- this.scrollTop = 0
|
|
|
- })
|
|
|
this.dropShow = false
|
|
|
- this.proDropIndex = -1
|
|
|
- this.reset()
|
|
|
- }
|
|
|
+ this.productList = []
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
+ this.GetHomeNewFloorList()
|
|
|
+ },
|
|
|
+ haveBack(){
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
setTimeout(() => {
|
|
@@ -842,18 +889,37 @@ page {
|
|
|
top: 0;
|
|
|
}
|
|
|
}
|
|
|
- .price {
|
|
|
+ .list-price {
|
|
|
color: #ff2a2a;
|
|
|
- line-height: 54rpx;
|
|
|
- &.none {
|
|
|
- text-decoration: line-through;
|
|
|
- color: #999999;
|
|
|
- }
|
|
|
- .sm {
|
|
|
- font-size: $font-size-24;
|
|
|
+ height: 44rpx;
|
|
|
+ float: left;
|
|
|
+ .list-login-now{
|
|
|
+ line-height: 44rpx;
|
|
|
+ .p-no{
|
|
|
+ height: 44rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ display: inline-block;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
}
|
|
|
- .big {
|
|
|
- font-size: $font-size-28;
|
|
|
+ .price-larger {
|
|
|
+ width: 100%;
|
|
|
+ height: 44rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+ &.none {
|
|
|
+ text-decoration: line-through;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ &.small {
|
|
|
+ font-size: $font-size-24;
|
|
|
+ }
|
|
|
+ .txt {
|
|
|
+ font-size: $font-size-24;
|
|
|
+ display: inline-block;
|
|
|
+ line-height: 44rpx;
|
|
|
+ text-align: left;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|