This commit is contained in:
Your Name
2026-08-17 13:59:12 +08:00
parent 79601ea176
commit 49309b7c57
62 changed files with 82 additions and 47023 deletions
@@ -1,40 +1,2 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const color = "#8a8a8a";
const activeColor = "#204e2b";
const _sfc_main = {
__name: "tab-bar-dock",
props: {
/** 0 血糖 1 我的 */
active: {
type: Number,
default: 0
}
},
setup(__props) {
const props = __props;
function goUser() {
if (props.active === 1)
return;
common_vendor.index.redirectTo({ url: "/pages/user/user" });
}
function goWeekly() {
if (props.active === 0)
return;
common_vendor.index.redirectTo({ url: "/tongji/pages/weekly" });
}
return (_ctx, _cache) => {
return {
a: __props.active === 0 ? 1 : "",
b: __props.active === 0 ? activeColor : color,
c: common_vendor.o(goWeekly, "40"),
d: __props.active === 1 ? "/static/user/user_no.png" : "/static/user/user.png",
e: __props.active === 1 ? activeColor : color,
f: common_vendor.o(goUser, "79")
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c3efacf5"]]);
wx.createComponent(Component);
"use strict";const t=require("../../common/vendor.js"),r="#8a8a8a",n="#204e2b",i={__name:"tab-bar-dock",props:{active:{type:Number,default:0}},setup(e){const c=e;function o(){c.active!==1&&t.index.redirectTo({url:"/pages/user/user"})}function a(){c.active!==0&&t.index.redirectTo({url:"/tongji/pages/weekly"})}return(u,d)=>({a:e.active===0?1:"",b:e.active===0?n:r,c:t.o(a,"40"),d:e.active===1?"/static/user/user_no.png":"/static/user/user.png",e:e.active===1?n:r,f:t.o(o,"79")})}},s=t._export_sfc(i,[["__scopeId","data-v-c3efacf5"]]);wx.createComponent(s);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/app-tab-bar/tab-bar-dock.js.map
@@ -1,90 +1 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.tab-dock.data-v-c3efacf5 {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
background: #ffffff;
border-top: 1rpx solid rgba(0, 0, 0, 0.06);
box-shadow: 0 -6rpx 20rpx rgba(0, 0, 0, 0.04);
}
.tab-dock__inner.data-v-c3efacf5 {
display: flex;
align-items: flex-end;
height: 100rpx;
}
.tab-dock__item.data-v-c3efacf5 {
flex: 1;
height: 100rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.tab-dock__item--center.data-v-c3efacf5 {
justify-content: flex-end;
padding-bottom: 6rpx;
}
.tab-dock__icon.data-v-c3efacf5 {
width: 46rpx;
height: 46rpx;
}
.tab-dock__label.data-v-c3efacf5 {
margin-top: 6rpx;
font-size: 22rpx;
line-height: 1.2;
}
.tab-dock__label--center.data-v-c3efacf5 {
margin-top: 8rpx;
}
.tab-dock__fab.data-v-c3efacf5 {
width: 96rpx;
height: 96rpx;
margin-top: -48rpx;
border-radius: 50%;
background: linear-gradient(180deg, #2d7340 0%, #204e2b 100%);
border: 6rpx solid #ffffff;
box-shadow: 0 10rpx 24rpx rgba(32, 78, 43, 0.35);
display: flex;
align-items: center;
justify-content: center;
}
.tab-dock__fab--active.data-v-c3efacf5 {
transform: scale(1.04);
box-shadow: 0 12rpx 28rpx rgba(32, 78, 43, 0.42);
}
.tab-dock__fab-text.data-v-c3efacf5 {
color: #ffffff;
font-size: 38rpx;
font-weight: 700;
line-height: 1;
}
.tab-dock__safe.data-v-c3efacf5 {
height: env(safe-area-inset-bottom);
background: #ffffff;
}
.tab-dock.data-v-c3efacf5{position:fixed;left:0;right:0;bottom:0;z-index:999;background:#fff;border-top:1rpx solid rgba(0,0,0,.06);box-shadow:0 -6rpx 20rpx rgba(0,0,0,.04)}.tab-dock__inner.data-v-c3efacf5{display:flex;align-items:flex-end;height:100rpx}.tab-dock__item.data-v-c3efacf5{flex:1;height:100rpx;display:flex;flex-direction:column;align-items:center;justify-content:center}.tab-dock__item--center.data-v-c3efacf5{justify-content:flex-end;padding-bottom:6rpx}.tab-dock__icon.data-v-c3efacf5{width:46rpx;height:46rpx}.tab-dock__label.data-v-c3efacf5{margin-top:6rpx;font-size:22rpx;line-height:1.2}.tab-dock__label--center.data-v-c3efacf5{margin-top:8rpx}.tab-dock__fab.data-v-c3efacf5{width:96rpx;height:96rpx;margin-top:-48rpx;border-radius:50%;background:linear-gradient(180deg,#2d7340,#204e2b);border:6rpx solid #ffffff;box-shadow:0 10rpx 24rpx rgba(32,78,43,.35);display:flex;align-items:center;justify-content:center}.tab-dock__fab--active.data-v-c3efacf5{transform:scale(1.04);box-shadow:0 12rpx 28rpx rgba(32,78,43,.42)}.tab-dock__fab-text.data-v-c3efacf5{color:#fff;font-size:38rpx;font-weight:700;line-height:1}.tab-dock__safe.data-v-c3efacf5{height:env(safe-area-inset-bottom);background:#fff}
@@ -1,89 +1,2 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
props: {
bottom: { default: 200 },
inline: { type: Boolean, default: false },
tone: { default: "default" }
},
setup(__props) {
const trainingItems = [
{ url: "/training/pages/dumbbell", title: "哑铃", sub: "力量塑形", icon: "dumbbell", iconClass: "menu-icon--dumbbell" },
{ url: "/training/pages/foot-pedal", title: "脚蹬器", sub: "下肢有氧", icon: "pedal", iconClass: "menu-icon--pedal" },
{ url: "/training/pages/pilates-ring", title: "瑜伽环", sub: "核心塑形", icon: "pilates", iconClass: "menu-icon--pilates" },
{ url: "/training/pages/grip-ring", title: "握力环", sub: "握力训练", icon: "grip", iconClass: "menu-icon--grip" },
{ url: "/training/pages/metronome", title: "耗糖节拍器", sub: "健走配速", icon: "metro", iconClass: "menu-icon--metro", featured: true }
];
const props = __props;
const inlineItems = common_vendor.computed(() => {
if (props.tone !== "weekly")
return trainingItems;
const metro = trainingItems.find((i) => i.icon === "metro");
const rest = trainingItems.filter((i) => i.icon !== "metro");
return metro ? [metro, ...rest] : trainingItems;
});
const visible = common_vendor.ref(true);
const expanded = common_vendor.ref(false);
const toggle = () => {
expanded.value = !expanded.value;
};
const goto = (url) => {
expanded.value = false;
common_vendor.index.navigateTo({ url });
};
return (_ctx, _cache) => {
return common_vendor.e({
a: visible.value && props.inline
}, visible.value && props.inline ? common_vendor.e({
b: props.tone === "weekly"
}, props.tone === "weekly" ? {} : {}, {
c: common_vendor.f(inlineItems.value, (item, k0, i0) => {
return common_vendor.e({
a: item.featured
}, item.featured ? {} : {}, {
b: item.icon === "dumbbell"
}, item.icon === "dumbbell" ? {} : item.icon === "pedal" ? {} : item.icon === "pilates" ? {} : item.icon === "grip" ? {} : item.icon === "metro" ? {} : {}, {
c: item.icon === "pedal",
d: item.icon === "pilates",
e: item.icon === "grip",
f: item.icon === "metro",
g: common_vendor.n(item.iconClass),
h: common_vendor.t(item.title),
i: common_vendor.t(item.sub),
j: item.url,
k: common_vendor.o(($event) => goto(item.url), item.url)
});
}),
d: props.tone === "weekly"
}, props.tone === "weekly" ? {} : {}, {
e: props.tone === "weekly" ? 1 : ""
}) : visible.value ? common_vendor.e({
g: expanded.value
}, expanded.value ? {
h: common_vendor.o(($event) => goto("/training/pages/dumbbell"), "fd"),
i: common_vendor.o(($event) => goto("/training/pages/foot-pedal"), "a5"),
j: common_vendor.o(($event) => goto("/training/pages/pilates-ring"), "3f"),
k: common_vendor.o(($event) => goto("/training/pages/grip-ring"), "23"),
l: common_vendor.o(($event) => goto("/training/pages/metronome"), "ca"),
m: common_vendor.o(() => {
}, "26")
} : {}, {
n: !expanded.value
}, !expanded.value ? {} : {}, {
o: !expanded.value
}, !expanded.value ? {} : {}, {
p: expanded.value
}, expanded.value ? {} : {}, {
q: expanded.value ? 1 : "",
r: common_vendor.o(toggle, "98"),
s: props.bottom + "rpx"
}) : {}, {
f: visible.value
});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-17534d15"]]);
wx.createComponent(Component);
"use strict";const n=require("../../common/vendor.js"),g=n.defineComponent({__name:"index",props:{bottom:{default:200},inline:{type:Boolean,default:!1},tone:{default:"default"}},setup(u){const i=[{url:"/training/pages/dumbbell",title:"哑铃",sub:"力量塑形",icon:"dumbbell",iconClass:"menu-icon--dumbbell"},{url:"/training/pages/foot-pedal",title:"脚蹬器",sub:"下肢有氧",icon:"pedal",iconClass:"menu-icon--pedal"},{url:"/training/pages/pilates-ring",title:"瑜伽环",sub:"核心塑形",icon:"pilates",iconClass:"menu-icon--pilates"},{url:"/training/pages/grip-ring",title:"握力环",sub:"握力训练",icon:"grip",iconClass:"menu-icon--grip"},{url:"/training/pages/metronome",title:"耗糖节拍器",sub:"健走配速",icon:"metro",iconClass:"menu-icon--metro",featured:!0}],t=u,c=n.computed(()=>{if(t.tone!=="weekly")return i;const a=i.find(e=>e.icon==="metro"),s=i.filter(e=>e.icon!=="metro");return a?[a,...s]:i}),r=n.ref(!0),o=n.ref(!1),p=()=>{o.value=!o.value},l=a=>{o.value=!1,n.index.navigateTo({url:a})};return(a,s)=>n.e({a:r.value&&t.inline},r.value&&t.inline?n.e({b:t.tone==="weekly"},t.tone==="weekly"?{}:{},{c:n.f(c.value,(e,v,f)=>n.e({a:e.featured},e.featured?{}:{},{b:e.icon==="dumbbell"},e.icon==="dumbbell"?{}:e.icon==="pedal"?{}:e.icon==="pilates"?{}:e.icon==="grip"?{}:e.icon==="metro"?{}:{},{c:e.icon==="pedal",d:e.icon==="pilates",e:e.icon==="grip",f:e.icon==="metro",g:n.n(e.iconClass),h:n.t(e.title),i:n.t(e.sub),j:e.url,k:n.o(b=>l(e.url),e.url)})),d:t.tone==="weekly"},t.tone==="weekly"?{}:{},{e:t.tone==="weekly"?1:""}):r.value?n.e({g:o.value},o.value?{h:n.o(e=>l("/training/pages/dumbbell"),"fd"),i:n.o(e=>l("/training/pages/foot-pedal"),"a5"),j:n.o(e=>l("/training/pages/pilates-ring"),"3f"),k:n.o(e=>l("/training/pages/grip-ring"),"23"),l:n.o(e=>l("/training/pages/metronome"),"ca"),m:n.o(()=>{},"26")}:{},{n:!o.value},o.value?{}:{},{o:!o.value},o.value?{}:{},{p:o.value},o.value?{}:{},{q:o.value?1:"",r:n.o(p,"98"),s:t.bottom+"rpx"}):{},{f:r.value})}}),d=n._export_sfc(g,[["__scopeId","data-v-17534d15"]]);wx.createComponent(d);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/dev-training-entry/index.js.map
File diff suppressed because one or more lines are too long