|
@@ -60,7 +60,7 @@
|
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
<view class="item_list_bx selectAll" v-for="(classItem, classIndex) in filterProductInfo" :key="classIndex" :id="`class_${classIndex}`">
|
|
|
<view class="item_list_title">{{ classItem.className }}</view>
|
|
<view class="item_list_title">{{ classItem.className }}</view>
|
|
|
<template v-for="(productItem, productIndex) in classItem.child">
|
|
<template v-for="(productItem, productIndex) in classItem.child">
|
|
|
- <view style="height: 185upx" :id="`class_${classItem.classId}_${productItem.id}`" :key="productIndex">
|
|
|
|
|
|
|
+ <view :class="[productItem.variety == 1 ? 'color-box' : 'box']" :id="`class_${classItem.classId}_${productItem.id}`" :key="productIndex">
|
|
|
<Commondity v-if="classItem.isActive"
|
|
<Commondity v-if="classItem.isActive"
|
|
|
:info="productItem"
|
|
:info="productItem"
|
|
|
:offVerifyRepertory="true"
|
|
:offVerifyRepertory="true"
|
|
@@ -74,6 +74,9 @@
|
|
|
@showBigCover="showBigCover"
|
|
@showBigCover="showBigCover"
|
|
|
@goToSpecialVariety="goToSpecialVariety"
|
|
@goToSpecialVariety="goToSpecialVariety"
|
|
|
></Commondity>
|
|
></Commondity>
|
|
|
|
|
+ <view v-if="productItem.variety && productItem.variety == 1" class="has-color" @click="goToSpecialVariety(productItem)">
|
|
|
|
|
+ <view class="has-color-button">点我选颜色</view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
</view>
|
|
</view>
|
|
@@ -333,7 +336,7 @@ export default {
|
|
|
if(item.variety == 0){
|
|
if(item.variety == 0){
|
|
|
this.delEvent(item)
|
|
this.delEvent(item)
|
|
|
}else{
|
|
}else{
|
|
|
- this.$msg('小菊请在列表里修改')
|
|
|
|
|
|
|
+ this.$msg('多颜色请在列表里修改')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
addEvents(item) {
|
|
addEvents(item) {
|
|
@@ -351,7 +354,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.addEvent(item)
|
|
this.addEvent(item)
|
|
|
}else{
|
|
}else{
|
|
|
- this.$msg('小菊请在列表里修改')
|
|
|
|
|
|
|
+ this.$msg('多颜色请在列表里修改')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
customUpdate(item) {
|
|
customUpdate(item) {
|
|
@@ -362,7 +365,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.customNum({ ...item, bigCount: item.bigCount, smallCount: item.smallCount })
|
|
this.customNum({ ...item, bigCount: item.bigCount, smallCount: item.smallCount })
|
|
|
}else{
|
|
}else{
|
|
|
- this.$msg('小菊请在列表里修改')
|
|
|
|
|
|
|
+ this.$msg('多颜色请在列表里修改')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
showCartItem(){
|
|
showCartItem(){
|
|
@@ -391,7 +394,7 @@ export default {
|
|
|
if(info.stock <= 0){
|
|
if(info.stock <= 0){
|
|
|
uni.showToast({title:"没有库存",icon:"none"})
|
|
uni.showToast({title:"没有库存",icon:"none"})
|
|
|
}else{
|
|
}else{
|
|
|
- this.$util.pageTo({url: "/pagesPurchase/xj",query: {stock:info.stock,price: info.price,ghsId:this.option.id}})
|
|
|
|
|
|
|
+ this.$util.pageTo({url: "/pagesPurchase/xj",query: {stock:info.stock,price: info.price,ghsId:this.option.id,itemId:info.id}})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
showPopup() {
|
|
showPopup() {
|
|
@@ -799,9 +802,29 @@ export default {
|
|
|
}
|
|
}
|
|
|
.item_list_bx {
|
|
.item_list_bx {
|
|
|
padding: 40upx 16upx;
|
|
padding: 40upx 16upx;
|
|
|
- &:last-child{
|
|
|
|
|
- margin-bottom: 70upx;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ &:last-child{
|
|
|
|
|
+ margin-bottom: 70upx;
|
|
|
|
|
+ }
|
|
|
|
|
+ .box{
|
|
|
|
|
+ height: 185upx
|
|
|
|
|
+ }
|
|
|
|
|
+ .color-box{
|
|
|
|
|
+ height: 285upx
|
|
|
|
|
+ }
|
|
|
|
|
+ .has-color{
|
|
|
|
|
+ display:flex;
|
|
|
|
|
+ justify-content:center;
|
|
|
|
|
+ align-items:center;
|
|
|
|
|
+ height:110upx;
|
|
|
|
|
+ border-bottom:1upx solid rgb(247, 243, 243);
|
|
|
|
|
+ .has-color-button{
|
|
|
|
|
+ border:1upx solid #5a99f7;
|
|
|
|
|
+ border-radius:15upx;
|
|
|
|
|
+ padding:13upx 16upx;
|
|
|
|
|
+ font-size:30upx;
|
|
|
|
|
+ color:#3385ff;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.item_list_title {
|
|
.item_list_title {
|
|
|
margin-bottom: 20upx;
|
|
margin-bottom: 20upx;
|