This commit is contained in:
zoujiandong
2025-07-30 13:58:39 +08:00
parent afc79a0f26
commit 43abd1f3d6
360 changed files with 27253 additions and 0 deletions
@@ -0,0 +1,89 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_navTo = require("../../utils/navTo.js");
const common_assets = require("../../common/assets.js");
if (!Array) {
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
(_easycom_u_icon2 + _easycom_up__image2)();
}
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
if (!Math) {
(_easycom_u_icon + _easycom_up__image)();
}
const _sfc_main = {
__name: "backDetailNav",
props: {
navName: {
type: String,
default: "我的"
}
},
setup(__props) {
const props = __props;
const useImg = common_vendor.ref("");
const goBack = () => {
common_vendor.index.navigateBack({
delta: 1
});
};
const goHome = () => {
common_vendor.index.__f__("log", "at components/backDetailNav/backDetailNav.vue:62", props.navName);
if (props.navName == "肝胆相照病例交流园地") {
common_vendor.index.reLaunch({
url: "/pages/caseTalk/caseTalk"
});
} else {
common_vendor.index.reLaunch({
url: "/pages/index/index"
});
}
};
const goMy = () => {
utils_navTo.navTo({
url: "/pages/my/my"
});
};
common_vendor.onMounted(() => {
let userInfo = common_vendor.index.getStorageSync("userInfo");
if (userInfo && userInfo.avatar) {
useImg.value = userInfo.avatar;
}
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "arrow-left",
color: "#000",
size: "24"
}),
b: common_vendor.o(goBack),
c: common_vendor.p({
src: common_vendor.unref(common_assets.logoImg),
width: "62rpx",
height: "62rpx",
radius: "50%"
}),
d: common_vendor.o(goHome),
e: common_vendor.t(__props.navName),
f: common_vendor.p({
src: common_vendor.unref(common_assets.navbg),
width: "100rpx",
height: "31rpx"
}),
g: common_vendor.o(goHome),
h: common_vendor.p({
src: useImg.value ? useImg.value : common_vendor.unref(common_assets.headImg),
width: "62rpx",
height: "62rpx",
radius: "50%"
}),
i: common_vendor.o(goMy)
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5cef096a"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/backDetailNav/backDetailNav.js.map
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../../node-modules/uview-plus/components/u-icon/u-icon",
"up--image": "../../node-modules/uview-plus/components/u--image/u--image"
}
}
@@ -0,0 +1 @@
<view class="navbox data-v-5cef096a"><view class="bg data-v-5cef096a"></view><view class="namebox data-v-5cef096a"><view class="back data-v-5cef096a" bindtap="{{b}}"><u-icon wx:if="{{a}}" class="data-v-5cef096a" u-i="5cef096a-0" bind:__l="__l" u-p="{{a}}"></u-icon></view><view class="logo data-v-5cef096a" bindtap="{{d}}"><up--image wx:if="{{c}}" class="data-v-5cef096a" u-i="5cef096a-1" bind:__l="__l" u-p="{{c}}"></up--image></view><view class="name data-v-5cef096a" bindtap="{{g}}">{{e}} <view class="navbg data-v-5cef096a"><up--image wx:if="{{f}}" class="data-v-5cef096a" u-i="5cef096a-2" bind:__l="__l" u-p="{{f}}"></up--image></view></view><view class="user data-v-5cef096a" bindtap="{{i}}"><up--image wx:if="{{h}}" class="data-v-5cef096a" u-i="5cef096a-3" bind:__l="__l" u-p="{{h}}"></up--image></view></view></view>
@@ -0,0 +1,91 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.navbox.data-v-5cef096a {
padding-bottom: 20rpx;
background-color: #f9fafb;
position: relative;
height: 200rpx;
background: radial-gradient(60% 90% at 4% 2%, #43c9c3 0%, rgba(255, 255, 255, 0) 100%);
}
.bg.data-v-5cef096a {
z-index: 0;
top: 0;
bottom: 0;
width: 100%;
position: absolute;
background: radial-gradient(43% 90% at 84% 6%, #ffd6c9 0%, rgba(255, 255, 255, 0) 100%);
}
.namebox.data-v-5cef096a {
padding-top: 102rpx;
margin: 0rpx 30rpx 0rpx;
display: flex;
align-items: center;
display: flex;
align-items: center;
}
.namebox .logo.data-v-5cef096a {
margin-left: 35rpx;
}
.namebox .back.data-v-5cef096a {
position: absolute;
left: 0;
}
.namebox .user.data-v-5cef096a {
margin-left: 55rpx;
}
.namebox .name.data-v-5cef096a {
margin-left: 16rpx;
font-size: 30rpx;
color: #111827;
position: relative;
}
.namebox .name .navbg.data-v-5cef096a {
position: absolute;
z-index: -1;
top: 10rpx;
left: 18rpx;
}
.search.data-v-5cef096a {
margin: 40rpx 30rpx 0rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.search .searchwrap.data-v-5cef096a {
display: flex;
align-items: center;
flex: 1;
padding-left: 28rpx;
margin-right: 23rpx;
height: 80rpx;
background: #fbfbfb;
box-shadow: 0px 4rpx 10rpx 0px rgba(153, 153, 153, 0.5);
border-radius: 40rpx;
}
.search .searchwrap .ipt.data-v-5cef096a {
margin-left: 15rpx;
font-size: 28rpx;
}