|
@@ -6,19 +6,23 @@
|
|
|
<div class="top-row-item row-first">精品推荐</div>
|
|
<div class="top-row-item row-first">精品推荐</div>
|
|
|
<!-- 设置自定义宽度-->
|
|
<!-- 设置自定义宽度-->
|
|
|
<div class="top-row-item" v-for="item in topRow" :key="item.name" @click="clickTopRow(item.url)"
|
|
<div class="top-row-item" v-for="item in topRow" :key="item.name" @click="clickTopRow(item.url)"
|
|
|
- :style="topRowStyle"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ :style="topRowStyle">
|
|
|
<span>{{ item.name }}</span>
|
|
<span>{{ item.name }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row-bottom">
|
|
<div class="row-bottom">
|
|
|
<!-- 侧边类型-->
|
|
<!-- 侧边类型-->
|
|
|
<div class="row-left">
|
|
<div class="row-left">
|
|
|
- 内容
|
|
|
|
|
|
|
+ <div v-for="index in 9">
|
|
|
|
|
+ <AdvertisingLeftButton :adver="new AdverLeft('测试', '1')"></AdvertisingLeftButton>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 广告图展示-->
|
|
<!-- 广告图展示-->
|
|
|
<div class="row-right">
|
|
<div class="row-right">
|
|
|
- 广告
|
|
|
|
|
|
|
+ <AdverisingRight :data="new AdverRightData(
|
|
|
|
|
+ 3,
|
|
|
|
|
+ ['../assets/adver.jpg','../assets/adver.jpg','../assets/adver.jpg'],['','','']
|
|
|
|
|
+ )"/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -27,6 +31,10 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import {ref} from "vue";
|
|
import {ref} from "vue";
|
|
|
|
|
+import AdvertisingLeftButton from "../components/AdvertisingLeftButton.vue";
|
|
|
|
|
+import {AdverLeft} from "../entity/AdverLeft.ts";
|
|
|
|
|
+import AdverisingRight from "../components/AdverisingRight.vue";
|
|
|
|
|
+import {AdverRightData} from "../entity/AdverRightData.ts";
|
|
|
|
|
|
|
|
class TopRow {
|
|
class TopRow {
|
|
|
public name: string
|
|
public name: string
|
|
@@ -49,7 +57,7 @@ let topRowStyle = ref(getTopRowWidth())
|
|
|
|
|
|
|
|
function getTopRowWidth() {
|
|
function getTopRowWidth() {
|
|
|
let topRowLen = topRow.value.length
|
|
let topRowLen = topRow.value.length
|
|
|
- let width = (1170 - 300 - (topRowLen) * 5) / topRow.value.length
|
|
|
|
|
|
|
+ let width = (1170 - 268 - (topRowLen) * 5) / topRow.value.length
|
|
|
return {
|
|
return {
|
|
|
width: width + 'px'
|
|
width: width + 'px'
|
|
|
}
|
|
}
|
|
@@ -67,51 +75,52 @@ function clickTopRow(url: string) {
|
|
|
|
|
|
|
|
.home-connect {
|
|
.home-connect {
|
|
|
width: 1170px;
|
|
width: 1170px;
|
|
|
- color: black;
|
|
|
|
|
margin: 0 auto 50px auto;
|
|
margin: 0 auto 50px auto;
|
|
|
|
|
+
|
|
|
.home-connect-row {
|
|
.home-connect-row {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
|
|
|
|
|
.home-connect-top-row {
|
|
.home-connect-top-row {
|
|
|
|
|
+ padding: 0 1px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
|
|
|
|
|
.row-first {
|
|
.row-first {
|
|
|
- width: 300px;
|
|
|
|
|
|
|
+ width: 268px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.top-row-item {
|
|
.top-row-item {
|
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
|
height: 40px;
|
|
height: 40px;
|
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
|
- //border: #535bf2 1px solid;
|
|
|
|
|
background: #8a65d9;
|
|
background: #8a65d9;
|
|
|
flex-grow: 1;
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
&:first-child {
|
|
&:first-child {
|
|
|
margin-left: 0;
|
|
margin-left: 0;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.row-bottom {
|
|
.row-bottom {
|
|
|
- div {
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ border: #dcdcdc solid;
|
|
|
|
|
+ border-width: 0px 1px 1px 1px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
|
|
|
height: 450px;
|
|
height: 450px;
|
|
|
|
|
|
|
|
.row-left {
|
|
.row-left {
|
|
|
- width: 300px;
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ width: 268px;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- background: #6ac5a9;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ background: white;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.row-right {
|
|
.row-right {
|
|
|
- width: 865px;
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ //width: 865px;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
|
- background: #1d1d1d;
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|