|
@@ -9,12 +9,8 @@
|
|
|
<view class="num-open_bx">
|
|
<view class="num-open_bx">
|
|
|
<view class="price">¥{{ showPrice }}</view>
|
|
<view class="price">¥{{ showPrice }}</view>
|
|
|
<view class="open-bx" v-if="type == COMMODITY_TYPE.COMMON">
|
|
<view class="open-bx" v-if="type == COMMODITY_TYPE.COMMON">
|
|
|
- <i
|
|
|
|
|
- class="iconfont iconjian"
|
|
|
|
|
- @click="delEvent"
|
|
|
|
|
- v-if="bigCount > 0 || smallCount > 0"
|
|
|
|
|
- ></i>
|
|
|
|
|
- <text class="num" @click="customNum">
|
|
|
|
|
|
|
+ <i class="iconfont iconjian" @click="delEvent" v-if="bigCount > 0 || smallCount > 0"></i>
|
|
|
|
|
+ <text class="num" @click="customNum" v-if="bigCount > 0 || smallCount > 0">
|
|
|
<text v-if="bigCount > 0 || smallCount > 0">{{ `${bigCount}` }}</text>
|
|
<text v-if="bigCount > 0 || smallCount > 0">{{ `${bigCount}` }}</text>
|
|
|
<text v-if="smallCount > 0">/</text>
|
|
<text v-if="smallCount > 0">/</text>
|
|
|
<text v-if="smallCount > 0">{{ `${smallCount}` }}</text>
|
|
<text v-if="smallCount > 0">{{ `${smallCount}` }}</text>
|
|
@@ -82,7 +78,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
addEvent() {
|
|
addEvent() {
|
|
|
- this.$emit("add", this.info);
|
|
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ ...this.info,
|
|
|
|
|
+ bigCount: this.bigCount,
|
|
|
|
|
+ smallCount: this.smallCount
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$emit("add", this.info,params);
|
|
|
|
|
+ // this.$emit("add", this.info);
|
|
|
},
|
|
},
|
|
|
delEvent() {
|
|
delEvent() {
|
|
|
this.$emit("del", this.info);
|
|
this.$emit("del", this.info);
|