Commit 4f230aa3 by 李伟康

```

feat(equity-tool): 优化商品展示样式与价格输入逻辑

调整 SKU 商品组件中商品名称的样式类名,并增加对 goodsFlag 为 2 时的样式处理。
重构价格显示与输入框结构,统一包裹在 front-number-box 中以提升布局灵活性。
修正样式细节,包括间距、定位及字体大小等,确保 UI 展示一致性。
```
1 parent 7f948434
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@click="deleteGoods(index)" @click="deleteGoods(index)"
></view> ></view>
<view :class="['right',{'one-line':item.goodsFlag == 1}]"> <view :class="['right',{'one-line':item.goodsFlag == 1}]">
<view class="shop-name">{{ goodsName(item) }}</view> <view :class="['shop-name',{'name-top':item.goodsFlag == 2}]">{{ goodsName(item) }}</view>
<view <view
class="alias" class="alias"
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias" v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias"
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
{{item.multipleSpecificationsGoods.goods.specificationStr}} {{item.multipleSpecificationsGoods.goods.specificationStr}}
</view> </view>
</template> </template>
<view class="front-number-box flex">
<template v-if="item.goodsFlag == 1"> <template v-if="item.goodsFlag == 1">
<template v-if="item.goods.goodsPriceModify"> <template v-if="item.goods.goodsPriceModify">
¥{{item.goods.sellPrice}} ¥{{item.goods.sellPrice}}
...@@ -113,6 +114,7 @@ ...@@ -113,6 +114,7 @@
</view> </view>
</view> </view>
</view> </view>
</view>
</template> </template>
</view> </view>
</view> </view>
...@@ -364,10 +366,12 @@ export default { ...@@ -364,10 +366,12 @@ export default {
flex: 1; flex: 1;
font-size: toRpx(28); font-size: toRpx(28);
margin-left: toRpx(24); margin-left: toRpx(24);
position: relative;
} }
.one-line { .one-line {
display: flex; display: flex;
align-items: center; align-items: center;
min-height: 72rpx;
.front-gear-box { .front-gear-box {
margin-left: auto; margin-left: auto;
} }
...@@ -377,7 +381,9 @@ export default { ...@@ -377,7 +381,9 @@ export default {
max-width: 70%; max-width: 70%;
word-break: break-all; word-break: break-all;
} }
.name-top {
margin-top: 4rpx;
}
.alias { .alias {
margin-top: toRpx(12); margin-top: toRpx(12);
font-size: toRpx(24); font-size: toRpx(24);
...@@ -433,6 +439,13 @@ export default { ...@@ -433,6 +439,13 @@ export default {
.number { .number {
margin-left: 16rpx; margin-left: 16rpx;
} }
.front-number-box{
position: absolute;
top: 50%;
right: 24rpx;
transform: translateY(-50%);
}
} }
} }
.front-gear-input-box { .front-gear-input-box {
...@@ -461,12 +474,13 @@ export default { ...@@ -461,12 +474,13 @@ export default {
.uni-input { .uni-input {
padding: 0 toRpx(32); padding: 0 toRpx(32);
height: 100%; height: 100%;
font-size: 28rpx;
} }
.unit { .unit {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: toRpx(32); left: toRpx(24);
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!