|
|
@@ -43,8 +43,8 @@
|
|
|
<view class="open-bx" >
|
|
|
<i class="iconfont iconjian" @click.stop="delEvent(info.variety)" v-if="bigCount > 0 || smallCount > 0"></i>
|
|
|
<text class="num">
|
|
|
- <text v-if="bigCount > 0" style="font-weight:bold;color:#3385ff;">{{ `${bigCount}` }}</text>
|
|
|
- <text v-if="smallCount > 0" >{{ `${smallCount}` }}</text>
|
|
|
+ <text v-if="bigCount > 0" class="num-big">{{ bigCount }}</text>
|
|
|
+ <text v-if="smallCount > 0" class="num-small">{{ smallCount }}</text>
|
|
|
</text>
|
|
|
<i class="iconfont iconzeng add-btn" @click.stop="addEvents(info.variety)"></i>
|
|
|
</view>
|
|
|
@@ -178,14 +178,17 @@ export default {
|
|
|
if(variety == 0){
|
|
|
if(this.offVerifyRepertory){
|
|
|
if(this.info.stock<=0){
|
|
|
+ this.$util.noStockRemind();
|
|
|
uni.showToast({title:'没有货了',icon:'none'})
|
|
|
return
|
|
|
}
|
|
|
if (Number(this.bigCount) >= Number(this.info.bigNum)) {
|
|
|
+ this.$util.noStockRemind();
|
|
|
this.$msg("库存只剩"+this.info.bigNum);
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ this.$util.hitRemind();
|
|
|
this.$emit("add", this.info);
|
|
|
}else{
|
|
|
this.$emit("goToSpecialVariety", this.info);
|
|
|
@@ -193,6 +196,7 @@ export default {
|
|
|
},
|
|
|
delEvent(variety) {
|
|
|
if(variety == 0){
|
|
|
+ this.$util.hitRemind();
|
|
|
this.$emit("del", this.info);
|
|
|
}else{
|
|
|
this.$emit("goToSpecialVariety", this.info);
|
|
|
@@ -201,6 +205,7 @@ export default {
|
|
|
customNum(variety) {
|
|
|
if(variety == 0){
|
|
|
if(this.info.stock<=0){
|
|
|
+ this.$util.noStockRemind();
|
|
|
uni.showToast({title:'没有货了',icon:'none'})
|
|
|
return
|
|
|
}
|
|
|
@@ -390,16 +395,27 @@ export default {
|
|
|
box-sizing: content-box;
|
|
|
}
|
|
|
& > .num {
|
|
|
- display: inline-block;
|
|
|
- width: 100upx;
|
|
|
- height:40upx;
|
|
|
- line-height:40upx;
|
|
|
- text-align:center;
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ min-width: 100upx;
|
|
|
+ height: 50upx;
|
|
|
+ line-height: 50upx;
|
|
|
+ text-align: center;
|
|
|
margin: 0 8upx;
|
|
|
color: #868686;
|
|
|
- border-radius: 22upx;
|
|
|
+ border-radius: 25upx;
|
|
|
background-color: #f5f5f5;
|
|
|
- font-size: 24upx;
|
|
|
+ font-size: 30upx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 8upx;
|
|
|
+ }
|
|
|
+ .num-big {
|
|
|
+ font-weight: bold;
|
|
|
+ color: #3385ff;
|
|
|
+ }
|
|
|
+ .num-small {
|
|
|
+ color: #868686;
|
|
|
}
|
|
|
}
|
|
|
}
|