diff --git a/pages.json b/pages.json index a03fd67..6f42857 100644 --- a/pages.json +++ b/pages.json @@ -4,7 +4,8 @@ "path": "pages/index/index", "style": { "navigationBarTitleText": "首页", - "enablePullDownRefresh": false + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#FFC542" } }, { @@ -219,10 +220,10 @@ }, //底部跳转tab "tabBar": { - "color": "#7A7E83", - "selectedColor": "#1296DB", + "color": "#899A96", + "selectedColor": "#1A1A1A", "borderStyle": "black", - "backgroundColor": "#F8F8F8", + "backgroundColor": "#30444E", "list": [{ "pagePath": "pages/index/index", "iconPath": "static/index-default.png", diff --git a/pages/index/index.vue b/pages/index/index.vue index a647ad1..cb319a2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -16,32 +16,30 @@ - - - - - - - {{ val.title }} - - - - + + + + + {{ val.title }} + + + + - - - - - - - {{ params.text }} - {{ params.num }} - - - - + + + + + + + + {{ params.text }} + {{ params.num }} + + + @@ -56,7 +54,11 @@ data() { return { userInfo:{}, - banner:[], + banner:[ + { + bannerImg: "/static/material.png" + } + ], current: 0, mode: 'nav', swiperDotIndex: 0, @@ -76,37 +78,37 @@ list: [{ typeId: 1, text: '头像', - num: '', + num: '10', icon: '/static/headBack.png' }, { typeId: 2, text: 'Gif动图', - num: '', + num: '10', icon: '/static/gifBack.png' }, { typeId: 3, text: '手机壁纸', - num: '', + num: '20', icon: '/static/phoneBack.png' }, { typeId: 4, text: '朋友圈', - num: '', + num: '10', icon: '/static/friendBack.png' }, { typeId: 5, text: '表情包', - num: '', + num: '15', icon: '/static/emoBack.png' }, { typeId: 6, text: 'iwatch', - num: '', + num: '3', icon: '/static/iwatchBack.png' } ] @@ -121,9 +123,9 @@ showCancel: false, success() { //没有缓存则跳转登录页面 - uni.reLaunch({ - url: '/pages/login/login' - }); + // uni.reLaunch({ + // url: '/pages/login/login' + // }); } }); } else { @@ -277,9 +279,10 @@ @media screen and (min-width: 500rpx) { .uni-swiper-dot-box { - width: 400rpx; - margin: 0 auto; - margin-top: 8rpx; + width: 100%; + height: 100%; + // margin: 0 auto; + // margin-top: 8rpx; } .image { @@ -302,3 +305,79 @@ } + \ No newline at end of file