|
|
@@ -7,13 +7,13 @@
|
|
|
<view class="tit" >{{ info.itemName}}</view>
|
|
|
<view class="kc num-open_bx flex-space">
|
|
|
<view v-if="!offPrice">
|
|
|
- <view class="flex-space" style="margin-top:15upx" v-if="Number(info.discountPrice)>0">
|
|
|
+ <view class="flex-space" v-if="Number(info.discountPrice)>0" style="position:absolute;top:14upx;">
|
|
|
<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">
|
|
|
{{parseFloat(((Number(info.discountPrice)/Number(info.prePrice)).toFixed(2)*10).toFixed(1))+'折'}}
|
|
|
</view>
|
|
|
<text style="text-decoration:line-through;color:#A9A9A9">¥{{parseFloat(info.prePrice)}}</text>
|
|
|
</view>
|
|
|
- <view class="flex-space" style="margin-top:15upx;color:#CCCCCC;" v-else>
|
|
|
+ <view class="flex-space" style="color:#CCCCCC;position:absolute;top:13upx;" v-else>
|
|
|
{{info.ratio}}{{info.smallUnit}}/{{info.bigUnit}}
|
|
|
</view>
|
|
|
<view class="price" >¥{{ parseFloat(info.price) }}</view>
|
|
|
@@ -228,7 +228,6 @@ export default {
|
|
|
font-size: 30upx;
|
|
|
font-weight: 700;
|
|
|
color: #333333;
|
|
|
- padding-top: 0 0 2upx 0;
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|