|
@@ -27,12 +27,24 @@
|
|
|
<view class="pros-img" @click.stop="navToListPage(pros.productId)" ><image :src="pros.mainImage ? pros.mainImage:''" alt="" /></view>
|
|
|
<view class="pros-product">
|
|
|
<view class="producttitle" @click.stop="navToListPage(pros.productId)" >{{pros.productName}}</view>
|
|
|
+ <view v-show="pros.actStatus==1" class="floor-item-act">
|
|
|
+ <view v-if="PromotionsFormat(pros.promotion)" class="floor-tags" @click.stop="clickPopupShow(pros,1)">
|
|
|
+ {{pros.promotion.name}}
|
|
|
+ <text v-if ="pros.promotion!=null && pros.promotion.type!=3">
|
|
|
+ :¥{{ pros.promotion == null ? '0.00' : pros.promotion.touchPrice | NumFormat}}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="pros.promotion.type!=3" class="floor-tags" @click.stop="clickPopupShow(pros,2)">{{pros.promotion.name}}</view>
|
|
|
+ </view>
|
|
|
+ <view v-if="pros.actStatus == null && pros.ladderPriceFlag == 1" class="floor-item-act">
|
|
|
+ <view class="floor-tags" @click.stop="clickPopupShow(pros,2)">阶梯价格</view>
|
|
|
+ </view>
|
|
|
<view class="productspec">规格:{{pros.unit ? pros.unit : ''}}</view>
|
|
|
<view class="productprice">
|
|
|
<!--使用过滤器对总价改变-->
|
|
|
<view class="price" :class="PromotionsFormat(pros.promotion) ? 'disabled' : ''">
|
|
|
<text>¥</text>
|
|
|
- {{ (PromotionsFormat(pros.promotion) ? pros.retailPrice : pros.retailPrice) | NumFormat }}
|
|
|
+ {{ (PromotionsFormat(pros.promotion) ? pros.price : pros.retailPrice) | NumFormat }}
|
|
|
</view>
|
|
|
<view class="count">
|
|
|
<view class="number-box">
|
|
@@ -42,18 +54,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-show="pros.actStatus==1" class="floor-item-act">
|
|
|
- <view v-if="PromotionsFormat(pros.promotion)" class="floor-tags" @click.stop="clickPopupShow(pros,1)">
|
|
|
- {{pros.promotion.name}}
|
|
|
- <text v-if ="pros.promotion!=null && pros.promotion.type!=3">
|
|
|
- :¥{{ pros.promotion == null ? '0.00' : pros.promotion.touchPrice | NumFormat}}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view v-else-if="pros.promotion.type!=3" class="floor-tags" @click.stop="clickPopupShow(pros,2)">{{pros.promotion.name}}</view>
|
|
|
- </view>
|
|
|
- <view v-if="pros.actStatus == null && pros.ladderPriceFlag == 1" class="floor-item-act">
|
|
|
- <view class="floor-tags" @click.stop="clickPopupShow(pros,2)">阶梯价格</view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -126,9 +126,8 @@
|
|
|
</view>
|
|
|
<view v-else class="cart-content empty">
|
|
|
<view class="empty-container">
|
|
|
- <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AWdWzAAGlgAP0das422.png" mode="aspectFit"></image>
|
|
|
+ <image class="empty-container-image" src="https://static-b.caimei365.com/app/wisa/img/icon/cart_empth.png" mode="aspectFit"></image>
|
|
|
<text class="error-text">购物车空空如也,快去下单吧~</text>
|
|
|
- <view class="login-btn" @click="goIndex">去商城</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -532,15 +531,14 @@
|
|
|
pros.productCount = pros.minBuyNumber
|
|
|
}else if(_value < pros.minBuyNumber){
|
|
|
this.$util.msg(`该商品最小起订量为${pros.minBuyNumber}`,2000);
|
|
|
- pros.number = pros.minBuyNumber
|
|
|
+ pros.productCount = pros.minBuyNumber
|
|
|
}else if(_value % pros.minBuyNumber != 0){
|
|
|
- pros.isStep = true
|
|
|
pros.productCount = pros.minBuyNumber
|
|
|
}else{
|
|
|
- pros.isStep = false
|
|
|
pros.productCount = e.detail.value
|
|
|
this.processActivityPrice(pros)
|
|
|
}
|
|
|
+ console.log('222222222222')
|
|
|
this.updateShoppogNum(pros)
|
|
|
this.totalShopPeice();
|
|
|
},
|
|
@@ -716,11 +714,6 @@
|
|
|
hideMobel(){
|
|
|
this.modal = false;
|
|
|
},
|
|
|
- goIndex(){
|
|
|
- uni.redirectTo({
|
|
|
- url: `/pages/goods/list`
|
|
|
- });
|
|
|
- },
|
|
|
goNavto(url){
|
|
|
uni.navigateTo ({
|
|
|
url
|
|
@@ -1047,7 +1040,10 @@
|
|
|
}
|
|
|
}
|
|
|
.productspec{
|
|
|
+ width: 100%;
|
|
|
height: 36rpx;
|
|
|
+ float: left;
|
|
|
+ margin-top: 10rpx;
|
|
|
color: #999999;
|
|
|
font-size: $font-size-26;
|
|
|
}
|
|
@@ -1055,6 +1051,7 @@
|
|
|
width: 100%;
|
|
|
height: 48rpx;
|
|
|
margin: 30rpx 0 0 0;
|
|
|
+ float: left;
|
|
|
.price{
|
|
|
line-height: 48rpx;
|
|
|
font-size: $font-size-26;
|
|
@@ -1163,7 +1160,7 @@
|
|
|
}
|
|
|
.floor-item-act{
|
|
|
width: 100%;
|
|
|
- height: 56rpx;
|
|
|
+ height: auto;
|
|
|
text-align: center;
|
|
|
box-sizing: border-box;
|
|
|
float: left;
|