diff --git a/src/assets/images/example.png b/src/assets/images/example.png new file mode 100644 index 0000000..20e47b2 Binary files /dev/null and b/src/assets/images/example.png differ diff --git a/src/components/CommodityItem.vue b/src/components/CommodityItem.vue index b4d639d..084f76f 100644 --- a/src/components/CommodityItem.vue +++ b/src/components/CommodityItem.vue @@ -52,7 +52,7 @@ :class="{ 'is-download': download }" v-if="props.showPrice && props.price" > - {{ props.price }} + HK${{ props.price }}
@@ -89,16 +89,17 @@ color: #232323; > .name { font-family: 'KaiseiOpti-Regular'; - font-weight: 400; - font-size: var(--commodity-name-fontSize, 1.6rem); + font-weight: 700; + font-size: var(--commodity-name-fontSize, 2rem); line-height: var(--commodity-name-lineHeight, 2.3rem); margin-bottom: var(--commodity-name-marginBottom, 0rem); } > .price { font-family: 'KaiseiOpti-Regular'; font-weight: 400; - font-size: var(--commodity-price-fontSize, 1.4rem); + font-size: var(--commodity-price-fontSize, 1.6rem); line-height: var(--commodity-price-lineHeight, 2.3rem); + margin-top: .8rem; &.is-download { color: #979797; } diff --git a/src/components/checked.vue b/src/components/checked.vue index 39761a7..511b6fe 100644 --- a/src/components/checked.vue +++ b/src/components/checked.vue @@ -15,14 +15,14 @@ const emit = defineEmits([ ]) const checkList = computed(()=>{ if(props.selected[0] === 'all'){ - return props.list.map(item => item.value) + return [] }else{ return [...props.selected] } }) const handleChange = (val) => { let data = val.filter(item => item !== 'all') - if(data.length == props.list.length){ + if(data.length == props.list.length || data.length == 0){ data = ['all'] }else{ data = [...val] @@ -31,18 +31,19 @@ const handleChange = (val) => { emit('change', data) } const checkAll = computed(()=>{ - return checkList.value.length === props.list.length + return props.selected?.[0] == 'all' }) const handleCheckAllChange = (val) => { let data = [] if(val && props.selected[0] !== 'all'){ data = ['all'] // data = props.list.map(item => item.value) + emit('update:selected', data) + emit('change', data) }else{ data = [] } - emit('update:selected', data) - emit('change', data) + } let data = reactive({ }) diff --git a/src/views/brand/index.vue b/src/views/brand/index.vue index 52e233a..dc4f8cb 100644 --- a/src/views/brand/index.vue +++ b/src/views/brand/index.vue @@ -188,6 +188,7 @@ const {} = toRefs(data); position: relative; height: 34.4rem; transition: all .3s; + flex-shrink: 0; &.active{ height: 14.7rem; } @@ -227,7 +228,7 @@ const {} = toRefs(data); flex-direction: column; align-items: center; flex: 1; - overflow: hidden; + // overflow: hidden; > .input{ width: 66.6rem; display: flex; @@ -286,14 +287,17 @@ const {} = toRefs(data); > .merchantList{ width: 121.8rem; margin-top: 6rem; - flex: 1; - overflow-y: auto; - gap: 3.2rem; + // flex: 1; + // overflow-y: auto; display: flex; flex-direction: column; ::-webkit-scrollbar{ display: none; } + :deep(.item){ + margin-top: 2.1rem; + padding-bottom: 2.1rem; + } .end{ font-family: 'KaiseiOpti-Regular'; font-weight: 400; diff --git a/src/views/brandDetail/index.vue b/src/views/brandDetail/index.vue index ccde17e..c98fa3b 100644 --- a/src/views/brandDetail/index.vue +++ b/src/views/brandDetail/index.vue @@ -78,8 +78,12 @@ defineExpose({}) overflow-y: auto; .header-img{ width: 100%; + border-bottom: 1px solid #232323; >img{ width: 100%; + height: 100%; + display: block; + object-fit: cover; } } .content{ diff --git a/src/views/collectionStory/detail/index.vue b/src/views/collectionStory/detail/index.vue index ed8f739..971bb48 100644 --- a/src/views/collectionStory/detail/index.vue +++ b/src/views/collectionStory/detail/index.vue @@ -1,6 +1,6 @@