|
|
@@ -5,7 +5,7 @@
|
|
|
</view>
|
|
|
<view class="cmd-info_bx">
|
|
|
<view class="tit" >{{ info.itemName}}</view>
|
|
|
- <view class="kc num-open_bx flex-space" v-if="type == COMMODITY_TYPE.COMMON">
|
|
|
+ <view class="kc num-open_bx flex-space">
|
|
|
<view v-if="!offPrice">
|
|
|
<view class="flex-space" style="margin-top:20upx" v-if="Number(info.discountPrice)>0">
|
|
|
<view style="padding:2upx 10upx 5upx 10upx;text-align: center;color: red;border: 1px solid red;margin-right: 20upx;line-height: 1;font-size: 20upx">
|
|
|
@@ -16,28 +16,17 @@
|
|
|
<view class="price" >¥{{ parseFloat(info.price) }}</view>
|
|
|
</view>
|
|
|
<view class="price" v-else></view>
|
|
|
- <view style="text-align: right" >
|
|
|
- <view class="open-bx" >
|
|
|
- <i class="iconfont iconjian" :class="delAnimationData?'animation':''" @click.stop="delEvent(info.variety)" v-if="bigCount > 0 || smallCount > 0"></i>
|
|
|
- <text class="num">
|
|
|
- <text v-if="bigCount > 0 || smallCount > 0">{{ `${bigCount}` }}</text>
|
|
|
- <text v-if="smallCount > 0">/</text>
|
|
|
- <text v-if="smallCount > 0">{{ `${smallCount}` }}</text>
|
|
|
- </text>
|
|
|
- <i class="iconfont iconzeng" :class="addAnimationData?'animation':''" @click.stop="addEvents(info.variety)"></i>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="num-open_bx flex-space" v-if="type == COMMODITY_TYPE.CHANGE">
|
|
|
- <view class="price" v-if="!offPrice">¥{{ showPrice }}</view>
|
|
|
- <view class="price" v-else></view>
|
|
|
- <view class="open-bx" style="padding-bottom: 40upx" >
|
|
|
- <allSelectInput :inputType="'digit'" :isActive="isAloneAllActive" :isFocus="isAloneAllFocus" :value="changeAutoPrice" :placeholder="'自动调价'"
|
|
|
- @deleteInputVal="deleteInputVal" @initAllInput="initAloneAllInput" @moveAllInput="moveAllInput">
|
|
|
- </allSelectInput>
|
|
|
- <i :class="isShowSucceed?'position iconfont iconjihuo':'position'" ></i>
|
|
|
- <view class="btn-box" @click="changePriceEvent">确定</view>
|
|
|
+
|
|
|
+ <view class="open-bx" >
|
|
|
+ <i class="iconfont iconjian" :class="delAnimationData?'animation':''" @click.stop="delEvent(info.variety)" v-if="bigCount > 0 || smallCount > 0"></i>
|
|
|
+ <text class="num">
|
|
|
+ <text v-if="bigCount > 0 || smallCount > 0">{{ `${bigCount}` }}</text>
|
|
|
+ <text v-if="smallCount > 0">/</text>
|
|
|
+ <text v-if="smallCount > 0">{{ `${smallCount}` }}</text>
|
|
|
+ </text>
|
|
|
+ <i class="iconfont iconzeng" :class="addAnimationData?'animation':''" @click.stop="addEvents(info.variety)"></i>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -153,6 +142,8 @@ export default {
|
|
|
this.$emit("showBigCover", this.info);
|
|
|
},
|
|
|
addEvents(variety) {
|
|
|
+ //暂时不考虑小菊图片问题
|
|
|
+ variety = 0
|
|
|
if(variety == 0){
|
|
|
const ratio = Number(this.info.ratio);
|
|
|
if(this.offVerifyRepertory){
|
|
|
@@ -173,9 +164,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
delEvent(variety) {
|
|
|
+ //暂时不考虑小菊图片问题
|
|
|
+ variety = 0
|
|
|
if(variety == 0){
|
|
|
this.animationFun('del');
|
|
|
- console.log(this.info,'this.info')
|
|
|
this.$emit("del", this.info);
|
|
|
}else{
|
|
|
//去特殊品种页
|
|
|
@@ -188,6 +180,8 @@ export default {
|
|
|
|
|
|
},
|
|
|
customNum(variety) {
|
|
|
+ //暂时不考虑小菊图片问题
|
|
|
+ variety = 0
|
|
|
if(variety == 0){
|
|
|
if(this.info.stock<=0){
|
|
|
uni.showToast({title:'没有货了',icon:'none'})
|
|
|
@@ -264,6 +258,9 @@ export default {
|
|
|
font-weight:550;
|
|
|
}
|
|
|
& .open-bx {
|
|
|
+ position: absolute;
|
|
|
+ right:10upx;
|
|
|
+ top:10upx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
& .iconfont {
|