Browse Source

美食样式调整

master
jiazhipeng 1 year ago
parent
commit
52d093d9bc
  1. 23
      subPackages/food/foodDetail.vue

23
subPackages/food/foodDetail.vue

@ -60,24 +60,23 @@
<view class="content"> <view class="content">
<view class="content-top flex-between"> <view class="content-top flex-between">
<view class="center"> <view class="center">
<view class="item-title text-overflow"> <view class="item-title text-overflowRows">
{{skuItem.title}} {{skuItem.title}}
</view> </view>
<image class="right" :src="showImg('/uploads/20240827/0e777c1006a15612a0d449178472fd13.png')" mode=""></image> <image class="right" :src="showImg('/uploads/20240827/0e777c1006a15612a0d449178472fd13.png')" mode=""></image>
</view> </view>
<view class="price">{{skuItem.money/100}}</view>
</view> </view>
<view class="content-bottom flex-between"> <view class="content-bottom flex-between">
<view class="tags "> <view class="tags ">
<view class="tag" v-for="(tag,tagIndex) in skuItem.specifications_new_tag.split(',').slice(0,3)" :key="tagIndex"> <!-- <view class="tag" v-for="(tag,tagIndex) in skuItem.specifications_new_tag.split(',').slice(0,3)" :key="tagIndex">
{{tag}} {{tag}}
<text class="shu">|</text> <text class="shu">|</text>
</view> -->
<view class="tag text-overflow w-full" v-if="skuItem.specifications_new_tag">
{{skuItem.specifications_new_tag.split(',').slice(0,3).join(' | ')}}
</view> </view>
</view> </view>
</view>
<view class="content-bottom flex-between">
<view class="price">{{skuItem.money/100}}</view>
<view class="order" @click.stop="order(skuItem)">购买</view> <view class="order" @click.stop="order(skuItem)">购买</view>
</view> </view>
@ -338,7 +337,7 @@
} }
.content-top { .content-top {
align-items: flex-start;
} }
.item-title { .item-title {
@ -347,7 +346,7 @@
font-weight: bold; font-weight: bold;
font-size: 31rpx; font-size: 31rpx;
color: #000000; color: #000000;
max-width: 450rpx; max-width: 286rpx;
} }
.right { .right {
@ -366,6 +365,9 @@
font-size: 23rpx; font-size: 23rpx;
color: #666666; color: #666666;
display: flex; display: flex;
flex:1;
width: 1rpx;
padding-right: 20rpx;
} }
.order { .order {
@ -379,11 +381,12 @@
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
line-height: 53rpx; line-height: 53rpx;
flex-shrink: 0;
} }
.price { .price {
width: 133rpx; width: 133rpx;
// text-align: center; text-align: center;
font-family: PingFang; font-family: PingFang;
font-weight: bold; font-weight: bold;
font-size: 36rpx; font-size: 36rpx;

Loading…
Cancel
Save