From 522591c48660b4da14d14bbd44c225cf21025f3a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com>
Date: Sun, 25 Aug 2024 14:06:33 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E9=A1=B6=E9=83=A8=E5=AF=BC=E8=88=AA?=
=?UTF-8?q?=E6=A0=8F=E8=A3=85=E4=BF=AE=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../s-custom-navbar/s-custom-navbar.vue | 27 +-
sheep/components/s-user-card/s-user-card.vue | 309 +++++++++---------
2 files changed, 173 insertions(+), 163 deletions(-)
diff --git a/sheep/components/s-custom-navbar/s-custom-navbar.vue b/sheep/components/s-custom-navbar/s-custom-navbar.vue
index d5f24182..62f6e218 100644
--- a/sheep/components/s-custom-navbar/s-custom-navbar.vue
+++ b/sheep/components/s-custom-navbar/s-custom-navbar.vue
@@ -44,9 +44,9 @@
*
* @property {Number | String} alwaysShow = [0,1] - 是否常驻
* @property {Number | String} styleType = [inner] - 是否沉浸式
- * @property {String | Number} type - 标题背景模式
- * @property {String} color - 页面背景色
- * @property {String} src - 页面背景图片
+ * @property {String | Number} type - 标题背景模式
+ * @property {String} color - 页面背景色
+ * @property {String} src - 页面背景图片
*/
import { computed, unref } from 'vue';
import sheep from '@/sheep';
@@ -77,7 +77,7 @@
});
const navList = computed(() => {
// #ifdef MP
- return props.data.mapCells || [];
+ return props.data.mpCells || [];
// #endif
return props.data.otherCells || [];
});
@@ -117,11 +117,12 @@
const bgStyles = computed(() => {
return {
background:
- props.data.bgType === 'img' && props.data.bgImg
+ props.data.bgType === 'img' && props.data.bgImg
? `url(${sheep.$url.cdn(props.data.bgImg)}) no-repeat top center / 100% 100%`
- : props.data.bgColor
+ : props.data.bgColor,
};
});
+
// 左侧按钮:返回上一页或首页
function onClickLeft() {
if (hasHistory) {
@@ -130,6 +131,7 @@
sheep.$router.go('/pages/index/index');
}
}
+
// 右侧按钮:打开快捷菜单
function onClickRight() {
showMenuTools();
@@ -147,44 +149,53 @@
top: 50%;
transform: translateY(-50%);
}
+
.nav-icon {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 20rpx;
+
.inner-icon-box {
border: 1px solid rgba(#fff, 0.4);
background: none !important;
}
+
.icon-box {
background: #ffffff;
- box-shadow: 0px 0px 4rpx rgba(51, 51, 51, 0.08),
- 0px 4rpx 6rpx 2rpx rgba(102, 102, 102, 0.12);
+ box-shadow: 0px 0px 4rpx rgba(51, 51, 51, 0.08), 0px 4rpx 6rpx 2rpx rgba(102, 102, 102, 0.12);
border-radius: 30rpx;
width: 134rpx;
height: 56rpx;
margin-left: 8rpx;
+
.line {
width: 2rpx;
height: 24rpx;
background: #e5e5e7;
}
+
.sicon-back {
font-size: 32rpx;
}
+
.sicon-home {
font-size: 32rpx;
}
+
.sicon-more {
font-size: 32rpx;
}
+
.icon-button {
width: 67rpx;
height: 56rpx;
+
&-left:hover {
background: rgba(0, 0, 0, 0.16);
border-radius: 30rpx 0px 0px 30rpx;
}
+
&-right:hover {
background: rgba(0, 0, 0, 0.16);
border-radius: 0px 30rpx 30rpx 0px;
diff --git a/sheep/components/s-user-card/s-user-card.vue b/sheep/components/s-user-card/s-user-card.vue
index 920fd57d..754d5361 100644
--- a/sheep/components/s-user-card/s-user-card.vue
+++ b/sheep/components/s-user-card/s-user-card.vue
@@ -1,186 +1,185 @@
-
-
-
-
-
+
+
+
+
-
-
-
- {{ userInfo?.nickname || nickname }}
-
-
-
-
-
-
-
+ : sheep.$url.static('/static/img/shop/default_avatar.png')"
+ mode="aspectFill" @tap="sheep.$router.go('/pages/user/info')">
+
+
+
+
+ {{ userInfo?.nickname || nickname }}
+
+
+
+
+
+
+
-
-
+
- 点击绑定手机号确保账户安全
+ 点击绑定手机号确保账户安全
-
+
\ No newline at end of file