diff --git a/miniprogram/pages/index/index.js b/miniprogram/pages/index/index.js
index d8ce37f..e1cdca9 100644
--- a/miniprogram/pages/index/index.js
+++ b/miniprogram/pages/index/index.js
@@ -30,15 +30,7 @@ Page({
"text": "我的"
},
],
-
IMG_NAME: app.IMG_NAME,
- indicatorDots: true,
- autoplay: true,
- interval: 3000,
- duration: 1000,
- bannerList: [{
- bannerImg: ''
- }],
menuList: [
// {
// name: "创业活动",
@@ -143,12 +135,14 @@ Page({
path: ""
},
],
- homelist: [],
- background: [{
- bg: '/profile/banner/1.jpg',
+ bannerList: [{
+ bg: '/profile/static/index/banner/1.jpg',
url: ''
}, {
- bg: '/profile/banner/2.jpg',
+ bg: '/profile/static/index/banner/2.jpg',
+ url: ''
+ },{
+ bg: '/profile/static/index/banner/3.jpg',
url: ''
}]
},
@@ -175,7 +169,6 @@ Page({
parkName: wx.getStorageSync('parkName')
})
wx.setStorageSync('MemberInfo', res.data)
- that.getHotList()
}
})
} else {
@@ -185,34 +178,6 @@ Page({
}
},
- //轮播高度自适应——获取图片高度
- imgHeight: function (e) {
- var winWid = wx.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
- var imgh = e.detail.height; //图片高度
- var imgw = e.detail.width; //图片宽度
- var swiperH = winWid * imgh / imgw + "px"
- this.setData({
- Height: swiperH //设置高度
- })
- // this.setData({
- // Height: '300rpx' //设置高度
- // })
- },
-
- getHotList() {
- let that = this
- app.AjaxRequest('get', {
- 'content-type': 'application/json',
- 'Authorization': 'Bearer ' + app.Getopenid()
- }, '/menu/bannerList', {
- isTop: true
- }, function (res) {
- that.setData({
- homelist: res.data
- })
- })
- },
-
navapply(e) {
if (wx.getStorageSync('token')) {
if (e.currentTarget.dataset.path) {
diff --git a/miniprogram/pages/index/index.wxml b/miniprogram/pages/index/index.wxml
index ba8fe93..2a6c7e2 100644
--- a/miniprogram/pages/index/index.wxml
+++ b/miniprogram/pages/index/index.wxml
@@ -1,27 +1,28 @@
-
-
- 当前园区:{{parkName? parkName:'请先选择园区'}}
- >
+
+
+ 当前园区:{{parkName? parkName:'请先选择园区'}}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ 我的应用
+
+
+
+
+
+
-
-
-
-
-
-
-
-
- 我的应用
-
-
-
-
-
-
-
-
-
+
diff --git a/miniprogram/pages/index/index.wxss b/miniprogram/pages/index/index.wxss
index d955539..b847ca5 100644
--- a/miniprogram/pages/index/index.wxss
+++ b/miniprogram/pages/index/index.wxss
@@ -1,12 +1,6 @@
@import "../../app.wxss";
@import "../../tabBar.wxss";
-page {
- overflow: hidden;
-}
-
-
-
.topList {
display: none;
width: 100%;
@@ -20,19 +14,14 @@ page {
z-index: 9999999;
}
-.swiper-box {
- margin-top: 70rpx;
-}
-
.page {
width: 100%;
height: 100%;
box-sizing: border-box;
color: black;
overflow: auto;
- border-top: 1rpx solid #f4f4f4;
- background-color: #F5F5F5;
- /* padding: 0 26rpx; */
+ background-color: #FFFFFF;
+ padding-top: 20rpx;
}
.activityList {
@@ -49,6 +38,27 @@ page {
position: relative;
}
+.itemTitleView {
+ border-left: 8rpx solid #2A6FFF;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin: 40rpx 50rpx 0;
+}
+
+.itemTitleView .title {
+ margin-left: 10rpx;
+ font-size: 28rpx;
+ font-weight: bold;
+ color: #141414;
+}
+
+.itemTitleView .img {
+ width: 36rpx;
+ height: 36rpx;
+}
+
+
.fixed {
background: white;
padding: 0 30rpx 240rpx 30rpx;
@@ -93,6 +103,19 @@ page {
filter: gray;
}
+.swiper-box {
+ box-sizing: border-box;
+ /* width: 100%; */
+ height: 358rpx;
+ margin: 0 22rpx;
+}
+
+.swiper-box .img {
+ border-radius: 14rpx;
+ width: 100%;
+ height: 100%;
+}
+
/* 轮播小点点 */
.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal {
margin-left: 36%;
@@ -127,13 +150,13 @@ page {
}
-.menuImg{
+.menuImg {
width: 132rpx;
height: 134rpx;
margin-left: 15rpx;
}
-.menuTitle{
+.menuTitle {
font-size: 24rpx;
color: #646466;
}
\ No newline at end of file