|
@@ -63,7 +63,7 @@
|
|
|
<view class="cart-sku-temp" @click.stop="handleShouUnitPopup(pros)">
|
|
|
<view class="cart-sku-text">重新选择商品规格</view>
|
|
|
<view class="cart-sku-btn">重选</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<view class="productprice">
|
|
@@ -79,7 +79,8 @@
|
|
|
>
|
|
|
<text>¥</text>
|
|
|
{{
|
|
|
- (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
|
|
|
+ (PromotionsFormat(pros.promotions) ||
|
|
|
+ pros.svipProductFlag == 1
|
|
|
? pros.originalPrice
|
|
|
: pros.price) | NumFormat
|
|
|
}}
|
|
@@ -119,7 +120,9 @@
|
|
|
>
|
|
|
{{ pros.promotions.name }}
|
|
|
<text
|
|
|
- v-if="pros.promotions != null && pros.promotions.type != 3"
|
|
|
+ v-if="
|
|
|
+ pros.promotions != null && pros.promotions.type != 3
|
|
|
+ "
|
|
|
>
|
|
|
:¥{{
|
|
|
pros.promotions == null
|
|
@@ -143,7 +146,9 @@
|
|
|
</template>
|
|
|
<template v-if="pros.svipProductFlag == 1">
|
|
|
<view class="svip-tags">
|
|
|
- <view class="tags" :class="{ none: vipFlag != 1 }">SVIP</view>
|
|
|
+ <view class="tags" :class="{ none: vipFlag != 1 }"
|
|
|
+ >SVIP</view
|
|
|
+ >
|
|
|
<view class="price" v-if="isShowVipFlag(pros)">{{
|
|
|
pros.svipPriceTag
|
|
|
}}</view>
|
|
@@ -262,24 +267,24 @@
|
|
|
</view>
|
|
|
<!-- 选择规格弹窗 -->
|
|
|
<cm-unit-popup
|
|
|
- v-if="popupShow1"
|
|
|
- :popupShow="popupShow1"
|
|
|
+ v-if="popupShow"
|
|
|
+ :popupShow="popupShow"
|
|
|
:skuProduct="handlePros"
|
|
|
@skuBtnConfirm="handleBtnConfirm"
|
|
|
+ @handleFuction="handleFuctionData"
|
|
|
></cm-unit-popup>
|
|
|
<!-- 促销活动弹窗 -->
|
|
|
- <activi-popup :product="handlerPros" :popupShow="popupShow"></activi-popup>
|
|
|
+ <activi-popup :product="handlerPros" :popupShow="popupShow1"></activi-popup>
|
|
|
<!-- 透明模态层 -->
|
|
|
<modal-layer v-if="modallayer"></modal-layer>
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
|
import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
|
-import activiPopup from '@/components/cm-module/productDetails/cm-activipopu'
|
|
|
+import activiPopup from './components/cm-activipopu'
|
|
|
import modalLayer from '@/components/modal-layer'
|
|
|
-import cmUnitPopup from './components/cm-unit-popup.vue'
|
|
|
+import cmUnitPopup from './components/cm-unit-cart-popup'
|
|
|
import cartMixins from './mixins/cartMixins.js'
|
|
|
import apisMixins from './mixins/apisMixins.js'
|
|
|
import { mapState, mapMutations } from 'vuex'
|
|
@@ -291,7 +296,7 @@ const defaultListQuery = {
|
|
|
pageSize: 10 // 条数
|
|
|
}
|
|
|
export default {
|
|
|
- mixins: [apisMixins,cartMixins],
|
|
|
+ mixins: [apisMixins, cartMixins],
|
|
|
components: {
|
|
|
tuiLoadmore,
|
|
|
tuiNomore,
|
|
@@ -305,7 +310,7 @@ export default {
|
|
|
isStock: '',
|
|
|
popupShow: false,
|
|
|
popupShow1: false,
|
|
|
- handlePros:{},
|
|
|
+ handlePros: {},
|
|
|
listQuery: Object.assign({}, defaultListQuery), // 购物车立即结算确认订单参数
|
|
|
handlerPros: {}, //监听单挑促销商品
|
|
|
promotionsList: [], //促销活动列表
|
|
@@ -330,13 +335,13 @@ export default {
|
|
|
pullUpOn: true,
|
|
|
pullFlag: true,
|
|
|
submitIds: [],
|
|
|
- checkenProsList:[],
|
|
|
+ checkenProsList: [],
|
|
|
depositIds: [6060, 6061, 6062, 6063, 6064], //定金商品ID
|
|
|
rechargeIds: [6065, 6066, 6067, 6068, 6069], //充值余额商品ID
|
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
|
vipFlag: 0,
|
|
|
userIdentity: 0,
|
|
|
- isCheckedProductStatus:false,
|
|
|
+ isCheckedProductStatus: false
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -388,7 +393,7 @@ export default {
|
|
|
},
|
|
|
clickPopupShow(pros, type) {
|
|
|
//显示活动弹窗
|
|
|
- this.popupShow = true
|
|
|
+ this.popupShow1 = true
|
|
|
this.handlerPros = pros
|
|
|
},
|
|
|
failureToProduct(failure) {
|
|
@@ -446,12 +451,18 @@ export default {
|
|
|
if (dataPage.list && dataPage.list.length > 0) {
|
|
|
this.hasNextPage = dataPage.hasNextPage
|
|
|
this.goodsList = dataPage.list
|
|
|
- this.goodsList.forEach((item, index) => {
|
|
|
- let cartListLength = item.cartList.length,
|
|
|
+ this.goodsList.forEach((supplier, index) => {
|
|
|
+ let cartListLength = supplier.cartList.length,
|
|
|
invalidLength = 0
|
|
|
- item.cartList.forEach(pros => {
|
|
|
- pros.shopId = item.shopId
|
|
|
+ supplier.cartList.forEach(pros => {
|
|
|
+ pros.shopId = supplier.shopId
|
|
|
pros.isStep = false
|
|
|
+ if (pros.stock === 0 || pros.number > pros.stock) {
|
|
|
+ supplier.isDisable = true
|
|
|
+ pros.isDisable = true
|
|
|
+ } else {
|
|
|
+ pros.isDisable = false
|
|
|
+ }
|
|
|
if (pros.step === 2) {
|
|
|
if (pros.number % pros.min != 0) {
|
|
|
pros.number = pros.min
|
|
@@ -516,11 +527,11 @@ export default {
|
|
|
supplier.cartList.forEach(pros => {
|
|
|
pros.shopId = supplier.shopId
|
|
|
pros.isStep = false
|
|
|
- if(pros.stock === 0 || pros.number > pros.stock ){
|
|
|
- supplier.isDisable = true
|
|
|
- pros.isDisable = true
|
|
|
- }else{
|
|
|
- pros.isDisable = false
|
|
|
+ if (pros.stock === 0 || pros.number > pros.stock) {
|
|
|
+ supplier.isDisable = true
|
|
|
+ pros.isDisable = true
|
|
|
+ } else {
|
|
|
+ pros.isDisable = false
|
|
|
}
|
|
|
if (pros.step === 2) {
|
|
|
if (pros.number % pros.min != 0) {
|
|
@@ -558,13 +569,16 @@ export default {
|
|
|
this.kindCount = response.data
|
|
|
})
|
|
|
},
|
|
|
- handleCheckFailure(failure) {// 选择失效商品
|
|
|
+ handleCheckFailure(failure) {
|
|
|
+ // 选择失效商品
|
|
|
failure.isChecked = !failure.isChecked
|
|
|
this.updateCheckAllBtn()
|
|
|
},
|
|
|
handlsCkecdPros(item, pro) {
|
|
|
//为未选中的时候改变为true,反之为true
|
|
|
- if(pro.isDisable){ return }
|
|
|
+ if (!this.isshowDelbtn) {
|
|
|
+ if (pro.isDisable) { return }
|
|
|
+ }
|
|
|
pro.isChecked = !pro.isChecked
|
|
|
if (pro.isChecked) {
|
|
|
if (!this.submitIds.includes(pro.skuId * 1)) {
|
|
@@ -616,25 +630,46 @@ export default {
|
|
|
},
|
|
|
handleCheckShop(supplier) {
|
|
|
//与单选商品类似
|
|
|
- if(supplier.isDisable){ return }
|
|
|
+ if (!this.isshowDelbtn) {
|
|
|
+ if (supplier.isDisable) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
supplier.isChecked = !supplier.isChecked
|
|
|
this.setProductChecked(supplier)
|
|
|
this.updateCheckAllBtn()
|
|
|
},
|
|
|
setProductChecked(supplier) {
|
|
|
supplier.cartList.forEach(pros => {
|
|
|
- if (supplier.isChecked && (pros.stock !== 0 || pros.number < pros.stock)) {
|
|
|
- pros.isChecked = true
|
|
|
- if (!this.submitIds.includes(pros.skuId * 1)) {
|
|
|
- this.submitIds.push(pros.skuId)
|
|
|
- this.checkenProsList.push(pros)
|
|
|
+ if (this.isshowDelbtn) {
|
|
|
+ if (supplier.isChecked) {
|
|
|
+ pros.isChecked = true
|
|
|
+ if (!this.submitIds.includes(pros.skuId * 1)) {
|
|
|
+ this.submitIds.push(pros.skuId)
|
|
|
+ this.checkenProsList.push(pros)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ pros.isChecked = false
|
|
|
+ let lent = this.submitIds.indexOf(pros.skuId * 1)
|
|
|
+ if (lent >= 0) {
|
|
|
+ this.submitIds.splice(lent, 1)
|
|
|
+ this.checkenProsList.splice(lent, 1)
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
- pros.isChecked = false
|
|
|
- let lent = this.submitIds.indexOf(pros.skuId * 1)
|
|
|
- if (lent >= 0) {
|
|
|
- this.submitIds.splice(lent, 1)
|
|
|
- this.checkenProsList.splice(lent, 1)
|
|
|
+ if (supplier.isChecked && (pros.stock !== 0 || pros.number < pros.stock)) {
|
|
|
+ pros.isChecked = true
|
|
|
+ if (!this.submitIds.includes(pros.skuId * 1)) {
|
|
|
+ this.submitIds.push(pros.skuId)
|
|
|
+ this.checkenProsList.push(pros)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ pros.isChecked = false
|
|
|
+ let lent = this.submitIds.indexOf(pros.skuId * 1)
|
|
|
+ if (lent >= 0) {
|
|
|
+ this.submitIds.splice(lent, 1)
|
|
|
+ this.checkenProsList.splice(lent, 1)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -646,9 +681,17 @@ export default {
|
|
|
supplier.isChecked = this.isCheckAll
|
|
|
this.setProductChecked(supplier)
|
|
|
})
|
|
|
+ //删除按钮 全选包括失效商品勾选
|
|
|
+ this.failureList.forEach(failureItem => {
|
|
|
+ failureItem.isChecked = this.isCheckAll
|
|
|
+ })
|
|
|
} else {
|
|
|
this.goodsList.forEach(supplier => {
|
|
|
- supplier.isChecked = this.isCheckAll
|
|
|
+ if(supplier.isDisable){
|
|
|
+ supplier.isChecked = false
|
|
|
+ }else{
|
|
|
+ supplier.isChecked = this.isCheckAll && !supplier.isDisabled
|
|
|
+ }
|
|
|
this.setProductChecked(supplier)
|
|
|
})
|
|
|
}
|
|
@@ -665,27 +708,30 @@ export default {
|
|
|
this.goodsList.map((item, index) => {
|
|
|
//计算店铺满减后店铺合计
|
|
|
if (item.promotions && item.promotions.mode == 2) {
|
|
|
- let prosPrice = 0 // 店铺价格合计
|
|
|
+ let prosPrice = 0 // 店铺价格合计
|
|
|
let prosDiscountNum = 0 // 店铺促销叠加次数
|
|
|
let totalOriginalPrice = 0 //店铺原价合计
|
|
|
item.cartList.forEach(pros => {
|
|
|
prosPrice += pros.price * pros.number
|
|
|
totalOriginalPrice += pros.price * pros.number
|
|
|
})
|
|
|
- if(item.promotions.discount == 1){// 支持促销叠加条件的店铺满减 执行
|
|
|
- prosDiscountNum = parseInt(prosPrice/item.promotions.touchPrice) // 店铺满减促销叠加次数 = 店铺合计价格/满减促销价格
|
|
|
- console.log('店铺满减促销叠加通道叠加次数',`${prosDiscountNum}次`)
|
|
|
- if (prosPrice >= item.promotions.touchPrice) {// 满足店铺满减条件下执行
|
|
|
- item.totalPrice = prosPrice - item.promotions.reducedPrice*prosDiscountNum
|
|
|
- item.reducedPrice = item.promotions.reducedPrice*prosDiscountNum
|
|
|
+ if (item.promotions.discount == 1) {
|
|
|
+ // 支持促销叠加条件的店铺满减 执行
|
|
|
+ prosDiscountNum = parseInt(prosPrice / item.promotions.touchPrice) // 店铺满减促销叠加次数 = 店铺合计价格/满减促销价格
|
|
|
+ console.log('店铺满减促销叠加通道叠加次数', `${prosDiscountNum}次`)
|
|
|
+ if (prosPrice >= item.promotions.touchPrice) {
|
|
|
+ // 满足店铺满减条件下执行
|
|
|
+ item.totalPrice = prosPrice - item.promotions.reducedPrice * prosDiscountNum
|
|
|
+ item.reducedPrice = item.promotions.reducedPrice * prosDiscountNum
|
|
|
item.totalOriginalPrice = totalOriginalPrice
|
|
|
} else {
|
|
|
item.reducedPrice = 0 //统计合计价格
|
|
|
item.totalPrice = prosPrice
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.log('店铺满减非促销叠加通道')
|
|
|
- if (prosPrice >= item.promotions.touchPrice) {// 满足店铺满减条件下执行
|
|
|
+ if (prosPrice >= item.promotions.touchPrice) {
|
|
|
+ // 满足店铺满减条件下执行
|
|
|
item.totalPrice = prosPrice - item.promotions.reducedPrice
|
|
|
item.reducedPrice = item.promotions.reducedPrice
|
|
|
item.totalOriginalPrice = totalOriginalPrice
|
|
@@ -704,15 +750,15 @@ export default {
|
|
|
let _price = pros.price * pros.number
|
|
|
_totalOriginalPrice += pros.price * pros.number
|
|
|
if (pros.promotions && pros.promotions.type != 2 && pros.promotions.mode == 2) {
|
|
|
- if(pros.promotions.discount == 1){
|
|
|
- discountNum = parseInt(_price/pros.promotions.touchPrice)
|
|
|
- console.log('单品满减促销叠加通道叠加次数',`${discountNum}次`)
|
|
|
+ if (pros.promotions.discount == 1) {
|
|
|
+ discountNum = parseInt(_price / pros.promotions.touchPrice)
|
|
|
+ console.log('单品满减促销叠加通道叠加次数', `${discountNum}次`)
|
|
|
if (_price >= pros.promotions.touchPrice) {
|
|
|
- _price = _price - pros.promotions.reducedPrice*discountNum
|
|
|
- _reducedPrice += pros.promotions.reducedPrice*discountNum
|
|
|
+ _price = _price - pros.promotions.reducedPrice * discountNum
|
|
|
+ _reducedPrice += pros.promotions.reducedPrice * discountNum
|
|
|
}
|
|
|
_totalPrice += _price
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.log('单品满减非促销叠加通道')
|
|
|
if (_price >= pros.promotions.touchPrice) {
|
|
|
_price = _price - pros.promotions.reducedPrice
|
|
@@ -750,18 +796,18 @@ export default {
|
|
|
if (pros.promotions && pros.promotions.type * 1 === 1 && pros.promotions.mode * 1 === 2) {
|
|
|
// 单品满减-重新计算供应商总价/满减金额
|
|
|
let _price = pros.price * pros.number
|
|
|
- if(pros.promotions.discount == 1){
|
|
|
- let discountNum = parseInt(_price/pros.promotions.touchPrice)
|
|
|
- console.log('单品满减促销叠加通道叠加次数',`${discountNum}次`)
|
|
|
+ if (pros.promotions.discount == 1) {
|
|
|
+ let discountNum = parseInt(_price / pros.promotions.touchPrice)
|
|
|
+ console.log('单品满减促销叠加通道叠加次数', `${discountNum}次`)
|
|
|
// 单品满减-重新计算供应商总价/满减金额
|
|
|
- if ( _price >= pros.promotions.touchPrice) {
|
|
|
- supplierPrice -= pros.promotions.reducedPrice*discountNum
|
|
|
- supplierReducedPrice += pros.promotions.reducedPrice*discountNum
|
|
|
+ if (_price >= pros.promotions.touchPrice) {
|
|
|
+ supplierPrice -= pros.promotions.reducedPrice * discountNum
|
|
|
+ supplierReducedPrice += pros.promotions.reducedPrice * discountNum
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.log('非促销叠加通道')
|
|
|
// 单品满减-重新计算供应商总价/满减金额
|
|
|
- if ( _price >= pros.promotions.touchPrice) {
|
|
|
+ if (_price >= pros.promotions.touchPrice) {
|
|
|
supplierPrice -= pros.promotions.reducedPrice
|
|
|
supplierReducedPrice += pros.promotions.reducedPrice
|
|
|
}
|
|
@@ -772,14 +818,15 @@ export default {
|
|
|
// 店铺满减
|
|
|
if (item.promotions && item.promotions.mode * 1 === 2) {
|
|
|
// 店铺满减-计算供应商总价/满减金额
|
|
|
- if(item.promotions.discount == 1){// 支持促销叠加条件的店铺满减 执行
|
|
|
- let prosDiscountNum = parseInt(supplierPrice/item.promotions.touchPrice) // 店铺满减促销叠加次数 = 店铺合计价格/满减促销价格
|
|
|
- console.log('店铺满减促销叠加通道叠加次数',`${prosDiscountNum}次`)
|
|
|
+ if (item.promotions.discount == 1) {
|
|
|
+ // 支持促销叠加条件的店铺满减 执行
|
|
|
+ let prosDiscountNum = parseInt(supplierPrice / item.promotions.touchPrice) // 店铺满减促销叠加次数 = 店铺合计价格/满减促销价格
|
|
|
+ console.log('店铺满减促销叠加通道叠加次数', `${prosDiscountNum}次`)
|
|
|
if (supplierPrice >= item.promotions.touchPrice) {
|
|
|
- supplierPrice -= item.promotions.reducedPrice*prosDiscountNum
|
|
|
- supplierReducedPrice += item.promotions.reducedPrice*prosDiscountNum
|
|
|
+ supplierPrice -= item.promotions.reducedPrice * prosDiscountNum
|
|
|
+ supplierReducedPrice += item.promotions.reducedPrice * prosDiscountNum
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.log('店铺满减非促销叠加通道')
|
|
|
// 店铺满减-计算供应商总价/满减金额
|
|
|
if (supplierPrice >= item.promotions.touchPrice) {
|
|
@@ -794,10 +841,10 @@ export default {
|
|
|
totalPrice += item.totalprice
|
|
|
reducedPrice += item.reducedprice
|
|
|
originalPrice += item.originalprice
|
|
|
- console.log('totalPrice',totalPrice)
|
|
|
- console.log('originalPrice',originalPrice)
|
|
|
+ console.log('totalPrice', totalPrice)
|
|
|
+ console.log('originalPrice', originalPrice)
|
|
|
})
|
|
|
- if(this.isCheckedProductStatus){
|
|
|
+ if (this.isCheckedProductStatus) {
|
|
|
// 总促销计算
|
|
|
this.promotionsList.forEach(promotions => {
|
|
|
// 凑单满减
|
|
@@ -807,15 +854,16 @@ export default {
|
|
|
promotions.productList.forEach(pros => {
|
|
|
collecTotal += this.collecTotalPrice(pros)
|
|
|
})
|
|
|
- if(promotions.discount == 1){// 支持凑单满减促销叠加条件的执行
|
|
|
- collecDiscountNum += parseInt(collecTotal/promotions.touchPrice) // 凑单满减促销叠加次数 = 凑单商品合计价格/凑单满减促销价格
|
|
|
- console.log('凑单促销满减叠加通道叠加次数',`${collecDiscountNum}次`)
|
|
|
+ if (promotions.discount == 1) {
|
|
|
+ // 支持凑单满减促销叠加条件的执行
|
|
|
+ collecDiscountNum += parseInt(collecTotal / promotions.touchPrice) // 凑单满减促销叠加次数 = 凑单商品合计价格/凑单满减促销价格
|
|
|
+ console.log('凑单促销满减叠加通道叠加次数', `${collecDiscountNum}次`)
|
|
|
if (collecTotal >= promotions.touchPrice) {
|
|
|
- totalPrice -= promotions.reducedPrice*collecDiscountNum
|
|
|
- reducedPrice += promotions.reducedPrice*collecDiscountNum
|
|
|
+ totalPrice -= promotions.reducedPrice * collecDiscountNum
|
|
|
+ reducedPrice += promotions.reducedPrice * collecDiscountNum
|
|
|
}
|
|
|
- }else{
|
|
|
- console.log('凑单促销满减非叠加通道')
|
|
|
+ } else {
|
|
|
+ console.log('凑单促销满减非叠加通道')
|
|
|
if (collecTotal >= promotions.touchPrice) {
|
|
|
totalPrice -= promotions.reducedPrice
|
|
|
reducedPrice += promotions.reducedPrice
|
|
@@ -831,10 +879,11 @@ export default {
|
|
|
this.allPrice = totalPrice
|
|
|
}
|
|
|
},
|
|
|
- collecTotalPrice(pros){// 凑单满减计算勾选的凑单商品总价
|
|
|
- let price
|
|
|
+ collecTotalPrice(pros) {
|
|
|
+ // 凑单满减计算勾选的凑单商品总价
|
|
|
+ let price
|
|
|
this.checkenProsList.find(el => {
|
|
|
- if(pros.productId == el.productId ){
|
|
|
+ if (pros.productId == el.productId) {
|
|
|
price = el.number * el.price
|
|
|
}
|
|
|
})
|
|
@@ -922,9 +971,32 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ setCartisDisable(){// 删除取消设置不能选的商品
|
|
|
+ this.goodsList = this.goodsList.map(suppler=>{
|
|
|
+ suppler.isDisable = false
|
|
|
+ suppler.cartList.forEach(pros => {
|
|
|
+ pros.isDisable = false
|
|
|
+ })
|
|
|
+ return suppler
|
|
|
+ })
|
|
|
+ },
|
|
|
+ clearCartisDisable(){// 取消删除设置不能选的商品
|
|
|
+ this.goodsList = this.goodsList.map((supplier) => {
|
|
|
+ supplier.cartList.forEach(pros => {
|
|
|
+ if(pros.stock === 0 || pros.number > pros.stock ){
|
|
|
+ supplier.isDisable = true
|
|
|
+ pros.isDisable = true
|
|
|
+ }else{
|
|
|
+ pros.isDisable = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return supplier
|
|
|
+ })
|
|
|
+ },
|
|
|
showDelManager() {
|
|
|
//显示删除商品管理
|
|
|
this.isshowDelbtn = true
|
|
|
+ this.setCartisDisable()
|
|
|
if (this.isCheckAll) {
|
|
|
this.updateBothCheckBtn()
|
|
|
} else {
|
|
@@ -934,11 +1006,15 @@ export default {
|
|
|
hideDelManage() {
|
|
|
//隐藏删除商品管理
|
|
|
this.isshowDelbtn = false
|
|
|
- if (this.isCheckAll) {
|
|
|
- this.updateBothCheckBtn()
|
|
|
- } else {
|
|
|
- this.updateCheckAllBtn()
|
|
|
- }
|
|
|
+ this.isCheckAll = false
|
|
|
+ this.clearCartisDisable()
|
|
|
+ this.goodsList = this.goodsList.map(suppler=>{
|
|
|
+ suppler.isChecked = false
|
|
|
+ suppler.cartList.forEach(pros => {
|
|
|
+ pros.isChecked = false
|
|
|
+ })
|
|
|
+ return suppler
|
|
|
+ })
|
|
|
},
|
|
|
goNavto(url) {
|
|
|
uni.navigateTo({
|
|
@@ -969,10 +1045,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- handleShouUnitPopup(pros){// 规格弹窗
|
|
|
- this.popupShow1 = true
|
|
|
+ handleShouUnitPopup(pros) {
|
|
|
+ // 规格弹窗
|
|
|
+ this.popupShow = true
|
|
|
this.handlePros = pros
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (this.hasNextPage) {
|
|
@@ -998,7 +1075,7 @@ page {
|
|
|
}
|
|
|
.cart-content {
|
|
|
position: relative;
|
|
|
- padding-bottom: 74rpx;
|
|
|
+ padding-bottom: 100rpx;
|
|
|
}
|
|
|
.container-cart-main.none {
|
|
|
display: none;
|
|
@@ -1176,16 +1253,16 @@ page {
|
|
|
height: 210rpx;
|
|
|
border-radius: 10rpx;
|
|
|
}
|
|
|
- .pros-type{
|
|
|
+ .pros-type {
|
|
|
width: 64rpx;
|
|
|
height: 64rpx;
|
|
|
text-align: justify;
|
|
|
box-sizing: border-box;
|
|
|
padding: 10rpx;
|
|
|
border-radius: 0 0 8rpx 8rpx;
|
|
|
- background-color: #33CCBF;
|
|
|
+ background-color: #33ccbf;
|
|
|
font-size: $font-size-22;
|
|
|
- color: #FFFFFF;
|
|
|
+ color: #ffffff;
|
|
|
line-height: 25rpx;
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
@@ -1293,6 +1370,29 @@ page {
|
|
|
.productCode {
|
|
|
color: #666666;
|
|
|
}
|
|
|
+ .cart-sku-temp {
|
|
|
+ width: 100%;
|
|
|
+ height: 48rpx;
|
|
|
+ margin: 30rpx 0 0 0;
|
|
|
+ .cart-sku-text {
|
|
|
+ font-size: 28rpx;
|
|
|
+ line-height: 48rpx;
|
|
|
+ color: #666666;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .cart-sku-btn {
|
|
|
+ padding: 0 16rpx;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border: 1px solid #e15616;
|
|
|
+ color: #e15616;
|
|
|
+ float: left;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ margin-left: 16rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
.productprice {
|
|
|
width: 100%;
|
|
|
height: 48rpx;
|