|
|
@@ -15,7 +15,8 @@
|
|
|
</view>
|
|
|
<view class="open-bx">
|
|
|
<i class="iconfont iconjian" :class="delAnimationData?'animation':''" @click="delEvent" v-if="bigCount > 0 || smallCount > 0"></i>
|
|
|
- <text class="num" @click="customNum" v-if="bigCount > 0 || smallCount > 0">
|
|
|
+ <text class="num" @click="customNum" >
|
|
|
+<!-- <text class="num" @click="customNum" v-if="bigCount > 0 || smallCount > 0">-->
|
|
|
<text v-if="bigCount > 0 || smallCount > 0">{{ `${bigCount}` }}</text>
|
|
|
<text v-if="smallCount > 0">/</text>
|
|
|
<text v-if="smallCount > 0">{{ `${smallCount}` }}</text>
|
|
|
@@ -71,12 +72,12 @@ export default {
|
|
|
methods: {
|
|
|
addEvent() {
|
|
|
this.animationFun('add');
|
|
|
- let params = {
|
|
|
- ...this.info,
|
|
|
- bigCount: this.bigCount,
|
|
|
- smallCount: this.smallCount
|
|
|
- };
|
|
|
- this.$emit("add", this.info,params);
|
|
|
+ // let params = {
|
|
|
+ // ...this.info,
|
|
|
+ // bigCount: this.bigCount,
|
|
|
+ // smallCount: this.smallCount
|
|
|
+ // };
|
|
|
+ this.$emit("add", this.info);
|
|
|
},
|
|
|
delEvent() {
|
|
|
this.animationFun('del');
|
|
|
@@ -93,6 +94,14 @@ export default {
|
|
|
this.$emit("changePrice", this.info, value);
|
|
|
},
|
|
|
customNum() {
|
|
|
+ if(!this.info.bigCount){
|
|
|
+ let params = {
|
|
|
+ ...this.info,
|
|
|
+ bigCount: this.bigCount,
|
|
|
+ smallCount: this.smallCount
|
|
|
+ };
|
|
|
+ this.$emit("addOneEvent", this.info,params);
|
|
|
+ }
|
|
|
this.$emit("customNum", {
|
|
|
...this.info,
|
|
|
bigCount: this.bigCount,
|
|
|
@@ -156,6 +165,7 @@ export default {
|
|
|
& > .num {
|
|
|
display: inline-block;
|
|
|
width: 120rpx;
|
|
|
+ height:45rpx;
|
|
|
text-align:center;
|
|
|
margin: 0 8px;
|
|
|
color: #868686;
|