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');
},