From d49514d426b964017d3735683592058bd075b3fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com>
Date: Mon, 11 Aug 2025 10:32:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E5=B9=BF?=
=?UTF-8?q?=E5=91=8A=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/index.css | 9 ++++++++
pages/index/index.vue | 51 ++++++++++++++++++++++++++++++++-----------
2 files changed, 47 insertions(+), 13 deletions(-)
diff --git a/pages/index/index.css b/pages/index/index.css
index df37fe40..cff792c6 100644
--- a/pages/index/index.css
+++ b/pages/index/index.css
@@ -320,6 +320,15 @@ page {
flex-wrap: wrap;
}
+.serverList_right1 {
+ width: 48%;
+}
+
+.serverList_right2 {
+ width: 48%;
+ margin-left: 10rpx;
+}
+
.serverItem1 {
background: linear-gradient(139deg, #FEF4F4 0%, #FEDCD2 100%);
margin-right: 12rpx;
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 15034a58..943966a2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -14,19 +14,22 @@
-
+
店铺管理
-
+
供应商订单
-
+
物业管理
@@ -81,6 +84,7 @@
+
@@ -96,15 +100,27 @@
+
-
- {{ item.title }}
-
+
+
+ {{ item.title }}
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
@@ -202,8 +218,8 @@
@@ -292,6 +308,8 @@ export default {
homeLeftList: [],//中间左侧的广告
homeRightList: [], // 中间右侧广告
+ homeRightList1: [], // 中间右侧广告 左
+ homeRightList2: [], // 中间右侧广告 右
bottomPageSize: 10,
bottomPageNum: 1,
bottomList: [],
@@ -464,7 +482,7 @@ export default {
this.getServerRight(), // 中部1右侧广告查询
this.getHomeMidLeft(), // 中部左侧查询
- this.getHomeMidRight(), // 中部左侧查询
+ this.getHomeMidRight(), // 中部右侧查询
// this.getHomeCenterTop(), // 中部-中上
// this.getHomeCenter(), // 中部-中
@@ -485,6 +503,8 @@ export default {
this.serverRightList = serverRightList;
this.homeLeftList = homeLeftList;
this.homeRightList = homeRightList;
+ this.homeRightList1 = homeRightList.slice(0, 3);
+ this.homeRightList2 = homeRightList.slice(3, 6);
that.bottomList = bottomList;
this.tabList = buttonList;
this.categoryList = categoryList;
@@ -628,7 +648,7 @@ export default {
async getServerRight() {
const rightList = []
- for (let i = 4; i < 6; i++) {
+ for (let i = 3; i < 5; i++) {
const res = await request(apiArr2.getHomeBanner, "POST", {
ad_code: uni.getStorageSync('ad_code'),
ad_position: i,
@@ -685,7 +705,12 @@ export default {
item.pic_src = picUrl + item.pic_src
})
rightList.push(...filterRes)
- }
+ }else{
+ rightList.push({
+ ad_position: i,
+ pic_src: ''
+ })
+ }
}
return rightList
},
@@ -949,7 +974,7 @@ export default {
NavgateTo("/packages/localLife/detail/index");
},
//跳转点评
- toJump(e){
+ toJump(e) {
NavgateTo('/packages/localLife/comment/index');
},