|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
-<view class="product">
|
|
|
+<view class="product" :class="{ 'product--has-remark': info.itemRemark }">
|
|
|
<view class="item-cmd_bx">
|
|
|
<!-- 图片区域 -->
|
|
|
<view class="img_bx" @click.stop="pageTo({url: '/admin/item/detail?id='+info.id})">
|
|
|
@@ -16,7 +16,7 @@
|
|
|
<!-- 商品标题 -->
|
|
|
<view class="tit">
|
|
|
<text v-if="info.presell == 1" class="presell-tag">预售</text>
|
|
|
- {{ info.name || "" }}
|
|
|
+ <text class="tit-name">{{ info.name || "" }}</text>
|
|
|
</view>
|
|
|
|
|
|
<!-- 价格 -->
|
|
|
@@ -37,12 +37,18 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <item-remark-bar :text="info.itemRemark" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import ItemRemarkBar from '@/components/module/itemRemarkBar.vue'
|
|
|
+
|
|
|
export default {
|
|
|
name: "changeHideItem",
|
|
|
+ components: {
|
|
|
+ ItemRemarkBar
|
|
|
+ },
|
|
|
props: {
|
|
|
isPrice: {
|
|
|
type: Boolean,
|
|
|
@@ -77,14 +83,24 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.product {
|
|
|
- height: 190upx;
|
|
|
+ width: 100%;
|
|
|
+ height: 160upx;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ &.product--has-remark {
|
|
|
+ height: 216upx;
|
|
|
+ }
|
|
|
|
|
|
.item-cmd_bx {
|
|
|
+ width: 100%;
|
|
|
height: 160upx;
|
|
|
position: relative;
|
|
|
- margin-bottom: 20upx;
|
|
|
+ margin-bottom: 0;
|
|
|
display: flex;
|
|
|
align-items: flex-start;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
// 图片区域
|
|
|
.img_bx {
|
|
|
@@ -124,22 +140,28 @@ export default {
|
|
|
.cmd-info_bx {
|
|
|
position: relative;
|
|
|
flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+ width: 0;
|
|
|
padding-left: 16upx;
|
|
|
+ padding-right: 52upx;
|
|
|
+ box-sizing: border-box;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
justify-content: flex-start;
|
|
|
+ overflow: hidden;
|
|
|
|
|
|
.tit {
|
|
|
- font-size:32upx;
|
|
|
- font-weight:700;
|
|
|
+ width: 100%;
|
|
|
+ min-width: 0;
|
|
|
+ font-size: 32upx;
|
|
|
+ font-weight: 700;
|
|
|
color: #333333;
|
|
|
- overflow: hidden;
|
|
|
- white-space: nowrap;
|
|
|
- text-overflow: ellipsis;
|
|
|
margin-bottom: 8upx;
|
|
|
display: flex;
|
|
|
+ flex-direction: row;
|
|
|
align-items: center;
|
|
|
- padding-right: 60upx;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
.presell-tag {
|
|
|
font-size: 18upx;
|
|
|
@@ -150,6 +172,14 @@ export default {
|
|
|
margin-right: 6upx;
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
+
|
|
|
+ .tit-name {
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 价格
|
|
|
@@ -181,13 +211,15 @@ export default {
|
|
|
// 选择框
|
|
|
.details-select {
|
|
|
position: absolute;
|
|
|
- top: 8upx;
|
|
|
- right: 8upx;
|
|
|
- width: 44upx;
|
|
|
- height: 44upx;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ z-index: 5;
|
|
|
+ width: 48upx;
|
|
|
+ height: 48upx;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
|
.iconfont {
|
|
|
font-size: 40upx;
|