develop
wangxia 11 months ago
parent 01a2255e60
commit 999da28f5b

@ -1,8 +1,8 @@
@font-face { @font-face {
font-family: 'iconfont'; /* Project id 2708790 */ font-family: "iconfont"; /* Project id 2708790 */
src: url('//at.alicdn.com/t/c/font_2708790_qvphqofg7ek.woff2?t=1741660802324') format('woff2'), src: url('//at.alicdn.com/t/c/font_2708790_7twwjw4z4wo.woff2?t=1743143857638') format('woff2'),
url('//at.alicdn.com/t/c/font_2708790_qvphqofg7ek.woff?t=1741660802324') format('woff'), url('//at.alicdn.com/t/c/font_2708790_7twwjw4z4wo.woff?t=1743143857638') format('woff'),
url('//at.alicdn.com/t/c/font_2708790_qvphqofg7ek.ttf?t=1741660802324') format('truetype'); url('//at.alicdn.com/t/c/font_2708790_7twwjw4z4wo.ttf?t=1743143857638') format('truetype');
} }
.iconfont { .iconfont {
@ -769,6 +769,18 @@
content: "\e859"; content: "\e859";
} }
.icon-chuangjianren-trans:before {
content: "\100c6";
}
.icon-guanliyuan-trans:before {
content: "\100c7";
}
.icon-chengyuan-trans:before {
content: "\100c8";
}
.icon-biyan1:before { .icon-biyan1:before {
content: "\e713"; content: "\e713";
} }
@ -1520,4 +1532,3 @@
.icon-xiayiye1:before { .icon-xiayiye1:before {
content: "\e695"; content: "\e695";
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 967 B

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 943 B

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 419 B

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

@ -1,59 +1,104 @@
const app = getApp(); const app = getApp();
Component({ Component({
data: { data: {
isShow: false, isShow: true,
toTop: false, toTop: false,
selected: 0, selected: 0,
color: "#666", color: "#888",
selectedColor: "#1890ff", selectedColor: "#3578f6",
appId: app.globalData.appId,
list: [ list: [
{ {
iconPath: "../assets/images/tabbar/home_active.svg", "iconPath": "icon-home",
selectedIconPath: "../assets/images/tabbar/home.svg", // "selectedIconPath": "/static/image/tabbar/home.svg",
pagePath: "/pages/firstBill/index", "pagePath": "/pages/firstBill/index",
text: "首页", "text": "首页",
index: 0, "index": 0
}, },
{ {
"iconPath": "../assets/images/tabbar/order_active.svg", iconPath: "icon-order_active",
"selectedIconPath": "../assets/images/tabbar/order.svg", text: '工单',
"pagePath": "/pages/myBill/index", "index": 3,
"text": "工单", pagePath: "/pages/myBill/index",
index: 1,
}, },
// {
// "iconPath": "/static/image/tabbar/chat.svg",
// "selectedIconPath": "/static/image/tabbar/chat.svg",
// "pagePath": "/pages/ai/index",
// "text": "AI",
// "index": 2
// },
{ {
"iconPath": "../assets/images/tabbar/message_active.svg", "iconPath": "icon-message",
"selectedIconPath": "../assets/images/tabbar/message.svg", // "iconPath": "/static/image/tabbar/message_active.svg",
// "selectedIconPath": "/static/image/tabbar/message.svg",
"pagePath": "/pages/message/index", "pagePath": "/pages/message/index",
"text": "消息", "text": "消息",
index: 2, "index": 1
}, },
{ {
iconPath: "../assets/images/tabbar/unit_active.svg", "iconPath": "icon-appstore",
selectedIconPath: "../assets/images/tabbar/unit.svg", // "iconPath": "/static/image/tabbar/message_active.svg",
pagePath: "/pages/workBench/index", // "selectedIconPath": "/static/image/tabbar/message.svg",
text: "工作台", "pagePath": "/pages/workBench/index",
index: 3, "text": "工作台",
"index": 4
}, },
{ {
iconPath: "../assets/images/tabbar/user_active.svg", "iconPath": "icon-user",
selectedIconPath: "../assets/images/tabbar/user.svg", // "iconPath": "/static/image/tabbar/user_active.svg",
pagePath: "/pages/mine/index", // "selectedIconPath": "/static/image/tabbar/user.svg",
text: "我的", "pagePath": "/pages/mine/index",
index: 4, "text": "我的",
}, "index": 2
], }
]
}, },
lifetimes: { lifetimes: {
show: function () { show: function () {
// 页面被展示 // 页面被展示
console.log("tabbar show"); console.log("tabbar show");
console.log('this.data.appid', this.data.appId);
if (this.data.appId == 'wxb0c590fd696b79be') {
console.log('');
// this.data.list = [
// {
// "iconPath": "/static/image/nav_home_normal.png",
// "selectedIconPath": "/static/image/nav_home_selected_lao.png",
// "pagePath": "/pages/home/index",
// "text": "首页",
// "index": 0
// },
// // {
// // "iconPath": "/static/image/chat.png",
// // "selectedIconPath": "/static/image/chat.png",
// // "pagePath": "/pages/ai/index",
// // "text": "AI",
// // "index": 2
// // },
// {
// "iconPath": "/static/image/xx.png",
// "selectedIconPath": "/static/image/xx1_lao.png",
// "pagePath": "/pages/message/index",
// "text": "消息",
// "index":1
// },
// {
// "iconPath": "/static/image/nav_my_normal.png",
// "selectedIconPath": "/static/image/nav_my_selected_lao.png",
// "pagePath": "/pages/person/index",
// "text": "我的",
// "index": 2
// }
// ]
}
}, },
attached: function () { attached: function () {
// 在组件实例进入页面节点树时执行 // 在组件实例进入页面节点树时执行
console.log("tabbar attached"); console.log("tabbar attached");
}, },
detached: function () { detached: function () {
// 在组件实例被从页面节点树移除时执行 // 在组件实例被从页面节点树移除时执行
@ -61,51 +106,30 @@ Component({
}, },
methods: { methods: {
switchTab (e) { switchTab (e) {
console.log('e',e)
const data = e.currentTarget.dataset; const data = e.currentTarget.dataset;
const url = data.path; const url = data.path;
wx.vibrateShort({
type: "heavy",
success: function (e) {
console.log(e);
},
});
if (data.index == 0 && this.data.selected == 0) {
if (this.data.toTop) {
app.globalData.toTop = 1;
} else {
app.globalData.refresh = 1
}
}
// if (!app.globalData.isLogin) { // if (!wx.getStorageSync("apply-userinfo")) {
// if (data.index == 1) { // if (data.index == 2) {
// wx.navigateTo({ // wx.navigateTo({
// url: "/pages/login/index", // url: "/pages/login/index",
// }); // });
// return; // return;
// } // }
// } // }
// else { // else {
// if (data.index == 1) { // if (data.index == 2) {
// if (app.globalData.loginUserInfo.agencyStatus != 1) { // wx.navigateTo({
// wx.navigateTo({ // url: "/pages/message/child/chat",
// url: "/pages/tobeAgency/index", // });
// }); // return;
// } else { // }
// wx.navigateTo({
// url,
// });
// // wx.redirectTo({});
// }
// return;
// }
// } // }
// this.setData({ // this.setData({
// selected: data.index, // selected: data.index
// }); // })
// this.data.selected = data.index
console.log('--', url)
wx.switchTab({ url }); wx.switchTab({ url });
}, },
touchMove () { touchMove () {

@ -1,13 +1,16 @@
<view class="tab-bar" wx:if="{{isShow}}" catchtouchmove="touchMove"> <view class="tab-bar" wx:if="{{isShow}}" catchtouchmove="touchMove">
<view class="tab-bar-border"></view> <view class="tab-bar-border"></view>
<view wx:for="{{list}}" wx:key="index" class="tab-bar-item biggerSize2" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab"> <view wx:for="{{list}}" wx:key="index" class="tab-bar-item biggerSize2" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
<!-- <view class="middle tac" wx:if="{{index === 1}}" hover-class="none" hover-stop-propagation="false"> <!-- <view class="middle tac" wx:if="{{index === 2}}" hover-class="none" hover-stop-propagation="false">
<image class="tabImg" src="{{item.selectedIconPath}}" /> <image class="tabImg" src="{{item.selectedIconPath}}" />
</view> --> </view>-->
<view class='tabImg-box' hover-class="none" hover-stop-propagation="false"> <!-- wx:else -->
<image class="tabImg" style="visibility:{{selected === item.index ? 'visiable':'hidden'}}" src="{{item.selectedIconPath}}" /> <view class hover-class="none" hover-stop-propagation="false">
<image class="tabImg " style="visibility:{{selected === item.index ? 'hidden':'visiable'}}" src="{{item.iconPath}}" /> <!-- <image class="tabImg" style="visibility:{{selected === item.index ? 'visiable':'hidden'}}" src="{{item.selectedIconPath}}" />
<view class="tabText" style="color: {{selected === item.index ? selectedColor : color}}">{{item.text}}</view> <image class="tabImg " style="visibility:{{selected === item.index ? 'hidden':'visiable'}}" src="{{item.iconPath}}" />-->
</view> <i class="tabImg iconfont {{item.iconPath}}" style="color: {{selected === item.index ? selectedColor : color }}" />
<!-- <image class="tabImg" style="visibility:{{selected === item.index ? 'hidden':'visiable'}}" src="{{item.iconPath}}" /> -->
<view class="tabText" style="color: {{selected === item.index ? selectedColor : color}}">{{item.text}}</view>
</view> </view>
</view>
</view> </view>

@ -1,3 +1,42 @@
@font-face {
font-family: "iconfont"; /* Project id 4374774 */
src: url('//at.alicdn.com/t/c/font_4374774_ou401o3p3r.woff2?t=1743137313813') format('woff2'),
url('//at.alicdn.com/t/c/font_4374774_ou401o3p3r.woff?t=1743137313813') format('woff'),
url('//at.alicdn.com/t/c/font_4374774_ou401o3p3r.ttf?t=1743137313813') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-order_active:before {
content: "\e617";
}
.icon-appstore:before {
content: "\e792";
}
.icon-gongdanguanli:before {
content: "\e909";
}
.icon-home:before {
content: "\e7e1";
}
.icon-message:before {
content: "\e78a";
}
.icon-shop:before {
content: "\e7e5";
}
.icon-user:before {
content: "\e7ae";
}
.tab-bar { .tab-bar {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@ -9,7 +48,10 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6); box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
padding-bottom: env(safe-area-inset-bottom); /* padding-bottom: env(safe-area-inset-bottom); */
padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
/* min-height: 72px; */
} }
.tab-bar-border { .tab-bar-border {
@ -23,7 +65,7 @@
} }
.tab-bar-item { .tab-bar-item {
/* width: 60px; */ /* width: 60px; */
flex: 1; flex: 1;
height: 80px; height: 80px;
} }
@ -39,26 +81,13 @@
.tabImg { .tabImg {
width: 26px; width: 26px;
height: 26px; height: 26px;
font-size: 24px;
position: absolute; position: absolute;
top: 7px; top: 6px;
} fill: red;
.tab-bar-item:nth-child(2) .tabImg{
width: 24px;
height: 24px;
}
.tab-bar-item:nth-child(3) .tabImg{
width: 28px;
height: 28px;
} }
.tab-bar-item:nth-child(6) .tabImg{
width: 22px;
height: 22px;
}
.tabText { .tabText {
margin-top: 36px; margin-top: 34px;
} }
.tab-bar-item view { .tab-bar-item view {
font-size: 10px; font-size: 10px;
@ -68,8 +97,8 @@
top: -15px; top: -15px;
width: 70px; width: 70px;
height: 70px; height: 70px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
padding-top: 10px; padding-top: 10px;
border-radius: 50%; border-radius: 50%;
box-sizing: border-box; box-sizing: border-box;
@ -78,8 +107,11 @@
background-color: #fff; background-color: #fff;
} }
.middle image { .middle image {
width: 80%; width: 36px;
height: 80%; height: 36px;
}
.middle .tabImg {
top: 13px;
} }
.biggerSize2 { .biggerSize2 {
position: relative; position: relative;

@ -119,7 +119,7 @@ Page({
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
isShow: true, isShow: true,
selected: 2, selected: 1,
}); });
} }
setTimeout(() => { setTimeout(() => {

@ -179,7 +179,7 @@ Page({
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
selected: 4, selected: 2,
isShow: true isShow: true
}); });
} }

@ -130,7 +130,7 @@ Page({
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
isShow: true, isShow: true,
selected: 1, selected: 3,
}); });
} }
if (wx.getStorageSync('MYBILL_PAGE_CHANGE') || that.data.inputVal != "搜索姓名/手机号") { if (wx.getStorageSync('MYBILL_PAGE_CHANGE') || that.data.inputVal != "搜索姓名/手机号") {

@ -66,7 +66,7 @@
<view class="f14 c9 wsn" hover-class="none" hover-stop-propagation="false">{{item.showTime}}</view> <view class="f14 c9 wsn" hover-class="none" hover-stop-propagation="false">{{item.showTime}}</view>
</view> </view>
</view> </view>
<icon class="iconfont icon-gengduo1 c9 ml4" style type size="28" color></icon> <icon class="iconfont icon-gengduo11 c9 ml4" style type size="28" color></icon>
</view> </view>
</view> </view>
<view wx:if="{{!hasMoreData && !isLoading}}" class="f12 c9 tc p20">暂无更多数据</view> <view wx:if="{{!hasMoreData && !isLoading}}" class="f12 c9 tc p20">暂无更多数据</view>

@ -106,7 +106,7 @@
</view> </view>
<view class=" {{item.status == 20 ? 'cccc' : 'c3'}}">{{item.statusStr || '-'}}</view> <view class=" {{item.status == 20 ? 'cccc' : 'c3'}}">{{item.statusStr || '-'}}</view>
</view> </view>
<icon class="iconfont icon-gengduo1 c9 ml4" type size="28" color></icon> <icon class="iconfont icon-gengduo11 c9 ml4" type size="28" color></icon>
</view> </view>
</view> </view>
@ -138,7 +138,7 @@
</view> </view>
<view class=" {{item.status == 20 ? 'cccc' : 'c3'}}">{{item.statusStr || '-'}}</view> <view class=" {{item.status == 20 ? 'cccc' : 'c3'}}">{{item.statusStr || '-'}}</view>
</view> </view>
<icon class="iconfont icon-gengduo1 c9 ml4" type size="28" color></icon> <icon class="iconfont icon-gengduo11 c9 ml4" type size="28" color></icon>
</view> </view>
</view> </view>
<!-- 站位的盒子 --> <!-- 站位的盒子 -->

@ -89,7 +89,7 @@
<view class="pb4 ysd-base-color fw500">{{(item.salary || '-') + '元'}}</view> <view class="pb4 ysd-base-color fw500">{{(item.salary || '-') + '元'}}</view>
<view class="f14 {{item.status == 1 ? 'cccc' : 'c3'}}">{{item.status == 10 ? '待确认' : '已确认'}}</view> <view class="f14 {{item.status == 1 ? 'cccc' : 'c3'}}">{{item.status == 10 ? '待确认' : '已确认'}}</view>
</view> </view>
<icon class="iconfont icon-gengduo1 c9 ml4" type="" size="28" color=""></icon> <icon class="iconfont icon-gengduo11 c9 ml4" type="" size="28" color=""></icon>
</view> </view>
</view> </view>
<view wx:if="{{!hasMoreData && !isLoading}}" class="f12 c9 tc p20">暂无更多数据</view> <view wx:if="{{!hasMoreData && !isLoading}}" class="f12 c9 tc p20">暂无更多数据</view>
@ -114,7 +114,7 @@
<view class="pb4 ysd-base-color fw500">{{(item.salary || '-') + '元'}}</view> <view class="pb4 ysd-base-color fw500">{{(item.salary || '-') + '元'}}</view>
<view class="f14 {{item.status == 1 ? 'cccc' : 'c3'}}">{{item.status == 10 ? '待确认' : '已确认'}}</view> <view class="f14 {{item.status == 1 ? 'cccc' : 'c3'}}">{{item.status == 10 ? '待确认' : '已确认'}}</view>
</view> </view>
<icon class="iconfont icon-gengduo1 c9 ml4" type="" size="28" color=""></icon> <icon class="iconfont icon-gengduo11 c9 ml4" type="" size="28" color=""></icon>
</view> </view>
</view> </view>
</block> </block>

@ -34,7 +34,7 @@ Page({
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
isShow: true, isShow: true,
selected: 3, selected: 4,
}); });
} }

Loading…
Cancel
Save