|
|
@@ -1,8 +1,5 @@
|
|
|
<template>
|
|
|
<view class="item-cmd_bx" @click="customNum">
|
|
|
-<!-- <view class="img_bx" @click="addEvents">-->
|
|
|
-<!-- <app-img :src="info.cover" alt="商品图" mode="aspectFit" :height="160" />-->
|
|
|
-<!-- </view>-->
|
|
|
<view class="img_bx" style="background:#eeeeee">
|
|
|
<image :src="info.cover" v-if="isImg"></image>
|
|
|
</view>
|
|
|
@@ -25,14 +22,10 @@
|
|
|
</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 cs" v-if="!offPrice">¥{{ oldPrice }}</view>
|
|
|
-
|
|
|
<view class="price" v-else></view>
|
|
|
-
|
|
|
<view class="open-bx" style="padding-bottom: 40rpx" >
|
|
|
<input class="change-input" @focus="showPrice = null" v-model="showPrice" type="digit" placeholder="自动调价" />
|
|
|
- <!--<input class="change-input" @tap.stop="" @focus="changeAutoPrice = null" v-model="changeAutoPrice" type="digit" placeholder="自动调价" selection-start="0" selection-end="1" />-->
|
|
|
<view style="width: 80rpx;text-align: center;color: red">
|
|
|
{{Number(oldPrice)>Number(showPrice)&&Number(showPrice)>0?((Number(showPrice)/Number(oldPrice)).toFixed(2)*10).toFixed(1)+'折':''}}
|
|
|
</view>
|
|
|
@@ -48,18 +41,13 @@
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import AppImg from "@/components/app-img";
|
|
|
import { autoPriceByIdApi, changePriceByIdApi } from '@/api/product/index'
|
|
|
-// import productMins from "@/mixins/productContrapose";
|
|
|
import animationMins from "@/mixins/animation";
|
|
|
-
|
|
|
import allSelectInput from "@/components/module/allSelectInput";
|
|
|
import allSelectInputMins from "@/mixins/allSelectInput";
|
|
|
-//报错暂时注释
|
|
|
-//import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue'
|
|
|
export default {
|
|
|
name: "Commodity",
|
|
|
components: {
|
|
|
AppImg,allSelectInput
|
|
|
- //easyLoadimage
|
|
|
},
|
|
|
mixins: [animationMins,allSelectInputMins],
|
|
|
props: {
|