|
@@ -7,11 +7,11 @@
|
|
|
<view class="tit" >{{ info.itemName}}</view>
|
|
<view class="tit" >{{ info.itemName}}</view>
|
|
|
<view class="kc num-open_bx flex-space">
|
|
<view class="kc num-open_bx flex-space">
|
|
|
<view v-if="!offPrice">
|
|
<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: 1upx solid red;margin-right: 20upx;line-height: 1;font-size: 20upx">
|
|
|
|
|
|
|
+ <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: 1upx solid red;line-height: 1;font-size: 20upx;">
|
|
|
{{parseFloat(((Number(info.discountPrice)/Number(info.prePrice)).toFixed(2)*10).toFixed(1))+'折'}}
|
|
{{parseFloat(((Number(info.discountPrice)/Number(info.prePrice)).toFixed(2)*10).toFixed(1))+'折'}}
|
|
|
</view>
|
|
</view>
|
|
|
- <text style="text-decoration:line-through;color:#A9A9A9">¥{{parseFloat(info.prePrice)}}</text>
|
|
|
|
|
|
|
+ <text style="text-decoration:line-through;color:#A9A9A9;position:absolute;display:block;top:16upx;left:90upx;">¥{{parseFloat(info.prePrice)}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="price" >¥{{ parseFloat(info.price) }}</view>
|
|
<view class="price" >¥{{ parseFloat(info.price) }}</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -31,11 +31,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import AppImg from "@/components/app-img";
|
|
import AppImg from "@/components/app-img";
|
|
|
-//import { autoPriceByIdApi, changePriceByIdApi } from '@/api/product/index'
|
|
|
|
|
import allSelectInput from "@/components/module/allSelectInput";
|
|
import allSelectInput from "@/components/module/allSelectInput";
|
|
|
import animationMins from "@/mixins/animation";
|
|
import animationMins from "@/mixins/animation";
|
|
|
import allSelectInputMins from "@/mixins/allSelectInput";
|
|
import allSelectInputMins from "@/mixins/allSelectInput";
|