feat: tabbar图标替换

This commit is contained in:
yangzhe 2025-04-15 16:08:33 +08:00
parent b860aea6d2
commit a81b89bd92
3 changed files with 21 additions and 9 deletions

View File

@ -1,18 +1,30 @@
<template> <template>
<view class="content"> <view class="content">
<view <view
style="margin-top: 50rpx; display: flex; align-items: center; padding-right: 50rpx" style="
margin-top: 50rpx;
display: flex;
align-items: center;
padding-right: 50rpx;
"
> >
<view style="margin-right: 50rpx">账号</view> <view style="margin-right: 50rpx">账号</view>
<u-input v-model="phone" border placeholder="账号"></u-input> <u-input v-model="phone" border placeholder="账号"></u-input>
</view> </view>
<view <view
style="margin-top: 50rpx; display: flex; align-items: center; padding-right: 50rpx" style="
margin-top: 50rpx;
display: flex;
align-items: center;
padding-right: 50rpx;
"
> >
<view style="margin-right: 50rpx">账号</view> <view style="margin-right: 50rpx">账号</view>
<u-input v-model="pwd" border placeholder="密码"></u-input> <u-input v-model="pwd" border placeholder="密码"></u-input>
</view> </view>
<u-button type="primary" @click="loginFn" style="margin-top: 50rpx">登陆</u-button> <u-button type="primary" @click="loginFn" style="margin-top: 50rpx"
>登陆</u-button
>
<u-button type="primary" @click="login1Fn" style="margin-top: 50rpx" <u-button type="primary" @click="login1Fn" style="margin-top: 50rpx"
>登陆13800451500清洁工</u-button >登陆13800451500清洁工</u-button
> >
@ -44,20 +56,20 @@ export default {
const normalTabBar = [ const normalTabBar = [
{ {
pagePath: "/pages/index/planList", pagePath: "/pages/index/planList",
iconPath: "/static/tab/list.png", iconPath: "/static/tab/planList.png",
selectedIconPath: "/static/tab/list_cur.png", selectedIconPath: "/static/tab/planList-active.png",
text: "计划", text: "计划",
}, },
{ {
pagePath: "/pages/index/index", pagePath: "/pages/index/index",
iconPath: "/static/tab/home.png", iconPath: "/static/tab/admin-home.png",
selectedIconPath: "/static/tab/home_cur.png", selectedIconPath: "/static/tab/admin-home-acitve.png",
text: "首页", text: "首页",
}, },
{ {
pagePath: "/pages/user/index", pagePath: "/pages/user/index",
iconPath: "/static/tab/my.png", iconPath: "/static/tab/admin-my.png",
selectedIconPath: "/static/tab/my_cur.png", selectedIconPath: "/static/tab/admin-my-active.png",
text: "设置", text: "设置",
}, },
]; ];

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
static/tab/planList.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB