From ac33a3140ef8ef20dfd2537fce2dfdd0f374f30e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 26 二月 2026 17:42:10 +0800
Subject: [PATCH] 调试
---
mini-program/pages/distributor/distributor.vue | 42 ++++++++++++++++++++++++++++++++++--------
1 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/mini-program/pages/distributor/distributor.vue b/mini-program/pages/distributor/distributor.vue
index ee386ad..282f8e4 100644
--- a/mini-program/pages/distributor/distributor.vue
+++ b/mini-program/pages/distributor/distributor.vue
@@ -4,10 +4,15 @@
<view class="head-bar" :style="{ height: navHeight + statusbarHeight + 'px' }">
<view :style="{ width: '100%', height: statusbarHeight + 'px' }"></view>
<view class="head-bar-nav" :style="{ height: navHeight + 'px' }">
- <view class="loginOut" @click="logoutCom()">
+ <view class="loginOut" >
+ <u-icon class="icon" margin="5" name="home" label="鍟嗗煄" @click="jumpIndex()"label-color="#004096" label-size="13" size="13" mode="widthFix"></u-icon>
+ <text style="margin: 0rpx 10rpx 0 15rpx;font-size: 20rpx;">|</text>
+ <u-icon class="icon" margin="5" name="bell" @click="logoutCom()" label="鐧诲嚭" label-color="#004096" label-size="13" size="13" mode="widthFix"></u-icon>
+ </view>
+ <!-- <view class="loginOut" @click="logoutCom()">
<image src="/static/icon/ic_tixing@2x.png" mode="widthFix"></image>
<text>鐧诲嚭</text>
- </view>
+ </view> -->
</view>
</view>
<view class="user">
@@ -282,7 +287,7 @@
onLoad() {
var that =this
this.getBase64Img('/static/images/bg_card@2x.png')
- uni.$on('updateOrder',function(data){
+ uni.$on('updateOrder',function(data){
if(data.info!=null && data.info.orderId!=null && data.info.orderStatus ==3){
if(data.info.orderStatus ==3){
that.getCountData()
@@ -456,6 +461,11 @@
}
},
+ jumpIndex(){
+ uni.switchTab({
+ url:"/pages/index/index"
+ })
+ },
async logout(){
var that =this
let res = await that.$u.api.shopLogout({tokenType:1 })
@@ -471,7 +481,7 @@
})
},
jumpShopLogin() {
- uni.navigateTo({
+ uni.redirectTo({
url: '/pages/login/login'
})
},
@@ -599,13 +609,29 @@
background: linear-gradient(180deg, #C8F3FF 0%, #ffffff 100%);
.head-bar {
- width: 100%;
-
+ width: 100%;
.head-bar-nav {
width: 100%;
-
+ display: flex;
+ align-items: center;
+ justify-content: left;
+ .home {
+ width: 52rpx;
+ height: 52rpx;
+ background: #C3E6F5;
+ border-radius: 26rpx;
+ margin-right: 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ text {
+ font-weight: 400;
+ font-size: 26rpx;
+ color: #004096;
+ }
+ }
.loginOut {
- width: 120rpx;
+ width: 240rpx;
height: 52rpx;
background: #C3E6F5;
border-radius: 26rpx;
--
Gitblit v1.9.3