|
|
@@ -1,22 +1,24 @@
|
|
|
<!--姜枫 2021.04.11-->
|
|
|
<template>
|
|
|
- <view class="item-cmd_bx" @click="addEvents">
|
|
|
- <view class="img_bx" @click="addEvents">
|
|
|
- <app-img :src="info.smallImgList[0]" alt="商品图" mode="aspectFit" :height="160" />
|
|
|
- </view>
|
|
|
- <view class="cmd-info_bx">
|
|
|
- <view class="tit" @click="addEvents">{{ info.goodsName || "" }}</view>
|
|
|
-<!-- <view class="kc" @click="addEvents">库存 {{ info.stock }}</view>-->
|
|
|
- <view class="num-open_bx">
|
|
|
-<!-- <view class="price">¥{{ showPrice }}</view>-->
|
|
|
- <view class="price">¥{{ info.price }}</view>
|
|
|
- <view class="open-bx" >
|
|
|
- <i class="iconfont iconjianqu" :class="delAnimationData?'animation':''" @click.stop="delEvent" v-if="bigCount > 0"></i>
|
|
|
- <text class="num" >
|
|
|
- <text v-if="bigCount > 0">{{ bigCount }}</text>
|
|
|
- </text>
|
|
|
- <i class="iconfont icontianjia" v-if="info.goodsStyle>0" :class="addAnimationData?'animation':''" @click="isGoodsStyle = true"></i>
|
|
|
- <i class="iconfont icontianjia" v-else :class="addAnimationData?'animation':''" @click.stop="addEvents"></i>
|
|
|
+ <view>
|
|
|
+ <view class="item-cmd_bx" @click="addEvents">
|
|
|
+ <view class="img_bx" >
|
|
|
+ <app-img :src="info.smallImgList[0]" alt="商品图" mode="aspectFit" :height="160" />
|
|
|
+ </view>
|
|
|
+ <view class="cmd-info_bx">
|
|
|
+ <view class="tit" @click="addEvents">{{ info.goodsName || "" }}</view>
|
|
|
+ <!-- <view class="kc" @click="addEvents">库存 {{ info.stock }}</view>-->
|
|
|
+ <view class="num-open_bx">
|
|
|
+ <!--<view class="price">¥{{ showPrice }}</view>-->
|
|
|
+ <view class="price">¥{{ info.price }}</view>
|
|
|
+ <view class="open-bx" >
|
|
|
+ <i class="iconfont iconjianqu" :class="delAnimationData?'animation':''" @click.stop="delEvent" v-if="bigCount > 0"></i>
|
|
|
+ <text class="num" >
|
|
|
+ <text v-if="bigCount > 0">{{ bigCount }}</text>
|
|
|
+ </text>
|
|
|
+ <i class="iconfont icontianjia" v-if="info.goodsStyle>0" @click.stop="showGoodsStyle"></i>
|
|
|
+ <i class="iconfont icontianjia" v-else :class="addAnimationData?'animation':''" @click.stop="addEvents"></i>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -69,12 +71,16 @@ export default {
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
- if(this.info.priceLabel == 2){
|
|
|
- this.changeAutoPrice = this.info.price
|
|
|
- }
|
|
|
- this.showPrice = this.info.price
|
|
|
+ // console.log(this.info,'this.info')
|
|
|
+ // if(this.info.priceLabel == 2){
|
|
|
+ // this.changeAutoPrice = this.info.price
|
|
|
+ // }
|
|
|
+ // this.showPrice = this.info.price
|
|
|
},
|
|
|
methods: {
|
|
|
+ showGoodsStyle(){
|
|
|
+ this.isGoodsStyle = true;
|
|
|
+ },
|
|
|
ok(bigCount,index){
|
|
|
let params = {
|
|
|
...this.info,
|
|
|
@@ -82,7 +88,7 @@ export default {
|
|
|
bigCount: bigCount
|
|
|
};
|
|
|
this.$emit("addGoodsEvent",params);
|
|
|
- console.log(params);
|
|
|
+ console.log(params,'console.log(this.bigCountNum)');
|
|
|
this.isGoodsStyle = false;
|
|
|
},
|
|
|
addEvents() {
|