Browse Source

首页图标跟tabbar图标更换

epass
mk 2 months ago
parent
commit
c7e35dbb3b
  1. 4
      custom-tab-bar/index.js
  2. BIN
      images/icon/baoshi.png
  3. BIN
      images/icon/baoxiu.png
  4. BIN
      images/icon/gengduo.png
  5. BIN
      images/icon/nav_0.png
  6. BIN
      images/icon/nav_1.png
  7. BIN
      images/icon/nav_10.png
  8. BIN
      images/icon/nav_2.png
  9. BIN
      images/icon/nav_3.png
  10. BIN
      images/icon/nav_4.png
  11. BIN
      images/icon/nav_5.png
  12. BIN
      images/icon/nav_6.png
  13. BIN
      images/icon/nav_7.png
  14. BIN
      images/icon/ruzhu.png
  15. BIN
      images/icon/serve Copy.png
  16. BIN
      images/icon/serve-a.png
  17. BIN
      images/icon/serve.png
  18. BIN
      images/icon/tuifang.png
  19. BIN
      images/icon/yanzu.png
  20. 10
      pages/index/index.js
  21. 2
      pages/index/index.wxml

4
custom-tab-bar/index.js

@ -24,9 +24,9 @@ Component({
}, },
{ {
pagePath: "/pages/serve/serve", pagePath: "/pages/serve/serve",
iconPath: "/images/icon/serve.png", iconPath: "/images/icon/serve-a.png",
selectedIconPath: "/images/icon/serve.png", selectedIconPath: "/images/icon/serve.png",
bulge:true, bulge:false,
text: "服务", text: "服务",
}, },
// { // {

BIN
images/icon/baoshi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
images/icon/baoxiu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
images/icon/gengduo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
images/icon/nav_0.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

BIN
images/icon/nav_1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
images/icon/nav_10.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

BIN
images/icon/nav_2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

BIN
images/icon/nav_3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
images/icon/nav_4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

BIN
images/icon/nav_5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

BIN
images/icon/nav_6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

BIN
images/icon/nav_7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

BIN
images/icon/ruzhu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
images/icon/serve Copy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
images/icon/serve-a.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1002 B

BIN
images/icon/serve.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
images/icon/tuifang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
images/icon/yanzu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

10
pages/index/index.js

@ -24,31 +24,37 @@ Page({
// }, // },
{ {
name: "入住办理", name: "入住办理",
url: '/subpages/OCRCard/pages/index/index' url: '/subpages/OCRCard/pages/index/index',
image:'../../images/icon/ruzhu.png'
}, },
{ {
name: "退房确认", name: "退房确认",
url: "/subpages/index/checkOutConfirm/index/index", url: "/subpages/index/checkOutConfirm/index/index",
image:'../../images/icon/tuifang.png'
}, },
{ {
name: "延租申请", name: "延租申请",
url: "/subpages/index/renewalApplication/renewalApplication", url: "/subpages/index/renewalApplication/renewalApplication",
image:'../../images/icon/yanzu.png'
}, },
{ {
name: "报修", name: "报修",
url: "/subpages/eventAdd/add/add", url: "/subpages/eventAdd/add/add",
image:'../../images/icon/baoxiu.png'
}, },
{ {
name: "报事", name: "报事",
url: "/subpages/bsPage/bsPage/bsPage", url: "/subpages/bsPage/bsPage/bsPage",
image:'../../images/icon/baoshi.png'
}, },
// { // {
// name: "生活圈", // name: "生活圈",
// }, // },
{ {
name: "更多", name: "更多",
url:'/pages/serve/serve' url:'/pages/serve/serve',
image:'../../images/icon/gengduo.png'
}, },
], ],
searchValue: "", searchValue: "",

2
pages/index/index.wxml

@ -21,7 +21,7 @@
<van-grid square border="{{false}}"> <van-grid square border="{{false}}">
<van-grid-item use-slot wx:for="{{ navList }}" wx:key="index" <van-grid-item use-slot wx:for="{{ navList }}" wx:key="index"
bind:click="navigateTo" data-url="{{item.url}}"> bind:click="navigateTo" data-url="{{item.url}}">
<image style="width: 100rpx;min-height: 100rpx;" src="{{'../../images/icon/nav_'+index + '.png'}}" /> <image style="width: 100rpx;min-height: 100rpx;" src="{{item.image}}" />
<text class="text-28 m-top-12">{{item.name}}</text> <text class="text-28 m-top-12">{{item.name}}</text>
</van-grid-item> </van-grid-item>
</van-grid> </van-grid>

Loading…
Cancel
Save